[Debian GNUstep maintainers] Bug#592751: Broken on hppa; programs abort with malloc assertion failure

dann frazier dannf at dannf.org
Wed Aug 18 15:24:49 UTC 2010


On Wed, Aug 18, 2010 at 12:12:26PM +0300, Yavor Doganov wrote:
> ?? 14:17 -0600 ???? 17.08.2010 (????), dann frazier ????????????:
> > (sid)dannf at paer:~$ ./obj/test
> > Test 
> 
> Good.  Please run another test program...  If it works, which I hope and
> expect so, then the culprit is really NSProcessInfo.  In the backtraces
> you sent initially, frame #14 is an impossible code path, so something
> went utterly wrong before that.  I hope stepping will show what.
> 
> So build the first test.m
> (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=592751#78) with `make
> debug=yes' and (possibly there's a better way for automatic stepping?):
> 
> (gdb) set pagination off
> (gdb) set logging on
> (gdb) set logging redirect on
> (gdb) directory <gnustep-base source>
> (gdb) run
> Obtain a backtrace when you get the SIGABRT.
> (gdb) break +[NSProcessInfo initialize]
> (gdb) run
> When you reach the breakpoint:
> (gdb) while 1
> >step
> >end
> 
> When it crashes again, just quit and send the compressed file.  Thanks!

Attached - though I don't really get anything from the stepping:

(gdb) break +[NSProcessInfo initialize]
Breakpoint 1 at 0x407fe22c: file NSProcessInfo.m, line 843.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/dannf/obj/test 
[Thread debugging using libthread_db enabled]
test: malloc.c:3097: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.

Program received signal SIGABRT, Aborted.
0x40fc98ac in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:67
67	   ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
	   in ../nptl/sysdeps/unix/sysv/linux/raise.c
(gdb) step

Program terminated with signal SIGABRT, Aborted.
The program no longer exists.
(gdb) 

-- 
dann frazier

-------------- next part --------------
Add directory DIR to beginning of search path for source files.
Forget cached info on source file locations and line positions.
DIR can also be $cwd for the current working directory, or $cdir for the
directory in which the source file was compiled into object code.
With no argument, reset the search path to $cdir:$cwd, the default.
Source directories searched: /home/dannf:$cdir:$cwd
Starting program: /home/dannf/obj/test 
[Thread debugging using libthread_db enabled]

Program received signal SIGABRT, Aborted.
0x40fc98ac in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:67
67	../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
	in ../nptl/sysdeps/unix/sysv/linux/raise.c
#0  0x40fc98ac in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:67
#1  0x40fce258 in *__GI_abort () at abort.c:92
#2  0x4100f084 in __malloc_assert (assertion=<value optimized out>, file=<value optimized out>, line=<value optimized out>, function=<value optimized out>) at malloc.c:352
#3  0x41012e74 in sYSMALLOc (av=0x410f29dc, bytes=24) at malloc.c:3094
#4  _int_malloc (av=0x410f29dc, bytes=24) at malloc.c:4747
#5  0x41015588 in *__GI___libc_malloc (bytes=24) at malloc.c:3661
#6  0x40b88538 in objc_malloc (size=11523) at /build/buildd-gcc-4.4_4.4.4-8-hppa-mim0Jd/gcc-4.4-4.4.4/src/libobjc/misc.c:89
#7  0x4089cd00 in default_malloc (zone=<value optimized out>, size=11523) at NSZone.m:124
#8  0x4089c508 in NSZoneMalloc (zone=<value optimized out>, size=11523) at NSZone.m:2013
#9  0x4089ced0 in NSZoneCalloc (zone=0x2d03, elems=<value optimized out>, bytes=6) at NSZone.m:1964
#10 0x407b3aec in GSIMapResize (self=0x3cb88, _cmd=<value optimized out>, observer=<value optimized out>, selector=<value optimized out>, name=0x50118, object=0x0) at ../Headers/Additions/GNUstepBase/GSIMap.h:741
#11 GSIMapRightSizeMap (self=0x3cb88, _cmd=<value optimized out>, observer=<value optimized out>, selector=<value optimized out>, name=0x50118, object=0x0) at ../Headers/Additions/GNUstepBase/GSIMap.h:770
#12 GSIMapInitWithZoneAndCapacity (self=0x3cb88, _cmd=<value optimized out>, observer=<value optimized out>, selector=<value optimized out>, name=0x50118, object=0x0) at ../Headers/Additions/GNUstepBase/GSIMap.h:1218
#13 mapNew (self=0x3cb88, _cmd=<value optimized out>, observer=<value optimized out>, selector=<value optimized out>, name=0x50118, object=0x0) at NSNotificationCenter.m:326
#14 -[NSNotificationCenter addObserver:selector:name:object:] (self=0x3cb88, _cmd=<value optimized out>, observer=<value optimized out>, selector=<value optimized out>, name=0x50118, object=0x0) at NSNotificationCenter.m:786
#15 0x4085b944 in +[NSTimeZone initialize] (self=<value optimized out>, _cmd=<value optimized out>) at NSTimeZone.m:1297
#16 0x40b8bd44 in __objc_send_initialize (class=0x409f686c) at /build/buildd-gcc-4.4_4.4.4-8-hppa-mim0Jd/gcc-4.4-4.4.4/src/libobjc/sendmsg.c:386
#17 0x40b8c200 in __objc_init_install_dtable (receiver=0x409f686c, op=<value optimized out>) at /build/buildd-gcc-4.4_4.4.4-8-hppa-mim0Jd/gcc-4.4-4.4.4/src/libobjc/sendmsg.c:328
#18 objc_msg_lookup (receiver=0x409f686c, op=<value optimized out>) at /build/buildd-gcc-4.4_4.4.4-8-hppa-mim0Jd/gcc-4.4-4.4.4/src/libobjc/sendmsg.c:234
#19 0x406e73d4 in +[NSCalendarDate initialize] (self=<value optimized out>, _cmd=<value optimized out>) at NSCalendarDate.m:356
#20 0x40b8bd44 in __objc_send_initialize (class=0x409b3e98) at /build/buildd-gcc-4.4_4.4.4-8-hppa-mim0Jd/gcc-4.4-4.4.4/src/libobjc/sendmsg.c:386
#21 0x40b8c200 in __objc_init_install_dtable (receiver=0x409b3e98, op=<value optimized out>) at /build/buildd-gcc-4.4_4.4.4-8-hppa-mim0Jd/gcc-4.4-4.4.4/src/libobjc/sendmsg.c:328
#22 objc_msg_lookup (receiver=0x409b3e98, op=<value optimized out>) at /build/buildd-gcc-4.4_4.4.4-8-hppa-mim0Jd/gcc-4.4-4.4.4/src/libobjc/sendmsg.c:234
#23 0x40736fe4 in +[NSDate initialize] (self=0x409be69c, _cmd=<value optimized out>) at NSDate.m:137
#24 0x40b8bd44 in __objc_send_initialize (class=0x409be69c) at /build/buildd-gcc-4.4_4.4.4-8-hppa-mim0Jd/gcc-4.4-4.4.4/src/libobjc/sendmsg.c:386
#25 0x40b8c200 in __objc_init_install_dtable (receiver=0x409be69c, op=<value optimized out>) at /build/buildd-gcc-4.4_4.4.4-8-hppa-mim0Jd/gcc-4.4-4.4.4/src/libobjc/sendmsg.c:328
#26 objc_msg_lookup (receiver=0x409be69c, op=<value optimized out>) at /build/buildd-gcc-4.4_4.4.4-8-hppa-mim0Jd/gcc-4.4-4.4.4/src/libobjc/sendmsg.c:234
#27 0x40887ef0 in +[NSUserDefaults initialize] (self=<value optimized out>, _cmd=<value optimized out>) at NSUserDefaults.m:298
#28 0x40b8bd44 in __objc_send_initialize (class=0x40a032fc) at /build/buildd-gcc-4.4_4.4.4-8-hppa-mim0Jd/gcc-4.4-4.4.4/src/libobjc/sendmsg.c:386
#29 0x40b8c200 in __objc_init_install_dtable (receiver=0x40a032fc, op=<value optimized out>) at /build/buildd-gcc-4.4_4.4.4-8-hppa-mim0Jd/gcc-4.4-4.4.4/src/libobjc/sendmsg.c:328
#30 objc_msg_lookup (receiver=0x40a032fc, op=<value optimized out>) at /build/buildd-gcc-4.4_4.4.4-8-hppa-mim0Jd/gcc-4.4-4.4.4/src/libobjc/sendmsg.c:234
#31 0x40889270 in GSPrivateDefaultsFlag (type=GSLogSyslog) at NSUserDefaults.m:2141
#32 0x407ad414 in NSLogv (format=0x127cc, args=0xfaf0169c) at NSLog.m:305
#33 0x407ada5c in NSLog (format=<value optimized out>) at NSLog.m:252
#34 0x0001095c in -[NCTest notified:] (self=0x511c8, _cmd=0x128e0, notif=0x51450) at test.m:13
#35 0x407b4424 in -[NSNotificationCenter _postAndRelease:] (self=0x3cb88, _cmd=<value optimized out>, notification=0x51450) at NSNotificationCenter.m:1161
#36 0x407b11c0 in -[NSNotificationCenter postNotificationName:object:userInfo:] (self=0x3cb88, _cmd=<value optimized out>, name=0x409d62a8, object=0x35e08, info=0x0) at NSNotificationCenter.m:1220
#37 0x407b0c6c in -[NSNotificationCenter postNotificationName:object:] (self=0x3cb88, _cmd=<value optimized out>, name=<value optimized out>, object=<value optimized out>) at NSNotificationCenter.m:1200
#38 0x00010d50 in main () at test.m:36
Breakpoint 1 at 0x407fe22c: file NSProcessInfo.m, line 843.
The program being debugged has been started already.
Start it from the beginning? (y or n) Starting program: /home/dannf/obj/test 
[Thread debugging using libthread_db enabled]

Program received signal SIGABRT, Aborted.
0x40fc98ac in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:67
67	../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
	in ../nptl/sysdeps/unix/sysv/linux/raise.c

Program terminated with signal SIGABRT, Aborted.
The program no longer exists.
The program is not being run.


More information about the pkg-GNUstep-maintainers mailing list