This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Re: libanl + atexit + more


Ulrich Drepper <drepper@redhat.com> writes:

> Second, I haven't gotten any comments on the atexit() implementation
> changes I made.  They are so non-obvious that I thought the one or
> other would comment.  The good thing is that this implementation
> should be very robust.  The bad thing is that old programs cannot be
> fixed, everything (means DSOs) has to be relinked (if they have this
> problem which is fortunately rare).  I don't think this is a problem.
> Note that today (until sometime next week :-) this atexit()
> implementation is not Unix conforming.  Unix currently forbids this
> behavior (this means the registered functions are called at dlclose()
> time).  I've filed an defect report which will be handled next week.

make check fails now for me:

GCONV_PATH=/builds/glibc/main-gcc-2.95/iconvdata LC_ALL=C   /builds/glibc/main-gcc-2.95/elf/ld-linux.so.2 --library-path /builds/glibc/main-gcc-2.95:/builds/glibc/main-gcc-2.95/math:/builds/glibc/main-gcc-2.95/elf:/builds/glibc/main-gcc-2.95/dlfcn:/builds/glibc/main-gcc-2.95/nss:/builds/glibc/main-gcc-2.95/nis:/builds/glibc/main-gcc-2.95/rt:/builds/glibc/main-gcc-2.95/resolv:/builds/glibc/main-gcc-2.95/crypt:/builds/glibc/main-gcc-2.95/linuxthreads /builds/glibc/main-gcc-2.95/dlfcn/tstcxaatexit  > /builds/glibc/main-gcc-2.95/dlfcn/tstcxaatexit.out
make[2]: *** [/builds/glibc/main-gcc-2.95/dlfcn/tstcxaatexit.out] Error 1

gromit:/builds/glibc/main-gcc-2.95:[0]$ cat dlfcn/tstcxaatexit.out 
cannot open "modcxaatexit.so": /builds/glibc/main-gcc-2.95/dlfcn/modcxaatexit.so: undefined symbol: __dso_handle


This is with gcc 2.95.2.  With a 3.0 pre release I get a segmentation
fault, I'll send details tomorrow.

Both happens on i686-linux,

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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