Re: (OT) Helper tool crashing under 10.2.8
Re: (OT) Helper tool crashing under 10.2.8
- Subject: Re: (OT) Helper tool crashing under 10.2.8
- From: Tim Hewett <email@hidden>
- Date: Mon, 31 Jan 2005 13:47:27 +0000
John,
Thanks for the suggestion. As a supplementary question can you
think of any reason why the same executable would corrupt the
heap under 10.2.8 but not under 10.3? Under 10.3 it is absolutely
solid, it never crashes at all. Under 10.2.8 it crashes every time.
Thanks,
Tim.
On 30 Jan 2005, at 18:30, John Stiles wrote:
You've corrupted the heap.
Look in your code for memory stompers, or try MallocDebug.
On Jan 30, 2005, at 6:30 AM, Tim Hewett wrote:
Hi,
This isn't strictly Cocoa as such but I'm hoping someone can help.
My app has a helper tool to perform authorised actions for the main
app. It works fine under 10.3. but crashes under 10.2.8. The crash
dump is not helpful:
=========================================
Command: auth
PID: 435
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x53746f7a
Thread 0 Crashed:
#0 0x90004204 in free_list_remove_ptr
#1 0x90003ea0 in szone_free
#2 0x0000365c in printDir
#3 0x00004170 in performOperation
#4 0x00004768 in main
#5 0x000026bc in _start
#6 0x00002530 in start
=========================================
It says it is crashing in the printDir() function of the helper tool
but
doesn't give a line number (or even source file) even though the
executable was built to contain debugging symbols. It says it is
crashing where the printDir() function calls szone_free(), but it
doesn't
call szone_free() anywhere. I wondered if the optimiser was inlining
simple library calls (which maybe then call szone_free()) which would
mean that they would not appear on the stack trace, but the same
result happens when the optimiser is turned right off.
It is bizarre, it doesn't call the szone_free() function and without
line
numbers it will become tricky to debug. It is hard to run in a
debugger
because it is a helper tool - i.e. it relies on being started by the
parent
application.
Any suggestions on how to solve this, or what the causing the problem
(and why it only happens under 10.2.8) would be very much appreciated.
Regards,
Tim.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden