Strange Crash on a 10.5 32bits Intel Mac
Strange Crash on a 10.5 32bits Intel Mac
- Subject: Strange Crash on a 10.5 32bits Intel Mac
- From: Laurent Daudelin <email@hidden>
- Date: Thu, 13 Oct 2011 12:41:36 -0700
Hello.
I have been working on an app that is built for 10.5, 10.6 and 10.7, using Xcode 3.2.6 on Snow Leopard. Everything has been fine up until I decided to run the app on a 32-bits Intel iMac running 10.5.8. The same function works well on a 10.6.8 Mac or a 10.7.2 Mac but when running on this 10.5.8 Mac, I'm getting the following crash:
Thread 5 Crashed:
0 libSystem.B.dylib 0x00007fff81af8d4e small_free_list_remove_ptr + 169
1 libSystem.B.dylib 0x00007fff81af5911 szone_free + 2477
2 com.apple.CoreGraphics 0x00007fff81da1530 CGPDFTextStringRelease + 41
3 com.apple.PDFKit 0x000000010069ad5b -[PDFPage(PDFPageInternal) loadTextChars] + 3365
4 com.apple.PDFKit 0x0000000100697493 -[PDFPage string] + 99
5 com.apple.PDFKit 0x0000000100691d15 -[PDFDocument string] + 165
In my code, I instantiate a PDFDocument instance from an existing file. I then send the instance the "string" message to get the text from the document. As you can see above, [PDFDocument string] seems to be sending the PDFPage instance a string message and it seems like this is failing to allocate memory.
It doesn't seem to matter what kind of documents I try. All the ones I tried had valid text and they were all succeeding on a 10.5 or 10.7 Macs.
Anybody has any idea why it's crashing on the 10.5 machine?
As a clue, I did copy the project over that Mac and built it using Xcode 3.1.4. I then ran it in the debug mode and it wouldn't crash.
Thanks in advance for any help, pointer or info!
(Yes, I know, maybe we should just end supporting 10.5 but I'm not calling the shots here!)
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/
Logiciels Nemesys Software email@hidden
_______________________________________________
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