Memory debugging problems
Memory debugging problems
- Subject: Memory debugging problems
- From: Mark Wagner <email@hidden>
- Date: Fri, 21 Oct 2005 13:03:48 -0700
My program has a problems: it crashes with an access fault somewhere
in malloc() -- most likely a memory corruption issue. I can't seem to
use any of the memory debugging tools to track this down, though.
Trying to use GuardMalloc causes the program to crash with the
following errors:
dyld: /DEVELOPMENT
xcode/TGEQ/TGEQ.prj/build/TGEQ-macho.app/Contents/MacOS/TGEQ-macho
multiple definitions of symbol _malloc_jumpstart
/usr/lib/libgmalloc.dylib(single module) definition of _malloc_jumpstart
/usr/lib/libSystem.B.dylib(scalable_malloc.So) definition of _malloc_jumpstart
Program received signal: "SIGTRAP".
(gdb) bt
#0 0x8fe01400 in __dyld_halt ()
#1 0x8fe0a478 in __dyld_multiply_defined_error ()
#2 0x8fe0ccec in __dyld_link_library_module ()
#3 0x8fe0c430 in __dyld_resolve_undefineds ()
#4 0x8fe112d8 in __dyld_link_in_need_modules ()
#5 0x8fe10f6c in __dyld_bind_lazy_symbol_reference ()
#6 0x8fe01040 in __dyld_stub_binding_helper_interface ()
#7 0x9001f94c in malloc_create_zone ()
#8 0x9002c464 in _malloc_initialize ()
#9 0x900019ec in malloc ()
#10 0x1747d174 in ?? ()
#11 0x90345aa8 in _MP_RemoteCallback ()
#12 0x901c4500 in __CFRunLoopDoTimer ()
#13 0x901c1860 in __CFRunLoopRun ()
#14 0x901c5d74 in CFRunLoopRunSpecific ()
#15 0x92886e10 in GetWindowList ()
#16 0x92889eb0 in InvokeEventHandlerUPP ()
#17 0x9289d988 in ConvertEventRefToEventRecord ()
#18 0x928ae6a0 in WaitNextEvent ()
#19 0x007e6cf4 in MAC_DefNextMacEvent (macEvent=0xbffff5b0) at
/DEVELOPMENT xcode/EE20/GUI/vgm/eventmac.c:403
#20 0x007e9ae8 in S_DefProcessNextEventProc () at /DEVELOPMENT
xcode/EE20/GUI/vgm/eventmac.c:1851
#21 0x007977dc in EVENT_ProcessNext () at /DEVELOPMENT
xcode/EE20/GUI/vgm/event.c:2688
#22 0x00799b20 in EVENT_WaitDelay (delay=2000) at /DEVELOPMENT
xcode/EE20/GUI/vgm/event.c:3576
#23 0x001c2c3c in APP_Main (argc=1, argv=0xbffffc68) at /DEVELOPMENT
xcode/TGEQ/NAVSRC/NAVAPP.CPP:880
#24 0x001c1170 in main (argc=1, argv=0xbffffc68) at /DEVELOPMENT
xcode/TGEQ/NAVSRC/NAVAPP.CPP:385
(gdb)
With MallocDebug, it crashes while starting up, and the crash log
shows the same basic error of multiple definitions of
_malloc_jumpstart. How can I fix this? I'm using XCode 1.5 (gcc 3.3)
on MacOS 10.3.9.
Thanks,
Mark Wagner
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden