Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001292graphvizDotpublic2008-03-24 14:412011-04-28 04:03
ReporterEleftherios Koutsofios 
Assigned Toerg 
PlatformOS*-*-OS Version
Summary0001292: 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.
Additional Information

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.
TagsNo tags attached.
STATUS-COMMENTFixed (23 Mar 2008)
VERSION     2.18
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
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
Powered by Mantis Bugtracker