public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug cli/11646] New: which  a shared library is opened and closed
@ 2010-05-31  6:53 pizhoupeter at hotmail dot com
  2010-05-31  6:54 ` [Bug cli/11646] gdb crashes " pizhoupeter at hotmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: pizhoupeter at hotmail dot com @ 2010-05-31  6:53 UTC (permalink / raw)
  To: gdb-prs

gdb version: 7.1, OS: Red Hat Enterprise Linux Client release 5.3 (Tikanga)
Reproduce steps:
1. build a shared library:
  source code (file shared.c):
  int add(int a, int b)
  {
     return a+b;
   } 
  gcc -m32 -fpic -shared shared.c -o libmyshared.so
2. build an executable
   source code (main.c)
  #include <stdio.h>
  #include <dlfcn.h>
  void openlibrary()
  {
     void *handle = dlopen("./libmyshared.so", RTLD_LAZY);
     if(handle!=NULL)
     {
       printf("open successully\n");
       dclose(handle);
     }
     else
     {
        fprintf(stderr, "%s\n", dlerror());

     }
  }

  int main()
  {
     return 0;
   }
  
  gcc -m32 -g main.c -ldl

3. launch the debugger by command "gdb a.out"
  then in the command line interface:
  1) input "b main", then type enter
  2) input "run", then type enter
  3) input "c openlibrary()", then type enter
  4) repeat step 3 at most 50 times, then the gdb terminates. This behavior is
unexpected.

Note: this bug doesn't exist in 6.8-27.el5

-- 
           Summary: which  a shared library is opened and closed
           Product: gdb
           Version: 7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P1
         Component: cli
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: pizhoupeter at hotmail dot com
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=11646

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug cli/11646] gdb crashes which  a shared library is opened and closed
  2010-05-31  6:53 [Bug cli/11646] New: which a shared library is opened and closed pizhoupeter at hotmail dot com
@ 2010-05-31  6:54 ` pizhoupeter at hotmail dot com
  2010-05-31  6:54 ` [Bug cli/11646] gdb crashes when " pizhoupeter at hotmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: pizhoupeter at hotmail dot com @ 2010-05-31  6:54 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
            Summary|which  a shared library is  |gdb crashes which  a shared
                   |opened and closed           |library is opened and closed


http://sourceware.org/bugzilla/show_bug.cgi?id=11646

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug cli/11646] gdb crashes when  a shared library is opened and closed
  2010-05-31  6:53 [Bug cli/11646] New: which a shared library is opened and closed pizhoupeter at hotmail dot com
  2010-05-31  6:54 ` [Bug cli/11646] gdb crashes " pizhoupeter at hotmail dot com
@ 2010-05-31  6:54 ` pizhoupeter at hotmail dot com
  2010-05-31  6:57 ` [Bug cli/11646] gdb crashes when a function is called and in the function " pizhoupeter at hotmail dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: pizhoupeter at hotmail dot com @ 2010-05-31  6:54 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|gdb crashes which  a shared |gdb crashes when  a shared
                   |library is opened and closed|library is opened and closed


http://sourceware.org/bugzilla/show_bug.cgi?id=11646

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug cli/11646] gdb crashes when a function is called and in the function a shared library is opened and closed
  2010-05-31  6:53 [Bug cli/11646] New: which a shared library is opened and closed pizhoupeter at hotmail dot com
  2010-05-31  6:54 ` [Bug cli/11646] gdb crashes " pizhoupeter at hotmail dot com
  2010-05-31  6:54 ` [Bug cli/11646] gdb crashes when " pizhoupeter at hotmail dot com
@ 2010-05-31  6:57 ` pizhoupeter at hotmail dot com
  2010-05-31  6:58 ` [Bug cli/11646] gdb crashes when it is suspended if " pizhoupeter at hotmail dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: pizhoupeter at hotmail dot com @ 2010-05-31  6:57 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|gdb crashes when  a shared  |gdb crashes when a function
                   |library is opened and closed|is called and in the
                   |                            |function a shared library is
                   |                            |opened and closed


http://sourceware.org/bugzilla/show_bug.cgi?id=11646

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug cli/11646] gdb crashes when it is suspended if a function is called and in the function a shared library is opened and closed
  2010-05-31  6:53 [Bug cli/11646] New: which a shared library is opened and closed pizhoupeter at hotmail dot com
                   ` (2 preceding siblings ...)
  2010-05-31  6:57 ` [Bug cli/11646] gdb crashes when a function is called and in the function " pizhoupeter at hotmail dot com
@ 2010-05-31  6:58 ` pizhoupeter at hotmail dot com
  2010-06-03  5:24 ` pizhoupeter at hotmail dot com
  2010-06-03 11:23 ` pedro at codesourcery dot com
  5 siblings, 0 replies; 8+ messages in thread
From: pizhoupeter at hotmail dot com @ 2010-05-31  6:58 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|gdb crashes when a function |gdb crashes when it is
                   |is called and in the        |suspended if a function is
                   |function a shared library is|called and in the function a
                   |opened and closed           |shared library is opened and
                   |                            |closed


http://sourceware.org/bugzilla/show_bug.cgi?id=11646

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug cli/11646] gdb crashes when it is suspended if a function is called and in the function a shared library is opened and closed
  2010-05-31  6:53 [Bug cli/11646] New: which a shared library is opened and closed pizhoupeter at hotmail dot com
                   ` (3 preceding siblings ...)
  2010-05-31  6:58 ` [Bug cli/11646] gdb crashes when it is suspended if " pizhoupeter at hotmail dot com
@ 2010-06-03  5:24 ` pizhoupeter at hotmail dot com
  2010-06-03 11:23 ` pedro at codesourcery dot com
  5 siblings, 0 replies; 8+ messages in thread
From: pizhoupeter at hotmail dot com @ 2010-06-03  5:24 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://sourceware.org/bugzilla/show_bug.cgi?id=11646

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug cli/11646] gdb crashes when it is suspended if a function is called and in the function a shared library is opened and closed
  2010-05-31  6:53 [Bug cli/11646] New: which a shared library is opened and closed pizhoupeter at hotmail dot com
                   ` (4 preceding siblings ...)
  2010-06-03  5:24 ` pizhoupeter at hotmail dot com
@ 2010-06-03 11:23 ` pedro at codesourcery dot com
  5 siblings, 0 replies; 8+ messages in thread
From: pedro at codesourcery dot com @ 2010-06-03 11:23 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From pedro at codesourcery dot com  2010-06-03 11:23 -------
I think this was fixed shortly after 7.1 was released.  Please try a recent
snapshot or cvs mainline.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11646

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug cli/11646] gdb crashes when it is suspended if a function is called and in the function a shared library is opened and closed
       [not found] <bug-11646-4717@http.sourceware.org/bugzilla/>
@ 2014-09-12 21:59 ` sergiodj at redhat dot com
  0 siblings, 0 replies; 8+ messages in thread
From: sergiodj at redhat dot com @ 2014-09-12 21:59 UTC (permalink / raw)
  To: gdb-prs

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

Sergio Durigan Junior <sergiodj at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
                 CC|                            |sergiodj at redhat dot com
         Resolution|---                         |OBSOLETE

--- Comment #2 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
Closing as OBSOLETE because of inactivity.  Feel free to reopen if you still
see this issue.

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


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

end of thread, other threads:[~2014-09-12 21:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-31  6:53 [Bug cli/11646] New: which a shared library is opened and closed pizhoupeter at hotmail dot com
2010-05-31  6:54 ` [Bug cli/11646] gdb crashes " pizhoupeter at hotmail dot com
2010-05-31  6:54 ` [Bug cli/11646] gdb crashes when " pizhoupeter at hotmail dot com
2010-05-31  6:57 ` [Bug cli/11646] gdb crashes when a function is called and in the function " pizhoupeter at hotmail dot com
2010-05-31  6:58 ` [Bug cli/11646] gdb crashes when it is suspended if " pizhoupeter at hotmail dot com
2010-06-03  5:24 ` pizhoupeter at hotmail dot com
2010-06-03 11:23 ` pedro at codesourcery dot com
     [not found] <bug-11646-4717@http.sourceware.org/bugzilla/>
2014-09-12 21:59 ` sergiodj 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).