Overview
| Artifact ID: | 0f82fd90fd6dcafaed53835f48d7f85ac8baa40f |
|---|---|
| Ticket: | 3459659fffffffffffffffffffffffffffffffff
tclsh85sg crashes in BaseThreadInitThunk |
| User & Date: | tombert on 2011-12-15 20:20:20 |
Changes
- icomment:
Unfort. the above described crash I can't reproduce any more ... don't know how I did that!? But I've got some other good news: I think I finally found the problem: I was using pgtclng with the following package script (which comes with the source code): proc Pgtcl__load_with_path {dir} { global env set save_path $env(PATH) append env(PATH) ";$dir" load [file join $dir libpgtcl.dll] set env(PATH) $save_path } package ifneeded Pgtcl 2.0.0 [list Pgtcl__load_with_path $dir] In order to get it working I copied all the needed dlls into the pgtclng folder (i.e. libpq.dll, msvcr71.dll, ... = all dlls from the postgres bin directory). Now loading the pgtcl package goes fine, but exiting gave me the error 0x3=ERROR_PATH_NOT_FOUND (http://msdn.microsoft.com/en-us/library/windows/desktop/ms681382%28v=vs.85%29.aspx) Copying all the dlls into the tcl bin directory I didn't have the problem. So for me it looks like I was fooled by the windows dll late binding feature.(http://blogs.msdn.com/b/davidklinems/archive/2006/11/27/what-is-late-binding.aspx) For the moment I assume that all this was causing my postgres thread to crash (because it didn't find a missing dll while exiting). Also it's possible (or at least I hope so) that this was causing my more fatal segmentation faults ... but time will tell. Currently I'am trying to build postgres from scratch to get static libraries thx - login: "tombert"
- mimetype: "text/plain"
- username: "tombert"