On 6/22/06, Michael D. Adams <[EMAIL PROTECTED]> wrote: > On 6/22/06, res <[EMAIL PROTECTED]> wrote: > > On 22.06.2006 05:49, Michael D. Adams wrote: > > > The segfault is due to __call_exitprocs making a function call to an > > > invalid memory location. This makes your hypothesis plausible. Is > > > there a way to unregister exit functions at library unload time? > > > (FYI, I believe Cygwin uses the newlib libraries for it's libc.) > > > > Maybe it works better to use a C++ static variable to clean up ptmalloc; > > see attached patch. > > > > However, this has drawbacks, too: it can happen that the static var that > > shuts down ptmalloc is destroyed before other static vars which may have > > memory allocated and may call ptmalloc functions again... > > This patch didn't fix the segfaults.
I thought I already sent this message, but I guess not. Just a note for the sake of the record, that this problem was fixed with revision 24943. The patch res supplied did actually fix the problem, but needed some tweaks having to do with static-variable destruction order to work correctly. Michael D. Adams [EMAIL PROTECTED] ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]
