This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/1158] Order of invokation of atexit functions in DSOs.


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]