|Anonymous | Login||2017-11-20 06:29 EST|
|Main | My View | View Issues | Change Log | Roadmap | My Account|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001292||graphviz||Dot||public||2008-03-24 14:41||2011-04-28 04:03|
|Summary||0001292: atexit() causes crash in dynamic libraries|
I get a crash when I set the style attribute for nodes.
it doesn't matter what I set it to.
the crash is very strange, it happens at the atexit cleanup code,
as if something gets corrupted somewhere.
I don't think it's my code because if I change the attribute
from style=filled to abc12=filled everything works, and I don't
handle the style attribute special.
If atexit() is used to register a function, and then dlclose() is called,
then function is no longer there at exit to be executed, causing a core dump.
According to Lefty, there is a special version of atexit for DLLs. Need to
check with Lefty for more details.
[erg] This fix is to remove the calls to atexit, which were used to
free allocated memory. This leaves open the more general problem
of cleaning up malloced memory. For most cases, it is sufficient to
let the process clean up on exit, but if someone does an explicit
dlclose(), all of this memory will still be lost.
|Tags||No tags attached.|
|STATUS-COMMENT||Fixed (23 Mar 2008)|
|2011-04-28 04:03||user1||New Issue|
|2011-04-28 04:03||user1||Assigned To||=> erg|
|MantisBT 1.2.5[^] Copyright © 2000 - 2011 MantisBT Group|