freebsd-make weird error

Robert Millan rmh at aybabtu.com
Sat Feb 11 17:12:51 UTC 2006


Hi!

I'm trying to debug a problem with FreeBSD 6.x make.  Running it (with no args)
generates a glibc error.  I think it's leaking something but I'm not sure what
(streams?).  Anyone has an idea on what could it be?

rmh at aragorn:~/hacking/glibc-bsd/freebsd6-buildutils/build-tree/src/usr.bin/make$ LD_LIBRARY_PATH=/usr/lib/debug/ gdb ./make
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 "/usr/lib/debug/libthread_db.so.1".

(gdb) r
Starting program: /home/rmh/hacking/glibc-bsd/freebsd6-buildutils/build-tree/src/usr.bin/make/make
*** glibc detected *** double free or corruption (!prev): 0x0806ce18 ***

Program received signal SIGABRT, Aborted.
0xb7e51851 in kill () at string2.h:998
998     string2.h: No such file or directory.
        in string2.h
(gdb) bt
#0  0xb7e51851 in kill () at string2.h:998
#1  0xb7e515fa in *__GI_raise (sig=6) at ../linuxthreads/sysdeps/unix/sysv/linux/raise.c:32
#2  0xb7e52971 in *__GI_abort () at ../sysdeps/generic/abort.c:88
#3  0xb7e84930 in __libc_message (do_abort=2, fmt=0xb7f32cfc "*** glibc detected *** %s: 0x%s ***\n")
    at ../sysdeps/unix/sysv/linux/libc_fatal.c:145
#4  0xb7e8a2b9 in malloc_printerr (action=2, str=0xb7f32dd0 "double free or corruption (!prev)", ptr=<value optimized out>)
    at malloc.c:5523
#5  0xb7e8ad51 in *__GI___libc_free (mem=0x806ce18) at malloc.c:3404
#6  0xb7e7c651 in _IO_new_fclose (fp=0x806ce18) at iofclose.c:88
#7  0x08054eb0 in ReadMakefile (p=0x806cdc8 "/usr/share/mk/sys.mk") at main.c:315
#8  0x08055f3a in main (argc=1, argv=0xbf96a164) at main.c:955
(gdb)

-- 
Robert Millan



More information about the Glibc-bsd-devel mailing list