Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: teawater <teawater@gmail.com>
To: Albert Fu <quarkverse@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Program terminated by SIGTRAP in gdb
Date: Thu, 15 Jan 2009 02:08:00 -0000	[thread overview]
Message-ID: <daef60380901141807n1da061d2s37860666049308a@mail.gmail.com> (raw)
In-Reply-To: <966c7c700901141637g49f2bafcj6e95c60c80227eba@mail.gmail.com>

I think is because your libpthread is stripped.  Maybe you can check
it and make sure it's not stripped.

On Thu, Jan 15, 2009 at 08:37, Albert Fu <quarkverse@gmail.com> wrote:
> Hi,
>
> I am new to debug a multi-thread program in gdb on my target.
>
> The program is terminated when it calls sem_wait().
> I browsed the gdb mailing list and didn't find an answer to my problem.
>
> ######################
> Program received signal SIGTRAP, Trace/breakpoint trap.
> 0x0fe2ba28 in sigsuspend () from /lib/libc.so.6
> (gdb) bt
> #0  0x0fe2ba28 in sigsuspend () from /lib/libc.so.6
> #1  0x0fd91094 in pthread_getconcurrency () from /lib/libpthread.so.0
> #2  0x0fd920f0 in sem_wait () from /lib/libpthread.so.0
> #3  0x10016428 in main (argc=2, argv=0x7ffffdf4) at main.c:7361
> (gdb) info threads
> (gdb) info sharedlibrary
> From        To          Syms Read   Shared Object Library
> 0x0fe15aa0  0x0ff1dd20  Yes         /lib/libc.so.6
> 0x0fd8d0c0  0x0fd95d2c  Yes         /lib/libpthread.so.0
> 0x30001f60  0x30013980  Yes         /lib/ld.so.1
> 0x0fd6006c  0x0fd67a6c  No          /lib/libnss_files.so.2
> (gdb)
> ######################
>
> Could you tell me why the program is supspended? Is the problem
> in the C library?
>
> I would really appreciate it if anyone could give me some advices.
>
> Thanks.
>
> Best regards,
>
> Albert
>


  reply	other threads:[~2009-01-15  2:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-15  0:37 Albert Fu
2009-01-15  2:08 ` teawater [this message]
2009-01-16  2:06 ` Paul Pluzhnikov
2009-01-16 19:05   ` Albert Fu
2009-01-16 20:13     ` Paul Pluzhnikov
     [not found]       ` <966c7c700901161513o6bca18dbx5ad35a1924b41130@mail.gmail.com>
2009-01-16 23:34         ` Paul Pluzhnikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=daef60380901141807n1da061d2s37860666049308a@mail.gmail.com \
    --to=teawater@gmail.com \
    --cc=gdb@sourceware.org \
    --cc=quarkverse@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox