LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-30-2009, 05:12 PM   #1
Amir Hallajpour
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
receiving SIGTRAP from /lib/ld-linux.so.2 when using GDB in remotely debug


Hi,

I am having a hard time getting GDB to work for remote debugging. I am running RedHat Enterprise Linux 5.1 (2.6.18-53.el5), gcc 4.1.2, and gdb 6.5-25.el5rh) on x86 platform. I do not generate any signals in my application and my application works fine. I am able to attach gdb to my remote process, but I never get to the breakpoints in the application becasue the program receives SIGTRAPS pretty much at every instruction from /bin/ld-linux.so.2

GNU gdb Red Hat Linux (6.5-25.el5rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". Here is what I get:

(gdb) target remote 192.168.10.110:2345
Remote debugging using 192.168.10.110:2345
0x0067e810 in ?? ()
(gdb) c
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x0068c793 in _dl_debug_state () from /lib/ld-linux.so.2
(gdb) c
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x0068c794 in _dl_debug_state () from /lib/ld-linux.so.2
(gdb) c
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00681379 in dl_main () from /lib/ld-linux.so.2
(gdb) c
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x0068137f in dl_main () from /lib/ld-linux.so.2
(gdb) c
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00681381 in dl_main () from /lib/ld-linux.so.2
(gdb) c
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00681387 in dl_main () from /lib/ld-linux.so.2
(gdb) c
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x0068138d in dl_main () from /lib/ld-linux.so.2
(gdb)
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00681397 in dl_main () from /lib/ld-linux.so.2
(gdb)
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00681399 in dl_main () from /lib/ld-linux.so.2
(gdb)
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x0068139f in dl_main () from /lib/ld-linux.so.2
(gdb)
Continuing.



Has anyone seen this problem before?

Thanks
 
Old 02-02-2009, 08:08 PM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 233Reputation: 233Reputation: 233
gdb
 
  


Reply

Tags
gdb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I debug the interactinve program with GDB bigapple Programming 1 08-03-2005 10:55 PM
How to use gdb to debug child process? ariana Programming 2 05-03-2005 02:50 PM
GDB unable to debug pthreads linuxdeveloper Programming 1 03-06-2005 06:18 AM
Using gdb to debug different arhitectures george_mercury Linux - Software 1 01-07-2005 07:19 PM
how to debug multithread using GDB? ryanux Programming 1 05-11-2004 01:58 AM


All times are GMT -5. The time now is 08:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration