Re: Segmentation fault/memory corruption in TclpAlloc()
- From: John Caruso <johnSPAMcarAWAYuso@xxxxxxxxxxxx>
- Date: Fri, 3 Feb 2012 00:45:17 +0000 (UTC)
In article <slrnj8ulgl.244.johnSPAMcarAWAYuso@xxxxxxxxxxxxxxxxxxxxxxxxxx>, John Caruso wrote:
Welcome to my nightmare. :-)
Which has finally ended. For anyone who's interested, the problem was in
the tDOM code (not Tcl) -- there's a memcpy() in there that specifies
sizeof(int*) when it should be using sizeof(int), which worked on a 32-bit
architecture where both of those were 4 but caused problems on a 64-bit
architecture where sizeof(int*) was 8 (so the memcpy was copying twice as
much as it should have). Someone else encountered the same problem:
http://tech.groups.yahoo.com/group/tdom/message/1994
Based on what that person said I tried re-running the server in question
under valgrind yet again (with no suppressions and no error limit), and
valgrind still didn't flag the problem that led to this crash (or any
tDOM functions at all, actually). So I'm not sure what I could have done
differently to track it down.
Thanks to everyone who offered suggestions and assistance--it was much
appreciated.
- John
.
- Follow-Ups:
- Re: Segmentation fault/memory corruption in TclpAlloc()
- From: Koen Danckaert
- Re: Segmentation fault/memory corruption in TclpAlloc()
- Prev by Date: Tcl users from Brasil
- Next by Date: 8.5.11
- Previous by thread: Tcl users from Brasil
- Next by thread: Re: Segmentation fault/memory corruption in TclpAlloc()
- Index(es):
Relevant Pages
|