Overview
| Artifact ID: | 8bdcd69b4669d726e22674901729601ad8b59422 |
|---|---|
| Ticket: | 1160057fffffffffffffffffffffffffffffffff
Seg fault from usleep |
| User & Date: | s_a_white on 2005-10-05 14:48:18 |
Changes
- icomment:
Logged In: YES user_id=59929 Am not sure... The problem only started when moving to a newer Linux distribution and as yet have not been able to try a new one. The compiler has gone from gcc 3.3 to 3.4 (last distribution used the old compiler). I believe 3.4 is still consider "stable" and gcc 4 what to start aiming for but may contain bugs, The major thing I note about this Linux distribution was the change to ntpl which was causing various other problems for us (mainly how thread cancelation was now being handled during cout.... now exception rather than cancelation point, sem_wait can now also return -1... not according to the docs). To be honest I wasn't sure which list to ask TCL, glibc, C++ or gcc (note I've tried contacting glibc as they do the nptl, but no response). As noted the problem only appears when run in TCL, rather than a standalone main. As stated running tcl under valgrind with the same test made the problem disappear. Am I running with threads enabled, probably not. This is a prebuilt version by the distribution. All TCL does is make calls to external functions that start/stop threads and occasionally grab mutexs, but those threads do not access any tcl functions or keep track of any tcl memory (objects).
- login: "s_a_white"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "s_a_white"