Overview
| Artifact ID: | 70032bb5e65880ef4c3a6eff52bb5fc8c24ac202 |
|---|---|
| Ticket: | 3598300fffffffffffffffffffffffffffffffff
unix: tcl.h does not include sys/stat.h |
| User & Date: | dkf on 2013-01-17 07:30:34 |
Changes
- icomment:
As far as I can tell, the problem is that there's a mismatch in between the use of 'struct stat' somehow in the code and the fact that we're using stat64() and lstat64() on OSX Leopard. This is in turn overwriting part of the stack it shouldn't (again: hypothesis) which is causing a pointer to a legit Tcl_Obj (in the encoding system initialization) to get turned into a NULL; for obvious reasons, applying a Tcl_GetString() to NULL (this is inside the path concatenation code as it happens) causes a crash. I emphasize that this is just supposition based on examining the backtrace at the point where the crash happens, together with the observation that I've only just recently started getting compile time warnings about the wrong type being used with stat64 and lstat64. The rest is a guess, but could so easily happen! (If this is true, it would explain why other developers aren't seeing the problem: they're not getting the type mismatch in the first place.)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"