public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* Re: shlibs/2465: break point on shared libraries that are not closed, but deleted.
@ 2008-06-10 20:28 Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2008-06-10 20:28 UTC (permalink / raw)
  To: nobody; +Cc: gdb-prs

The following reply was made to PR shlibs/2465; it has been noted by GNATS.

From: Daniel Jacobowitz <drow@false.org>
To: amritpal.engg@gmail.com
Cc: gdb-gnats@sources.redhat.com
Subject: Re: shlibs/2465: break point on shared libraries that are not
	closed, but deleted.
Date: Tue, 10 Jun 2008 16:21:36 -0400

 On Tue, Jun 10, 2008 at 05:41:11PM -0000, amritpal.engg@gmail.com wrote:
 > >Release:        GNU gdb 6.3
 
 Please try a newer version; GDB will warn but no longer crash.
 
 -- 
 Daniel Jacobowitz
 CodeSourcery


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

* shlibs/2465: break point on shared libraries that are not closed, but deleted.
@ 2008-06-10 17:48 amritpal.engg
  0 siblings, 0 replies; 2+ messages in thread
From: amritpal.engg @ 2008-06-10 17:48 UTC (permalink / raw)
  To: gdb-gnats


>Number:         2465
>Category:       shlibs
>Synopsis:       break point on shared libraries that are not closed, but deleted.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 10 17:48:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     amritpal.engg@gmail.com
>Release:        GNU gdb 6.3
>Organization:
>Environment:
uname -a
Linux polaris 2.4.21-20.EL #1 Wed Aug 18 20:58:25 EDT 2004 i686 i686 i386 GNU/Linux

echo $LD_LIBRARY_PATH
/usr/lib:/usr/X11R6/lib:/lib:/usr/local/lib
>Description:
gdb terminates abnormally. Says to report bug and here i am reporting it.

Let me explain the scenario first.

We have an encrypted "libtry.so" (in this case i am just i using a dummy not-encrypted one). in each run we decrypt the so to a new file in /tmp directory to produce an executable "libtry.so". Now this is loaded at run time internally using dlopen function.

After executing some functions of loaded library. I just deleted the underlying library before using "dlclose".

Now i want to  set a break point on function of the library. GDB crashes. Pressing Tab button shows the list of library function, even when run is completed. (Should tell me it as pending breakpoint and also call dlclose on all existing open library after the main has returned)
>How-To-Repeat:
See the attached tar-file.
To reproduce
1. download
2. untar
3. execute the following commands 

make
make gdb

NOTE: Please set complier (gcc and g++) paths correctly in Makefile. Required gcc compilier for compiling lib
>Fix:
Should tell me it as pending breakpoint and also call dlclose on all existing open library after the main has returned
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-gzip; name="gdb_bug.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gdb_bug.tar.gz"

H4sIABe6TkgAA+1YbW/bNhDO1+pXsN7cSo5tSbZsY3Y9oE3swpiXAE6CAmsLQ5YoR6hMCRLVNCj6
33ckRb04SdMNTbt2ug+WdLzjPffCI+mtu1lv0q1+8IBkGJYxGgzgaZjDUZ894a0nnoIOTNPo9Qf9
AeebPbNvHaDBQ4KSlCbUjhE6sHexTyM7uEvu6hLjOwd/XNpm+d/ZPuk6D2PDMA1jaFl35X/QG/VE
/q3RYGSNQL7fG5gHyHgYOFX6n+f/F584Qepi9Cyhrh92L39XKqzA3+zzYp9sqzwcx2Rf9TrRIbL0
JpdeRzipsqm/w1VOSnwwXuW5gecQxlKckCQUJZdhTNGLi/l8tlqfLf6aTS3jt+EEhi8ho60tpue7
aO4H+MTeYVXoiCHXj9uozIhi7PkfNOWjgoB8QpE/4a98mID+azb3WzRFH9HTN8ZT9AnscFkPqTAd
mk7RycVyqSH+gRo63UWNSS4iDBRS8hs1GtlEXhgj1Z8aE+Q/g/XCnoeHGhKIGEHgUwe8hqCiTepN
ioEIMkI9lcFso0Yz0ZtJ022mTbfRRtxVYa0N8xOqQVwi31U1+FRTkvhbgl3mssayoHJ4TQYABGKb
gKD4ymBKhxiMzOITQKOhZ8goo2UUY5rGhAF304gL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ftdq9vTNz5hX8pycfLHbHWv5OGhcjRfPn95Np6izhZqC3Ve2UGg
LHNmAgcj7CrHs/niZMY5Hgk7+IODI7aM4bRwvF4+X72csXv6+uz0YnU0Yzz+eTqfn83O1y8W52fT
oQV9Cnt2GtAxyo8q/GimKE6AbTJWHnXiHRhgw91wT6grZdnvWLAc5dGv6tGRhuCXI2ZvGVQNdXLF
jpPJo84C8ZBkTZTpi1DBIbYTuIFUyjRzRNmnkmMaC5DlCeAtA9EpgxdyCn8IrXtgO0Iom4XpQmIg
OE6EGJTE3kUBXgPPJz5F3ewFoLL8dfk/wznufLRupD8Hyf5frYKva+O+858xGMn+37d6IGcODGtU
9/9vQZu9a6kSp4T9v059kmJlUz0D1qu+pppqqqmmmmqqqaaafmj6G7xGyzUAKAAA


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

end of thread, other threads:[~2008-06-10 20:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-10 20:28 shlibs/2465: break point on shared libraries that are not closed, but deleted Daniel Jacobowitz
  -- strict thread matches above, loose matches on Subject: below --
2008-06-10 17:48 amritpal.engg

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