Re: exu problem
- Posted by Robert Craig <rds at ATTCANADA.NET> Sep 25, 2000
- 440 views
Bernie Ryan writes: > If I run the program and comment out the dlclose the error does > not occur when the program exits. When you open a .dll (or .so) on Linux the _init() entry point is called. When you close a .so the _fini() routine is called, if it's defined. Almost all of the .so's on your list export _init() and _fini() symbols. > The interpeter should not have this error when exiting > after opening and closing ANY shared library. Your program goes blindly through a list of 500 shared libraries, opening and closing them, causing _init() and _fini() routines to be invoked. You don't know what all those libraries do, or how they are supposed to be used. It doesn't surprise me that in one or two cases some instability might occur, just by opening and closing, leading to an eventual segmentation violation. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com