This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1158] Order of invokation of atexit functions in DSOs.
- From: "richard at ex-parrot dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 3 Aug 2005 14:56:23 -0000
- Subject: [Bug libc/1158] Order of invokation of atexit functions in DSOs.
- References: <20050803145147.1158.richard@ex-parrot.com>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From richard at ex-parrot dot com 2005-08-03 14:56 -------
I've attached are a pair of test cases. The files main1.c and dso1.c
demonstrate the first bug. The files main2.c and dso2.c demonstrate the second bug.
# To demonstrate the first bug:
gcc -g -O2 -Wall -pedantic -fPIC -shared dso1.c -olibdso1.so
gcc -g -O2 -Wall -pedantic -ldl main1.c -omain1
./main1
# To demonstrate the second bug:
gcc -g -O2 -Wall -pedantic -fPIC -shared dso2.c -olibdso2.so
gcc -g -O2 -Wall -pedantic -ldl main2.c -omain2
./main2
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1158
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.