public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/16971] SEGV in do_sym
       [not found] <bug-16971-131@http.sourceware.org/bugzilla/>
@ 2014-05-21  8:08 ` schwab@linux-m68k.org
  2014-05-21  8:35 ` ma.jiang at zte dot com.cn
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: schwab@linux-m68k.org @ 2014-05-21  8:08 UTC (permalink / raw)
  To: glibc-bugs

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

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
           Severity|critical                    |normal

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
Please provide a complete test case.  I cannot reproduce that, there is always
at least _dl_main_map.

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug dynamic-link/16971] SEGV in do_sym
       [not found] <bug-16971-131@http.sourceware.org/bugzilla/>
  2014-05-21  8:08 ` [Bug dynamic-link/16971] SEGV in do_sym schwab@linux-m68k.org
@ 2014-05-21  8:35 ` ma.jiang at zte dot com.cn
  2014-05-21  9:20 ` ma.jiang at zte dot com.cn
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: ma.jiang at zte dot com.cn @ 2014-05-21  8:35 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #2 from ma.jiang at zte dot com.cn ---
(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.

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug dynamic-link/16971] SEGV in do_sym
       [not found] <bug-16971-131@http.sourceware.org/bugzilla/>
  2014-05-21  8:08 ` [Bug dynamic-link/16971] SEGV in do_sym schwab@linux-m68k.org
  2014-05-21  8:35 ` ma.jiang at zte dot com.cn
@ 2014-05-21  9:20 ` ma.jiang at zte dot com.cn
  2014-06-12 19:16 ` fweimer at redhat dot com
  2014-06-12 19:16 ` fweimer at redhat dot com
  4 siblings, 0 replies; 5+ messages in thread
From: ma.jiang at zte dot com.cn @ 2014-05-21  9:20 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug dynamic-link/16971] SEGV in do_sym
       [not found] <bug-16971-131@http.sourceware.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2014-06-12 19:16 ` fweimer at redhat dot com
@ 2014-06-12 19:16 ` fweimer at redhat dot com
  4 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2014-06-12 19:16 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
              Flags|                            |security-

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug dynamic-link/16971] SEGV in do_sym
       [not found] <bug-16971-131@http.sourceware.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2014-05-21  9:20 ` ma.jiang at zte dot com.cn
@ 2014-06-12 19:16 ` fweimer at redhat dot com
  2014-06-12 19:16 ` fweimer at redhat dot com
  4 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2014-06-12 19:16 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|fweimer at redhat dot com          |

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-12 19:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-16971-131@http.sourceware.org/bugzilla/>
2014-05-21  8:08 ` [Bug dynamic-link/16971] SEGV in do_sym schwab@linux-m68k.org
2014-05-21  8:35 ` ma.jiang at zte dot com.cn
2014-05-21  9:20 ` ma.jiang at zte dot com.cn
2014-06-12 19:16 ` fweimer at redhat dot com
2014-06-12 19:16 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).