This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap 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 uprobes/22297] New: Program terminated with signal SIGTRAP, Trace/breakpoint trap


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

            Bug ID: 22297
           Summary: Program terminated with signal SIGTRAP,
                    Trace/breakpoint trap
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: critical
          Priority: P1
         Component: uprobes
          Assignee: systemtap at sourceware dot org
          Reporter: orgusuk at gmail dot com
                CC: drow at false dot org, gdb-prs at sourceware dot org,
                    mihai.stanescu at gmail dot com, unassigned at sourceware dot org
  Target Milestone: ---

+++ This bug was initially created as a clone of Bug #9463 +++

[Converted from Gnats 2358]

I have a simple program dynamically linked agains pthread.

When i try to set a breakpoint in a child thread created with pthread_create i
get 

Program terminated with signal SIGTRAP, Trace/breakpoint trap.

I am using NPTL

Release:
> gdb 6.6

Environment:
Gentoo distribution, all patches,kernel 2.6.22-gentoo-r8, also happens with
newer kernels

gcc (GCC) 4.1.2 (Gentoo 4.1.2)

---------------
GNU C Library stable release version 2.6.1, by Roland McGrath et al.
Compiled by GNU CC version 4.1.2 (Gentoo 4.1.2).
Compiled on a Linux >>2.6.22-gentoo-r8<< system on 2007-11-06.
Available extensions:
        C stubs add-on version 2.1.2
        crypt add-on version 2.1 by Michael Glad and others
        Gentoo patchset 1.1
        GNU Libidn by Simon Josefsson
        Native POSIX Threads Library by Ulrich Drepper et al
        Support for some architectures added on, not maintained in glibc core.
        BIND-8.2.3-T5B

How-To-Repeat:
Just compile the program with
gcc -g -o pthreadtest pthreadtest.c -lpthreads

run program with 
./pthreadtest  &

gdb -p `pgrep pthreadtest`

In gdb

br 12
continue

-- 
You are receiving this mail because:
You are the assignee for the bug.

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