<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>4351</bug_id>
          
          <creation_ts>2005-08-09 01:44:07 -0700</creation_ts>
          <short_desc>LSEnvironment hack broken with TOT WebKit</short_desc>
          <delta_ts>2005-10-31 19:45:17 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>5541</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Jon">jon</reporter>
          <assigned_to name="Dave Hyatt">hyatt</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>16251</commentid>
    <comment_count>0</comment_count>
    <who name="Jon">jon</who>
    <bug_when>2005-08-09 01:44:07 -0700</bug_when>
    <thetext>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&apos;s Info.plist and add LSEnvironment as a dictionary, and add 
DYLD_FRAMEWORK_PATH as that dictionary&apos;s entry. Point that entry to your WebKitBuild/Deployment 
(or equivalent) directory.
3. Launch duplicate. It should crash if com.apple.Safari.plist hasn&apos;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&apos;s Info.plist to something other than com.apple.Safari.

This was tested from a clean build on 10.4.2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17277</commentid>
    <comment_count>1</comment_count>
    <who name="Jon">jon</who>
    <bug_when>2005-08-23 14:15:02 -0700</bug_when>
    <thetext>Here&apos;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&amp;, 
DOM::AtomicString const&amp;) + 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23414</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-10-31 19:45:17 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 5541 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>