This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: stdio-common/tst-obprintf.out seg fails on Linux/i686


On 04/25/2012 05:27 PM, Andreas Jaeger wrote:
Building for Linux/i686 on my x86-64 system, I have now a failure that I
didn't have the last time (but I updated to gcc 4.7 and newer binutils as
well):

*** glibc detected *** /home/aj/build/glibc/x86/stdio-common/tst-obprintf:
free(): invalid pointer: 0x56bff020 ***
======= Backtrace: =========
/home/aj/build/glibc/x86/libc.so.6(+0x7333b)[0x555ed33b]
/home/aj/build/glibc/x86/libc.so.6(cfree+0x9b)[0x555f0c7b]
/home/aj/build/glibc/x86/libc.so.6(_obstack_newchunk+0x14b)[0x555f469b]
/home/aj/build/glibc/x86/libc.so.6(+0x6bc0c)[0x555e5c0c]
/home/aj/build/glibc/x86/libc.so.6(_IO_padn+0xb9)[0x555de749]
/home/aj/build/glibc/x86/libc.so.6(_IO_vfprintf+0x882)[0x555bb4e2]
/home/aj/build/glibc/x86/libc.so.6(obstack_vprintf+0x100)[0x555e5df0]
/home/aj/build/glibc/x86/libc.so.6(obstack_printf+0x2b)[0x555e5eeb]
/home/aj/build/glibc/x86/stdio-common/tst-obprintf[0x8048566]
/home/aj/build/glibc/x86/libc.so.6(__libc_start_main+0xf5)[0x555935d5]
/home/aj/build/glibc/x86/stdio-common/tst-obprintf[0x8048659]
======= Memory map: ========
08048000-08049000 r-xp 00000000 08:04 7388112
/home/aj/build/glibc/x86/stdio-common/tst-obprintf
08049000-0804a000 r--p 00000000 08:04 7388112
/home/aj/build/glibc/x86/stdio-common/tst-obprintf
0804a000-0804b000 rw-p 00001000 08:04 7388112
/home/aj/build/glibc/x86/stdio-common/tst-obprintf
55555000-55576000 r-xp 00000000 08:04 7480427
/home/aj/build/glibc/x86/elf/ld.so
55576000-55577000 r--p 00021000 08:04 7480427
/home/aj/build/glibc/x86/elf/ld.so
55577000-55578000 rw-p 00022000 08:04 7480427
/home/aj/build/glibc/x86/elf/ld.so
55578000-55579000 r-xp 00000000 00:00 0
[vdso]
55579000-5557a000 rw-p 00000000 00:00 0
5557a000-5571f000 r-xp 00000000 08:04 7376272
/home/aj/build/glibc/x86/libc.so
5571f000-55721000 r--p 001a5000 08:04 7376272
/home/aj/build/glibc/x86/libc.so
55721000-55722000 rw-p 001a7000 08:04 7376272
/home/aj/build/glibc/x86/libc.so
55722000-55727000 rw-p 00000000 00:00 0
55748000-55764000 r-xp 00000000 08:02 528963
/lib/libgcc_s.so.1
55764000-55765000 r--p 0001b000 08:02 528963
/lib/libgcc_s.so.1
55765000-55766000 rw-p 0001c000 08:02 528963
/lib/libgcc_s.so.1
56bfe000-56c20000 rw-p 00000000 00:00 0
[heap]
ffa74000-ffa96000 rw-p 00000000 00:00 0
[stack]
/bin/sh: line 1: 24382 Aborted
GCONV_PATH=/home/aj/build/glibc/x86/iconvdata LC_ALL=C
/home/aj/build/glibc/x86/elf/ld-linux.so.2 --library-path
/home/aj/build/glibc/x86:/home/aj/build/glibc/x86/math:/home/aj/build/glibc/x86/elf:/home/aj/build/glibc/x86/dlfcn:/home/aj/build/glibc/x86/nss:/home/aj/build/glibc/x86/nis:/home/aj/build/glibc/x86/rt:/home/aj/build/glibc/x86/resolv:/home/aj/build/glibc/x86/crypt:/home/aj/build/glibc/x86/nptl
/home/aj/build/glibc/x86/stdio-common/tst-obprintf>
/home/aj/build/glibc/x86/stdio-common/tst-obprintf.out

And I just noticed the same failure on x86-64.

This seems indeed related to my usage of gcc 4.7. Going back to 4.6 fixes this. I'll investigate the problem in the next days.


Another failure is rt/tst-mqueue1.out
mq_getattr failed: Function not implemented
mq_getattr failed: Function not implemented
mq_getattr failed: Function not implemented
mq_getattr failed: Function not implemented
child failed: 256
mq_getattr failed: Function not implemented
mq_getattr failed: Function not implemented
mq_getattr failed: Function not implemented
mq_getattr failed: Function not implemented
mq_getattr failed: Function not implemented
child failed: 256
mq_getattr failed: Function not implemented
mq_getattr failed: Function not implemented

Similar some other rt/tst-mqueueX tests.

that was a bug in the Linux 3.3 kernel header files (it contains getaddr instead of getattr).


Thanks HJ and Carlos for your test results,
Andreas
--
 Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]