Package: groff-base
Version: 1.18.1.1-13
Severity: important
File: /usr/bin/gpic
*** Please type your report below this line **
This program
$ cat bad.pic
.PS
agap = 0.05
define list {
box thick 2 $1 "$2"
arrow left from last box.e + (agap, 0)
}
list(,a,,b,,c,,d,,e)
.PE
causes a glibc abort:
$ gpic bad.pic
.lf 1 bad.pic
.lf 1
*** glibc detected *** gpic: free(): invalid next size (fast): 0x08080820 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7dc8e25]
/lib/libc.so.6(cfree+0x90)[0xb7dcc8f0]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7f8fea1]
/usr/lib/libstdc++.so.6(_ZdaPv+0x1d)[0xb7f8fefd]
gpic[0x804b9f3]
gpic[0x80535e6]
gpic[0x8053a86]
gpic[0x8053f28]
/lib/libc.so.6(__libc_start_main+0xe0)[0xb7d75050]
gpic(__gxx_personality_v0+0xa5)[0x8049601]
======= Memory map: ========
08048000-0806a000 r-xp 00000000 03:05 16253 /usr/bin/pic
0806a000-0807a000 rw-p 00021000 03:05 16253 /usr/bin/pic
0807a000-0809e000 rw-p 0807a000 00:00 0 [heap]
b7c00000-b7c21000 rw-p b7c00000 00:00 0
b7c21000-b7d00000 ---p b7c21000 00:00 0
b7d5e000-b7d5f000 rw-p b7d5e000 00:00 0
b7d5f000-b7ea1000 r-xp 00000000 03:01 30125 /lib/libc-2.6.1.so
b7ea1000-b7ea2000 r--p 00142000 03:01 30125 /lib/libc-2.6.1.so
b7ea2000-b7ea4000 rw-p 00143000 03:01 30125 /lib/libc-2.6.1.so
b7ea4000-b7ea7000 rw-p b7ea4000 00:00 0
b7ea7000-b7eb1000 r-xp 00000000 03:01 30164 /lib/libgcc_s.so.1
b7eb1000-b7eb2000 rw-p 00009000 03:01 30164 /lib/libgcc_s.so.1
b7eb2000-b7eb3000 rw-p b7eb2000 00:00 0
b7eb3000-b7ed7000 r-xp 00000000 03:01 30129 /lib/libm-2.6.1.so
b7ed7000-b7ed9000 rw-p 00023000 03:01 30129 /lib/libm-2.6.1.so
b7ed9000-b7fb9000 r-xp 00000000 03:05 434881 /usr/lib/libstdc++.so.6.0.9
b7fb9000-b7fbc000 r--p 000e0000 03:05 434881 /usr/lib/libstdc++.so.6.0.9
b7fbc000-b7fbe000 rw-p 000e3000 03:05 434881 /usr/lib/libstdc++.so.6.0.9
b7fbe000-b7fc4000 rw-p b7fbe000 00:00 0
b7fc9000-b7fcd000 rw-p b7fc9000 00:00 0
b7fcd000-b7fe9000 r-xp 00000000 03:01 30122 /lib/ld-2.6.1.so
b7fe9000-b7feb000 rw-p 0001b000 03:01 30122 /lib/ld-2.6.1.so
bfdc5000-bfddb000 rw-p bfdc5000 00:00 0 [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]
Aborted
$
This program
$ cat good1.pic
.PS
agap = 0.05
define list {
box thick 2 $1 "$2"
arrow left from last box.e + (agap, 0)
}
list(,a,,b,,c,,d)
.PE
$ diff good1.pic bad.pic
10c10
< list(,a,,b,,c,,d)
---
> list(,a,,b,,c,,d,,e)
works fine (generated picture and all):
$ gpic good1.pic > /dev/null
$
Not that you'd care, but x86 fedora core 6 has the same problem.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-2-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages groff-base depends on:
ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries
ii libgcc1 1:4.2.2-3 GCC support library
ii libstdc++6 4.2.2-3 The GNU Standard C++ Library v3
groff-base recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]