[gmpi] Re: Linux C++ question

On Thu, Feb 24, 2005 at 03:14:21PM +1300, Jeff McClintock wrote:
> > I provided a destructor for GMPI_Factory.  If I call GMPI_DllClose()
> > before exiting from main(), then I get a segfault.
> 
> Google groups..
> " I'm running into a problem on Linux while dynamically loading and
>  unloading DSOs. The problem is, if I build with --fuse-cxa-atexit I
>  get a segmentation fault on exit from main()"
> 
> `-fuse-cxa-atexit'
>      Register destructors for objects with static storage duration with
>      the `__cxa_atexit' function rather than the `atexit' function.
>      This option is required for fully standards-compliant handling of
>      static destructors, but will only work if your C library supports
>      `__cxa_atexit'.
> 
> http://groups.google.co.nz/groups?hl=en&lr=&threadm=5e0d1266.0408310613.3345e97a%40posting.google.com&rnum=3&prev=/groups%3Fq%3Ddlclose%2Bcrash%2Bmain%26hl%3Den%26lr%3D%26selm%3D5e0d1266.0408310613.3345e97a%2540posting.google.com%26rnum%3D3
> 
> Would be nice to have standard-complient code.

That doesn't clarify for me.  At least one of my Linux platforms does
NOT have cxa_atexit, and I can't find any useful docs on what this is
supposed to actually do.

Are we supposed to turn it on or off? What if it doesn't exist?


----------------------------------------------------------------------
Generalized Music Plugin Interface (GMPI) public discussion list
Participation in this list is contingent upon your abiding by the
following rules:  Please stay on topic.  You are responsible for your own
words.  Please respect your fellow subscribers.  Please do not
redistribute anyone else's words without their permission.

Archive: http://www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: