More Info: Help Using Malloc Debug
More Info: Help Using Malloc Debug
- Subject: More Info: Help Using Malloc Debug
- From: Ted Lowery <email@hidden>
- Date: Fri, 27 Dec 2002 12:13:04 -0500
More info...
I just created a dummy PB application, which I made no changes to.
Just a template cocoa app, compiled it. There is no code, and I made
no changes to the nib. It crashes with the same error. Here's the
console:
MallocDebug: Target application attempted to read address 0x7c0802ae,
which can't be read.
MallocDebug: MallocDebug can't do anything about this, so the app's
just going to have to
be terminated.
MallocDebug: *************************************************
MallocDebug: THIS IS A BUG IN THE PROGRAM BEING RUN UNDER MALLOC DEBUG,
MallocDebug: NOT A BUG IN MALLOC DEBUG!
MallocDebug: *************************************************
Dec 27 12:07:58 dhcppc1 crashdump: Crash report written to:
/Users/ted/Library/Logs/CrashReporter/test.crash.log
and here's the crash log:
Date/Time: 2002-12-27 12:07:58 -0500
OS Version: 10.2.3 (Build 6G30)
Host: dhcppc1
Command: test
PID: 4978
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x7c0802ae
Thread 0:
#0 0x90165780 in __CFFromUTF8
#1 0x901ac91c in __CFStringDecodeByteStream3
#2 0x901abe1c in __CFStringCreateImmutableFunnel3
#3 0x9013f364 in CFStringCreateWithBytes
#4 0x9013ebcc in _CFPropertyListCreateFromXMLData
#5 0x9014d9c8 in _loadXMLDomainIfStale
#6 0x90153388 in fetchXMLValue
#7 0x94d8ab2c in XBasicDevice::GetDevicePrefsDictionary()
#8 0x94d90d60 in XBasicDevice::GetPreference(__CFString const*) const
#9 0x94d90cb4 in XIOAudioDeviceState::LoadFromPrefs()
#10 0x94d90b9c in XIOAudioDevice::InitializeDeviceState()
#11 0x94d87a40 in XIOAudioDevice::XIOAudioDevice[unified](unsigned)
#12 0x94db3fd8 in HALIOAudioDeviceFactory::CreateDevices(unsigned)
#13 0x94db3b90 in HALIOAudioDeviceFactory::Initialize()
#14 0x94db85ec in HALSystem::Initialize()
#15 0x94db86d8 in HALSystem::GetInstance()
#16 0x94d91320 in AudioHardwareGetPropertyInfo
#17 0x0030b0b0 in sdevGetDefaultDeviceID
#18 0x0030abe4 in sdevChooseNewDevice
#19 0x0030a8d0 in sdevInitializeHAL
#20 0x00309590 in __HALHardwareOpen
#21 0x003092b0 in HALHardwareDispatch
#22 0x9023ddec in CallComponentOpen
#23 0x90234124 in OpenAComponent
#24 0x902508c4 in OpenComponent
#25 0x91793dbc in InitSoundMgr
#26 0x917914a4 in INIT_Sound
#27 0x91790ff8 in GetSoundOutGlobals
#28 0x91793630 in SndNewChannel
#29 0x001ee508 in 0x1ee508
#30 0x001ed698 in 0x1ed698
#31 0x001ed584 in 0x1ed584
#32 0x001ec98c in 0x1ec98c
#33 0x001ec868 in 0x1ec868
#34 0x001f31e4 in APEBundleMessage
#35 0x001f2fe4 in APEBundleMain
#36 0xc0004a60 in __ape_internal
#37 0xc0000f70 in __apeapp
#38 0x001b41a0 in 0x1b41a0
#39 0x001b4038 in 0x1b4038
#40 0x001b4000 in 0x1b4000
#41 0x93771e74 in CPSRegisterWithServer
#42 0x93013200 in RegisterProcess
#43 0x930111a4 in INIT_Processes
#44 0x93002bac in GetCurrentProcess
#45 0x96a15cdc in GetSystemUIMode
#46 0x969f8988 in IsMenuBarVisible
#47 0x93148a84 in _NSInitializeAppContext
#48 0x9313a4c0 in -[NSApplication init]
#49 0x93139500 in +[NSApplication sharedApplication]
#50 0x9315f624 in NSApplicationMain
#51 0x00003da8 in main (main.m:13)
#52 0x00003b2c in _start (crt.c:267)
#53 0x000039ac in start
Thread 1:
#0 0x90073c48 in mach_msg_trap
#1 0x90005f90 in mach_msg
#2 0x8c900e44 in exception_raise_state_identity
#3 0x8c9010e4 in _Xexception_raise_state_identity
#4 0x8c9011f8 in exc_server
#5 0x8c907978 in exceptionThread
#6 0x90020d48 in _pthread_body
Thread 2:
#0 0x90000e08 in mach_msg_overwrite_trap
#1 0x90006164 in mach_msg_overwrite
#2 0x90031d1c in mach_msg_server
#3 0x8c902b2c in portSetListen
#4 0x90020d48 in _pthread_body
Thread 3 Crashed:
#0 0x8c904f48 in unwindStack
#1 0x8c904fd4 in getBacktrace
#2 0x8c905068 in malloc
#3 0x900117d0 in _pthread_create_suspended
#4 0x001b51fc in 0x1b51fc
#5 0x00000000 in 0x0
Thread 4:
#0 0x90073c48 in mach_msg_trap
#1 0x90005f90 in mach_msg
#2 0xc00076cc in __ape_internal
#3 0xc0000dd0 in __ape_agent
#4 0x90020d48 in _pthread_body
Thread 5:
#0 0x90006ae8 in clock_sleep_trap
#1 0x900067ec in nanosleep
#2 0x9003e348 in usleep
#3 0x94d9c1dc in HALRunLoop::OwnThread(void*)
#4 0x94d911b0 in CAPThread::Entry(CAPThread*)
#5 0x90020d48 in _pthread_body
PPC Thread State:
srr0: 0x8c904f48 srr1: 0x0000d030 vrsave: 0x00000000
xer: 0x00000000 lr: 0x8c904fd4 ctr: 0x8c904ff0 mq: 0x00000000
r0: 0x90010008 r1: 0x001bda60 r2: 0x929f04bc r3: 0x001bdaa0
r4: 0x7c0802a6 r5: 0x00000030 r6: 0x0000002c r7: 0x00000803
r8: 0x00000000 r9: 0x00000004 r10: 0x00000000 r11: 0x001bdab0
r12: 0x8c904ff0 r13: 0x00000000 r14: 0x00000000 r15: 0x00000000
r16: 0x00000000 r17: 0x90034660 r18: 0x90011700 r19: 0x90007f40
r20: 0x90027680 r21: 0x00000000 r22: 0x001b5238 r23: 0x001b5008
r24: 0x00000000 r25: 0x00000000 r26: 0x001bdfc0 r27: 0x00000000
r28: 0x0000025c r29: 0x00000000 r30: 0x001bdeb0 r31: 0x8c904f98
I'm running 10.2.3, with the december developer update applied (PB 2.1,
MallocDebug 1.4). Any ideas?
Thanks, Ted
Begin forwarded message:
>
From: Ted Lowery <email@hidden>
>
Date: Fri Dec 27, 2002 11:57:35 AM US/Eastern
>
To: email@hidden
>
Subject: Help Using Malloc Debug
>
>
Hi all-
>
>
I'm attempting to use MallocDebug for the first time, but I am
>
struggling. My app seems to run fine without crashing in the debugger
>
or just standalone. When I launch it in MallocDebug, I immediately
>
get a crash: MallocDebug: Target application attempted to read address
>
0x7c0802ae, which can't be read. I've commented all the code that my
>
app executes, so it is just a dumb shell, but I still get the crash.
>
To me, this appears to be something that I've forgotten to set right
>
in the nib file. Does this sound plausible? Any way to track down
>
what is at 0x7c0802ae?
>
>
Cheers, Ted
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.