Artifacts Associated With Ticket 2569449fffffffffffffffffffffffffffffffff
Ticket change [c977314f04] (rid 122287) by treincke on 2009-02-05 19:23:34:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
An embedded build of Tcl/Tk on the Mac (Intel) will fail on this command: % interp create Can't find a usable init.tcl in the following directories: /Library/Frameworks/Tcl.framework/Versions/8.5/Resources/Scripts / Users/Torsten/Tcl/distrib/mac-builds/8.5.6/Applications/Utilities/ This is true for tclsh and wish in the Tcl/Tk versions 8.5.6 and the current development version of 8.6. It worked inall 8.5.x versions until and including 8.5.5 The embedded build was done using the procedure from the README: export ver="8.5.6" export dest="8.5.6" make -C tcl${ver}/macosx/ embedded BUILD_DIR="/Users/Torsten/Tcl/ distrib/mac-builds/${dest}/" INSTALL_ROOT="/Users/Torsten/Tcl/distrib/ mac-builds/${dest}/" make -C tk${ver}/macosx/ embedded BUILD_DIR="/Users/Torsten/Tcl/ distrib/mac-builds/${dest}/" INSTALL_ROOT="/Users/Torsten/Tcl/distrib/ mac-builds/${dest}/" make -C tcl${ver}/macosx/ install-embedded INSTALL_ROOT="/Users/ Torsten/Tcl/distrib/mac-builds/${dest}/" BUILD_DIR="/Users/Torsten/Tcl/ distrib/mac-builds/${dest}/" make -C tk${ver}/macosx/ install-embedded INSTALL_ROOT="/Users/Torsten/ Tcl/distrib/mac-builds/${dest}/" BUILD_DIR="/Users/Torsten/Tcl/distrib/ mac-builds/${dest}/" - foundin initialized to: "obsolete: 8.5.6"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "treincke"
- subsystem initialized to: "50. Embedding Support"
- title initialized to:
error with [interp create] in embedded build on Mac
- type initialized to: "Bug"
Ticket change [3b863a92aa] (rid 112761) by dgp on 2009-02-06 04:37:31:
- assignee changed to: "das"
- icomment:
Where is the init.tcl file for Tcl 8.5.6 installed? Has the answer changed since release 8.5.5 ? Has the set of directories on the search path changed since release 8.5.5 ?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [92bb6c4706] (rid 120823) by dgp on 2009-02-06 04:59:13:
- icomment:
I'm guessing the 2008-12-07 commit to tclMacOSXBundle.c is to blame. Nothing in the ChangeLog about it das?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [ad99540310] (rid 101495) by das on 2009-02-06 05:16:29:
- icomment:
that commit was supposed to be a pure leak fix, no functionality change: http://fisheye.categorifiedcoder.info/changelog/Tcl/tcl/macosx?cs=MAIN:das:20081207162844 looking over it now to check for any new bugs...
- login: "das"
- mimetype: "text/plain"
- username: "das"
- icomment:
Ticket change [320ec81929] (rid 93545) by das on 2009-02-06 05:38:50:
- icomment:
that change looks fine, only the CF leak is fixed and some extra NULLity checks added, nothing else changed, so I strongly doubt that this is the cause of the problem at hand... no time to look into it further ATM unfortunately
- login: "das"
- mimetype: "text/plain"
- username: "das"
- icomment:
Ticket change [b9343baf9e] (rid 129096) by cc_benny on 2009-02-07 04:18:16:
- icomment:
I have the same problem with my builds. I can't see an error in our code. Adding debug output shows that only the first call for the same parameter succeeds, after that the routine does not find the bundle any more (bundleRef is always NULL). Removing the CFRelease(versionedBundleRef) fixes the problem. At least in my environment (OS 10.4.11) I always get back the same reference-counted object so at least here the memory leak would not be a real problem. For now I just removed both the CFRelease and the CFRetain in my sandbox.
- login: "cc_benny"
- mimetype: "text/plain"
- username: "cc_benny"
- icomment:
Ticket change [1f72943395] (rid 91147) by das on 2009-02-07 05:08:38:
- icomment:
ok, that sounds familiar, I had a similar bug once when a CFBundle owned by CF was over-CFReleased, sounds like I'm doing this here, will look into it, thanks.
- login: "das"
- mimetype: "text/plain"
- username: "das"
- icomment:
Ticket change [b647936e4c] (rid 125394) by das on 2009-02-07 05:08:40:
- priority changed to: "8"
Ticket change [7265121657] (rid 100854) by das on 2009-09-18 02:10:26:
- icomment:
this appears to be due to a bug in 10.4 CoreFoundation with CFBundle reference counting (CFRetain()ing and then CFRelease()ing a bundleRef obtained from CFBundleGetBundleWithIdentifier() results in that bundle being released and becoming unavailable for the lifetime of the process), the issue is not present on 10.5 or 10.6. patch attached that works around this bug and should fix the problem.
- login: "das"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "das"
- icomment:
Ticket change [c884f93792] (rid 122116) by das on 2009-09-18 02:14:42:
- icomment:
File Added - 343385: 2569449.diff
- login: "das"
- mimetype: "text/plain"
- username: "das"
- icomment:
Ticket change [e448fefddd] (rid 87929) by das on 2009-10-05 09:13:47:
- icomment:
File Deleted - 343385: File Added - 345347: 2569449.diff
- login: "das"
- mimetype: "text/plain"
- username: "das"
- icomment:
Ticket change [3b574867a3] (rid 112724) by das on 2009-10-05 09:17:27:
- icomment:
bug in 10.4 appears to extend to any CFRelease() of a CFBundle, once that has occurred, any subsequent attempt to recreate a bundle for that location fails. Adapted attached patch to bypass CFRelease() of bundle returned from CFBundleCreate() on 10.4 and earlier.
- login: "das"
- mimetype: "text/plain"
- username: "das"
- icomment:
Add attachment "2569449.diff" [f16ffa16ce] (rid 109364) by das on 2009-10-05 09:31:02.
Ticket change [0aec395483] (rid 113904) by das on 2009-10-05 09:31:02:
- icomment:
File Deleted - 345347: File Added - 345348: 2569449.diff
- login: "das"
- mimetype: "text/plain"
- username: "das"
- icomment:
Ticket change [e9fb00e1e4] (rid 104899) by das on 2009-10-05 09:42:15:
- icomment:
Committed to HEAD, core-8-5-branch and core-8-4-branch.
- login: "das"
- mimetype: "text/plain"
- username: "das"
- icomment:
Ticket change [d6ab3294b4] (rid 123845) by das on 2009-10-05 09:42:16:
- closedate changed to: "2009-10-05T02:42:16"
- closer changed to: "das"
- resolution changed to: "Fixed"
- status changed to: "Closed"