bugGNU roff - Bugs: bug #24050, [mm] footnote/end-of-page problem

 
 

bug #24050: [mm] footnote/end-of-page problem

Submitter:  Werner LEMBERG <wl>
Submitted:  Tue 12 Aug 2008 05:04:40 PM UTC
   
 
Category:  Macro package mm Severity:  2 - Minor
Item Group:  Incorrect behaviour Status:  Confirmed
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sat 19 Oct 2024 05:52:27 PM UTC, comment #6: 

I'm less sure now that bug #56499 is the culprit in this case.


$ cat ./ATTIC/24050.mm
.de ptrap
.  nop \&.t=\\n[.t]u
.  if \\n[.g] .if r .trap \&.trap=\[lq]\\n[.trap]\[rq]
..
This is input line number 1 containing a bunch of meaningless words.
This is input line number 2 containing a bunch of meaningless words.
This is input line number 3 containing a bunch of meaningless words.
This is input line number 4 containing a bunch of meaningless words.
This is input line number 5 containing a bunch of meaningless words.
Skipping now to bottom of page.
.ptrap
.sp |693000u
This line references a footnote\*F;
.ptrap
.FS
.ptrap
This is the footnote.
It takes up 2 lines on U.S.\& letter paper.
If there is exactly that much space on the page for it,
it apparently clobbers the end-of-page trap,
so the first page overflows.
The footnote ends up on the next page.
.FE
This is input line number 6 containing a bunch of meaningless words.
This is input line number 7 containing a bunch of meaningless words.
This is input line number 8 containing a bunch of meaningless words.
This is input line number 9 containing a bunch of meaningless words.
This is input line number 10 containing a bunch of meaningless words.
This is input line number 11 containing a bunch of meaningless words.
This is input line number 12 containing a bunch of meaningless words.
This is input line number 13 containing a bunch of meaningless words.
This is input line number 14 containing a bunch of meaningless words.
This is input line number 15 containing a bunch of meaningless words.
This is input line number 16 containing a bunch of meaningless words.
This is input line number 17 containing a bunch of meaningless words.
This is input line number 18 containing a bunch of meaningless words.
This is input line number 19 containing a bunch of meaningless words.
This is input line number 20 containing a bunch of meaningless words.
$ ./build/test-groff -ab -ww -mm ./ATTIC/24050.mm
<beginning of page>
 - 1 -

This is input line number 1 containing a bunch of meaningless words. This is input line number 2
containing a bunch of meaningless words. This is input line number 3 containing a bunch of meaningless
words. This is input line number 4 containing a bunch of meaningless words. This is input line number 5
containing a bunch of meaningless words. Skipping now to bottom of page. .t=612000u
.trap=<lq>pg@footer<rq>
This line references a footnote1; .t=39000u .trap=<lq>pg@footer<rq> This is input line number 6 containing a
bunch of meaningless words. This is input line number 7 containing a bunch of meaningless words. This is
input line number 8 containing a bunch of meaningless words. This is input line number 9 containing a
bunch of meaningless words. This is input line number 10 containing a bunch of meaningless words. This
is input line number 11 containing a bunch of meaningless words. This is input line number 12 containing
a bunch of meaningless words. This is input line number 13 containing a bunch of meaningless words.
This is input line number 14 containing a bunch of meaningless words. This is input line number 15
containing a bunch of meaningless words. This is input line number 16 containing a bunch of meaningless
words. This is input line number 17 containing a bunch of meaningless words. This is input line number
<beginning of page>
 - 2 -

18 containing a bunch of meaningless words. This is input line number 19 containing a bunch of
meaningless words. This is input line number 20 containing a bunch of meaningless words.

1.
 .t=2147483647u .trap=<lq><rq> This is the footnote. It takes up 2 lines on U.S. letter paper. If there is exactly that much space on the
 page for it, it apparently clobbers the end-of-page trap, so the first page overflows. The footnote ends up on the next page.




G. Branden Robinson <gbranden>
Group administrator
Sun 16 Jun 2024 07:03:01 AM UTC, comment #5: 

comment #3:

> This (mis)behavior is consistent with DWB 3.3 and Heirloom Doctools mm.


Bug #56499 also exists across at least three troffs (DWB troff is not surveyed over there, but Plan 9 troff is).  And one symptom reported there is the end-of-page trap being ignored.  So, while I can't definitively say that that bug is the culprit here, it's a strong enough probability that I'm making this bug dependent on that one: there's not much point in digging into this mm problem further until #56499 is fixed.  If it persists after that, this can be looked into anew.

Dave <barx>
Group Member
Sun 16 Jun 2024 03:57:31 AM UTC, comment #4: 

Problem originally reported on bug-groff (http://lists.gnu.org/r/bug-groff/2007-07/msg00010.html).  That report offers no additional information about the problem, but does tell who reported it.  There were no follow-ups on the list.

Dave <barx>
Group Member
Sat 17 Dec 2022 09:03:09 PM UTC, comment #3: 

This (mis)behavior is consistent with DWB 3.3 and Heirloom Doctools mm.

G. Branden Robinson <gbranden>
Group administrator
Fri 24 Dec 2021 03:25:20 AM UTC, comment #2: 

Bug #56499 also documents a case where a new trap can erroneously overwrite a nearby end-of-page trap despite being at a different page position.  Could that bug's trap behavior be the root cause of this bug?

Dave <barx>
Group Member
Wed 14 Apr 2021 07:36:40 AM UTC, comment #1: 

[Mike Bianchi asked (http://lists.gnu.org/archive/html/groff/2021-02/msg00077.html) who maintains the mm macros, implying it's not him (although he didn't respond to a direct query about this (http://lists.gnu.org/archive/html/groff/2021-04/msg00019.html)).  Thus I'm unassigning this mm bug.]

Dave <barx>
Group Member
Tue 12 Aug 2008 05:04:40 PM UTC, original submission:  

GROFF VERSION:  1.18.1

MACHINE:  IBM-compatible Pentium IV

OS:  Linux 2.6.21.5 (Debian Etch or Sid)

COMPILER:  none (using Debian package)

INPUT FILES:  foo.tr (attached)

COMMAND LINE:  groff -mm foo.tr    # using groff version of mm

DESCRIPTION OF INCORRECT BEHAVIOUR:
The footnote reference occurs with exactly enough space
remaining on the page for the footnote.  The end-of-page
trap is apparently clobbered; text continues over the page
boundary and the footnote appears on the next page.  As
expected, if the footnote-reference line is moved one unit
higher or lower, it works properly with the footnote
appearing on the same or next page, respectively.

Werner LEMBERG <wl>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #16286:  foo.tr added by wl (2KiB - text/troff)

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Posted a comment)
  • -email is unavailable- added by barx (Posted a comment)
  • -email is unavailable- added by schwarze (Updated the item)
  • -email is unavailable- added by wl (Submitted the item)
  • -email is unavailable- added by wl
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-06-16 barx Dependencies- Depends on bugs #56499
    2021-06-04 barx Carbon-CopyRemoved 93119 -
    2021-06-04 barx Summarymm macro footnote/end-of-page problem [mm] footnote/end-of-page problem
    2021-04-14 barx Carbon-CopyRemoved 93119 -
    2021-04-14 barx Assigned tombianchi None
    2018-02-16 schwarze CategoryNone Macro package mm
        Severity3 - Normal 2 - Minor
        Item GroupNone Incorrect behaviour
        StatusNone Confirmed
    2008-08-12 wl Attached File- Added foo.tr, #16286
        Carbon-Copy- Added bill brelsford <k2di2@att.net>

    Back to the top

    Powered by Savane 3.14-8e77.
    Corresponding source code