public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/14845] New: Segmentation fault on "info tracepoints"
@ 2012-11-15 14:04 m.lesniewski at samsung dot com
  2012-11-15 14:05 ` [Bug breakpoints/14845] " m.lesniewski at samsung dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: m.lesniewski at samsung dot com @ 2012-11-15 14:04 UTC (permalink / raw)
  To: gdb-prs

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

             Bug #: 14845
           Summary: Segmentation fault on "info tracepoints"
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
        AssignedTo: unassigned@sourceware.org
        ReportedBy: m.lesniewski@samsung.com
    Classification: Unclassified


Created attachment 6739
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6739
Example program, library and test script

The following steps cause a segmentation fault to occur in gdb:
1. The debugged process loads a library dynamically (using dlload);
2. The user sets a tracepoint in a function in the library and starts the trace
experiment;
3. The debugged process unloads the library (dlclose); 
4. The user stops the trace; 
5. The user issues the tfind command until no more traceframes are found
5. The user issues the "info tracepoints"

The attached archive contains a simple example program and scripts, which allow
to reproduce the problem. To run the scenario launch run-test.sh.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug breakpoints/14845] Segmentation fault on "info tracepoints"
  2012-11-15 14:04 [Bug breakpoints/14845] New: Segmentation fault on "info tracepoints" m.lesniewski at samsung dot com
@ 2012-11-15 14:05 ` m.lesniewski at samsung dot com
  2012-11-15 14:06 ` m.lesniewski at samsung dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: m.lesniewski at samsung dot com @ 2012-11-15 14:05 UTC (permalink / raw)
  To: gdb-prs

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

Michał Leśniewski <m.lesniewski at samsung dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |m.lesniewski at samsung dot
                   |                            |com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug breakpoints/14845] Segmentation fault on "info tracepoints"
  2012-11-15 14:04 [Bug breakpoints/14845] New: Segmentation fault on "info tracepoints" m.lesniewski at samsung dot com
  2012-11-15 14:05 ` [Bug breakpoints/14845] " m.lesniewski at samsung dot com
@ 2012-11-15 14:06 ` m.lesniewski at samsung dot com
  2012-11-15 14:39 ` qiyao at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: m.lesniewski at samsung dot com @ 2012-11-15 14:06 UTC (permalink / raw)
  To: gdb-prs

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

Michał Leśniewski <m.lesniewski at samsung dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |http://sourceware.org/bugzi
                   |                            |lla/show_bug.cgi?id=14844

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug breakpoints/14845] Segmentation fault on "info tracepoints"
  2012-11-15 14:04 [Bug breakpoints/14845] New: Segmentation fault on "info tracepoints" m.lesniewski at samsung dot com
  2012-11-15 14:05 ` [Bug breakpoints/14845] " m.lesniewski at samsung dot com
  2012-11-15 14:06 ` m.lesniewski at samsung dot com
@ 2012-11-15 14:39 ` qiyao at gcc dot gnu.org
  2012-11-15 14:57 ` palves at redhat dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: qiyao at gcc dot gnu.org @ 2012-11-15 14:39 UTC (permalink / raw)
  To: gdb-prs

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

Yao Qi <qiyao at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qiyao at gcc dot gnu.org

--- Comment #1 from Yao Qi <qiyao at gcc dot gnu.org> 2012-11-15 14:39:36 UTC ---
I don't see segfault on GDB 7.5 and head as below.  GDB is configured as
'i686-pc-linux-gnu'.

$ ./run-test.sh
make: Nothing to be done for `all'.
Process ./bar created; pid = 26552
Listening on port 7777
Python Exception <type 'exceptions.ImportError'> No module named gdb: 

warning: Could not load the Python gdb module from
`/usr/local/share/gdb/python'.

warning: Limited Python support is available from the _gdb module.
Remote debugging from host 127.0.0.1
0x4ce4c2b0 in _start () from /lib/ld-linux.so.2
Breakpoint 1 at 0x8048662: file bar.c, line 35.
Loading libfoo.so

Breakpoint 1, main () at bar.c:35
35          printf("\t%i\n", foo_ptr());
Tracepoint 2 at 0xb7ffb416: file foo.c, line 5.
Breakpoint 3 at 0x804867f: file bar.c, line 37.
        1
Unloading libfoo.so
warning: Temporarily disabling breakpoints for unloaded shared library
"./libfoo.so"

Breakpoint 3, main () at bar.c:37
37          return EXIT_SUCCESS;
Found trace frame 0, tracepoint 2
No trace frame found
Num     Type           Disp Enb Address    What
2       tracepoint     keep y   <PENDING>  foo
Killing all inferiors

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug breakpoints/14845] Segmentation fault on "info tracepoints"
  2012-11-15 14:04 [Bug breakpoints/14845] New: Segmentation fault on "info tracepoints" m.lesniewski at samsung dot com
                   ` (2 preceding siblings ...)
  2012-11-15 14:39 ` qiyao at gcc dot gnu.org
@ 2012-11-15 14:57 ` palves at redhat dot com
  2012-11-15 15:34 ` m.lesniewski at samsung dot com
  2012-11-15 15:35 ` m.lesniewski at samsung dot com
  5 siblings, 0 replies; 7+ messages in thread
From: palves at redhat dot com @ 2012-11-15 14:57 UTC (permalink / raw)
  To: gdb-prs

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

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |palves at redhat dot com
             Blocks|                            |14847

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug breakpoints/14845] Segmentation fault on "info tracepoints"
  2012-11-15 14:04 [Bug breakpoints/14845] New: Segmentation fault on "info tracepoints" m.lesniewski at samsung dot com
                   ` (3 preceding siblings ...)
  2012-11-15 14:57 ` palves at redhat dot com
@ 2012-11-15 15:34 ` m.lesniewski at samsung dot com
  2012-11-15 15:35 ` m.lesniewski at samsung dot com
  5 siblings, 0 replies; 7+ messages in thread
From: m.lesniewski at samsung dot com @ 2012-11-15 15:34 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Michał Leśniewski <m.lesniewski at samsung dot com> 2012-11-15 15:34:40 UTC ---
I'm sorry, I selected the incorrect version on the list above...

The bug occurs on gdb 7.2:
  GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
  (...)
  This GDB was configured as "x86_64-linux-gnu".

I tried to reproduce the problem on gdb 7.5 by changing the scenario a bit, but
gdb didn't crash. Perhaps the bug is already fixed.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug breakpoints/14845] Segmentation fault on "info tracepoints"
  2012-11-15 14:04 [Bug breakpoints/14845] New: Segmentation fault on "info tracepoints" m.lesniewski at samsung dot com
                   ` (4 preceding siblings ...)
  2012-11-15 15:34 ` m.lesniewski at samsung dot com
@ 2012-11-15 15:35 ` m.lesniewski at samsung dot com
  5 siblings, 0 replies; 7+ messages in thread
From: m.lesniewski at samsung dot com @ 2012-11-15 15:35 UTC (permalink / raw)
  To: gdb-prs

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

Michał Leśniewski <m.lesniewski at samsung dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|7.5                         |7.2

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2012-11-15 15:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-15 14:04 [Bug breakpoints/14845] New: Segmentation fault on "info tracepoints" m.lesniewski at samsung dot com
2012-11-15 14:05 ` [Bug breakpoints/14845] " m.lesniewski at samsung dot com
2012-11-15 14:06 ` m.lesniewski at samsung dot com
2012-11-15 14:39 ` qiyao at gcc dot gnu.org
2012-11-15 14:57 ` palves at redhat dot com
2012-11-15 15:34 ` m.lesniewski at samsung dot com
2012-11-15 15:35 ` m.lesniewski at samsung 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).