Re: Printing crash
Re: Printing crash
- Subject: Re: Printing crash
- From: Daniel Jalkut <email@hidden>
- Date: Mon, 12 Feb 2007 14:23:57 -0500
Jeff - I guess since I chided you about not giving us enough info, I
better take a swing at it :)
I downloaded and reproduced the crash on my MBP. The first thing that
occurs to me is, this crash is happening while loading an NSBundle.
So is it really a printing bug, or is it a bug in loading that bundle?
Turns out I can launch your app, attach with a debugger, and crash it
before ever trying to print by manually loading the problematic bundle:
(gdb) call (id) [NSClassFromString(@"NSBundle") bundleWithPath:@"/
System/Library/Frameworks/Carbon.framework/Frameworks/Print.framework/
Versions/A/Plugins/PrintingCocoaPDEs.bundle"
$1 = (struct objc_object *) 0xd98e0fdc
(gdb) call (void) [0xd98e0fdc load]
The fact that it crashes on load makes me wonder if there isn't
something about your application's namespace that makes for a very
hostile environment for that bundle. Things that come to mind are
whether your app defines any symbols that clash with the namespace of
the bundle. Less likely but also of curious interest is whether any
of the other frameworks you link to perhaps have symbol clashes with
that bundle.
Just a rough guess but it might be worth pursuing. You could do some
hard comparisons between your app's symbol table and the bundle,
using "nm" from the command line.
Daniel
On Feb 12, 2007, at 10:27 AM, Jeff Hellman wrote:
If any of you are interested in checking this out download:
http://www.hellmansoft.com/files/planbook0851.zip
As for a crash report, here you go:
Date/Time: 2007-02-12 07:25:23.038 -0800
OS Version: 10.4.8 (Build 8L2127)
Report Version: 4
Command: Planbook
Path: /Users/jhellman/Desktop/PlanBook9
0.8.5.2/build/Release/Planbook.app/Contents/MacOS/Planbook
Parent: WindowServer [56]
Version: ??? (0852)
PID: 738
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x90000008
Thread 0 Crashed:
0 libobjc.A.dylib 0x90a58b30 _cache_flush + 57
1 libobjc.A.dylib 0x90a58991 flush_caches + 187
2 libobjc.A.dylib 0x90a5dc10
_objc_read_categories_from_image + 466
3 libobjc.A.dylib 0x90a53b4b _objc_notify_images
+ 3304
4 dyld 0x8fe0e3c8
ImageLoaderMachO::doNotification(dyld_image_mode, unsigned,
dyld_image_info const*) + 70
5 dyld 0x8fe05255
dyld::notifyAdding(std::vector<ImageLoader*,
std::allocator<ImageLoader*> >&) + 201
6 dyld 0x8fe0cbcd
ImageLoader::link(ImageLoader::LinkContext const&,
ImageLoader::BindingLaziness, ImageLoader::InitializerRunning,
unsigned) + 331
7 dyld 0x8fe03982
dyld::link(ImageLoader*, ImageLoader::BindingLaziness,
ImageLoader::InitializerRunning) + 160
8 dyld 0x8fe08721 NSLinkModule + 157
9 libSystem.B.dylib 0x90025335 NSLinkModule + 85
10 libobjc.A.dylib 0x90a57cd4 objc_loadModule + 113
11 com.apple.Foundation 0x9260007f _NSBundleLoadCode + 914
12 com.apple.Foundation 0x925ff957 -[NSBundle load] + 377
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden