Bug#37902: libc6: SEGV in fflush
Package: libc6
Version: 2.1.1-5
>From gdb:
#0 0x40086981 in fflush ()
or with libc6-dbg and LD_PRELOAD:
#0 0x40066981 in _IO_fflush (fp=0x85d32f0) at iofflush.c:41
I have verified that fflush is entered via a call to the jump table
(plt), the disassembly looks like:
08549690 <shutdownHaskell>:
8549690: e8 4b 26 00 00 call 854bce0 <finaliseWeakPointersNow>
8549695: e8 26 23 00 00 call 854b9c0 <exitStorage>
854969a: 68 f0 32 5d 08 pushl $0x85d32f0
854969f: e8 d0 f9 af ff call 8049074 <_init+0x114>
85496a4: 83 c4 04 addl $0x4,%esp
85496a7: c3 ret
where _init+0x114 is a jump to the start of fflush. I think the code is
just "fflush (stdout)".
Giuliano.
-- System Information
Debian Release: potato
Kernel Version: Linux henry 2.2.6 #5 Thu May 6 15:15:49 BST 1999 i686 unknown
Versions of the packages libc6 depends on:
ii ldso 1.9.11-2 The Linux dynamic linker, library and utilit
Reply to: