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 dynamic-link/16971] SEGV in do_sym


https://sourceware.org/bugzilla/show_bug.cgi?id=16971

ma.jiang at zte dot com.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from ma.jiang at zte dot com.cn ---
(In reply to ma.jiang from comment #2)
> (In reply to Andreas Schwab from comment #1)
> > Please provide a complete test case.  I cannot reproduce that, there is
> > always at least _dl_main_map.
> 
> I can use this code to reproduce the bug on MIPS(qemu).
> 
> #include <dlfcn.h>
> #include <stdio.h>
> int main()
> {
> 
>        void *x = dlsym(NULL, "_r_debug");
>         return 0;
> }
> 
> I can reproduce this bug on glibc-2.13, currently I can not got a latest
> mips glibc. Sorry if this bug has got fixed elsewhere.

This bug is fixed in dl-support.c.
/* Namespace information.  */
struct link_namespaces _dl_ns[DL_NNS] =
  {
    [LM_ID_BASE] =
      {
    ._ns_loaded = &_dl_main_map,
    ._ns_nloaded = 1,
    ._ns_main_searchlist = &_dl_main_map.l_searchlist,
      }
  };
After adding the dummy link map, checking the match in do_sym is not
necessary.Sorry for the trouble I have make.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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