Overview
| Artifact ID: | bfe275f212cbe87b313033f8e758e8ac7c5ecab6 |
|---|---|
| Ticket: | 82521bfb6734f891ddecc26b4b4b3388fdc3eb1c
Segfault from commit af06c0fbf8 onwards |
| User & Date: | anonymous on 2014-09-27 17:18:29 |
Changes
- icomment:
There were some problems with that, so I've rebuild everything from scratch to be isolated from the system now and confirmed that it's loading the correct libs, scripts, etc (using strace -f -eopen and checking all the paths). Then I bisected again, this time with -DPURIFY and --enable-symbols=mem, and reached a different commit ([cddbfc3081]) that reliably segfaulted or crashed (this time with "trying to free a TclObj created in a different thread"). Valgrind on that commit produced quite a lot of memory errors on that version and nothing on it's parent. But I get the feeling I'm chasing a Heisenbug. I noticed that small changes to the proc that was hitting the segfault were affecting the outcome, even on code paths that weren't run. So I tried dumping [tcl::unsupported::disassemble proc] just after it was defined. For versions that segfaulted when run, the disassemble would also segfault, so I'm trying to reduce the code down to the minimum necessary to produce the segfault on disassembly. The strange thing about this is that, although it has all the classic signs of a memory corruption issue, it's always and only this proc that segfaults. It's running in production serving around 3.5 million hits daily on 9 servers, and nearly every terrible thing you could think of is being done by some part of the code.
- login: "anonymous"
- mimetype: "text/plain"