Package: most
Version: 4.10.2-2
Severity: normal

Hello,

Here are the steps to reproduce the problem:
- "man most" (using most as pager)
- Right Arrow (or ">") to scroll the page to the right
- "q" to quit

It is then displayed:

*** glibc detected *** free(): invalid next size (normal): 0x080baec8 ***
man: /usr/bin/pager: Signal 6 underlined text
man: commande terminée avec 6 comme code de retour: /usr/bin/zsoelim 
/tmp/zmani71IIw | /usr/bin/tbl | /usr/bin/nroff -mandoc -rLL=155n -rLT=155n 
-Tlatin1 | iconv -c -f ISO-8859-1 -t ISO-8859-15 | /usr/bin/pager -s

When re-executing the entire command above, I get the following message:

*** glibc detected *** free(): invalid next size (normal): 0x080fd618 ***       
                                                        MOST(1)
Abandon (core dumped)

Note 1: The MOST(1) is a leftover from the manpage.
Note 2: this message seems to depend on the locale, I get different
messages with the C locale (but still an "Aborted (core dumped)" at the
end)

The backtrace for the segfault is:

$ gdb /usr/bin/most core
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".

(no debugging symbols found)
Core was generated by `most -s'.
Program terminated with signal 6, Aborted.

warning: Can't read pathname for load map: Erreur d'entrée/sortie.
Reading symbols from /lib/libslang.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libslang.so.2
Reading symbols from /lib/tls/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/tls/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/tls/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0xb7d5f7a7 in raise () from /lib/tls/libc.so.6
(gdb) bt
#0  0xb7d5f7a7 in raise () from /lib/tls/libc.so.6
#1  0xb7d6104b in abort () from /lib/tls/libc.so.6
#2  0xb7d96015 in __fsetlocking () from /lib/tls/libc.so.6
#3  0xb7d9c667 in malloc_usable_size () from /lib/tls/libc.so.6
#4  0xb7d9cb02 in free () from /lib/tls/libc.so.6
#5  0xb7f0f6c1 in SLfree () from /lib/libslang.so.2
#6  0xb7eddd16 in SLsmg_resume_smg () from /lib/libslang.so.2
#7  0xb7ede05a in SLsmg_reset_smg () from /lib/libslang.so.2
#8  0x080516f5 in ?? ()
#9  0x00000000 in ?? ()
(gdb) 

After locally recompiling the package, the complete backtrace is:

$ gdb ./most core 
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library 
"/lib/tls/libthread_db.so.1".

Core was generated by `./most -s'.
Program terminated with signal 6, Aborted.

warning: Can't read pathname for load map: Erreur d'entrée/sortie.
Reading symbols from /lib/libslang.so.2...done.
Loaded symbols for /lib/libslang.so.2
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/tls/libdl.so.2...done.
Loaded symbols for /lib/tls/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0xb7d4b7a7 in raise () from /lib/tls/libc.so.6
(gdb) bt
#0  0xb7d4b7a7 in raise () from /lib/tls/libc.so.6
#1  0xb7d4d04b in abort () from /lib/tls/libc.so.6
#2  0xb7d82015 in __fsetlocking () from /lib/tls/libc.so.6
#3  0xb7d88667 in malloc_usable_size () from /lib/tls/libc.so.6
#4  0xb7d88b02 in free () from /lib/tls/libc.so.6
#5  0xb7efb6c1 in SLfree () from /lib/libslang.so.2
#6  0xb7ec9d16 in SLsmg_resume_smg () from /lib/libslang.so.2
#7  0xb7eca05a in SLsmg_reset_smg () from /lib/libslang.so.2
#8  0x080528bb in most_reset_display () at 
/home/fred/debian/most/most-4.10.2/src/window.c:578
#9  0x080509c6 in most_exit_most () at 
/home/fred/debian/most/most-4.10.2/src/most.c:378
#10 0x0804ed58 in sldo_key () at 
/home/fred/debian/most/most-4.10.2/src/keym.c:663
#11 0x0804ee96 in most_execute_key () at 
/home/fred/debian/most/most-4.10.2/src/keym.c:716
#12 0x0805098e in do_most (file=0xbf861fd4 "", start=0) at 
/home/fred/debian/most/most-4.10.2/src/most.c:368
#13 0x08050c9b in most (argc=2, argv=0xbf8624b4) at 
/home/fred/debian/most/most-4.10.2/src/most.c:507
#14 0x0804ff14 in main (argc=2, argv=0xbf8624b4) at 
/home/fred/debian/most/most-4.10.2/src/main.c:51
(gdb) 

When viewing and scrolling regular files (without formating), I get no
such error.

In case you wonder how I found this problem, I was investigating why
scrolling text with formating (manpages here) is broken (i.e. lines with
formating scroll faster than lines without). I will fill a bug report
about this when the current problem is fixed (unless both errors are
connected and solved with the same fix).

Greetings,


Fred

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages most depends on:
ii  libc6                         2.3.5-11   GNU C Library: Shared libraries an
ii  libslang2                     2.0.5-1    The S-Lang programming library - r

most recommends no packages.

-- no debconf information

Reply via email to