Bug 4351
| Summary: | LSEnvironment hack broken with TOT WebKit | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jon <jon> |
| Component: | New Bugs | Assignee: | Dave Hyatt <hyatt> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | 420+ | ||
| Hardware: | Mac | ||
| OS: | OS X 10.4 | ||
Jon
Modifying the Safari executable to use the TOT frameworks using the LSEnvironment hack causes Safari
to crash on launch.
To Reproduce:
1. Duplicate Safari.app
2. Edit the duplicate's Info.plist and add LSEnvironment as a dictionary, and add
DYLD_FRAMEWORK_PATH as that dictionary's entry. Point that entry to your WebKitBuild/Deployment
(or equivalent) directory.
3. Launch duplicate. It should crash if com.apple.Safari.plist hasn't been previously touched by the
regular Safari.
To test this bug without needing to delete your Safari pref file, change CFBundleIndentifier in the
duplicate's Info.plist to something other than com.apple.Safari.
This was tested from a clean build on 10.4.2.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Jon
Here's the crash caused by this problem. And it still occurs with TOT WebKit.
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000008
Thread 0 Crashed:
0 com.apple.WebCore 0x011e9ccc DOM::AtomicString::equal(DOM::AtomicString const&,
DOM::AtomicString const&) + 4 (icplusplus.c:28)
1 com.apple.WebCore 0x010dc3d8 khtml::Decoder::decode(char const*, int) + 1232
(icplusplus.c:28)
2 com.apple.WebCore 0x01137408 +[WebCoreEncodings decodeData:] + 104 (icplusplus.c:28)
3 com.apple.SafariDev 0x0009e048 0x1000 + 643144
4 com.apple.SafariDev 0x0005ba38 0x1000 + 371256
5 com.apple.SafariDev 0x0005bad0 0x1000 + 371408
6 com.apple.SafariDev 0x00006558 0x1000 + 21848
7 com.apple.SafariDev 0x0000353c 0x1000 + 9532
8 com.apple.Foundation 0x928d5468 -[NSSet makeObjectsPerformSelector:] + 164
9 com.apple.AppKit 0x936898a0 -[NSIBObjectData
nibInstantiateWithOwner:topLevelObjects:] + 864
10 com.apple.AppKit 0x93760608 old_loadNib + 244
11 com.apple.AppKit 0x936755e8 +[NSBundle(NSNibLoading)
_loadNibFile:nameTable:withZone:ownerBundle:] + 832
12 com.apple.AppKit 0x936cc9f4 +[NSBundle(NSNibLoading)
loadNibFile:externalNameTable:withZone:] + 156
13 com.apple.AppKit 0x9375c86c +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 344
14 com.apple.AppKit 0x9375c60c NSApplicationMain + 344
15 com.apple.SafariDev 0x000029fc 0x1000 + 6652
16 com.apple.SafariDev 0x000575d0 0x1000 + 353744
Darin Adler
*** This bug has been marked as a duplicate of 5541 ***