LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Closed Thread
 
Search this Thread
Old 01-30-2009, 04:44 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 remote debugging


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 01-30-2009, 08:37 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,139
Blog Entries: 54

Rep: Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate of http://www.linuxquestions.org/questi...-debug-701109/.
 
  


Closed Thread

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
receiving SIGTRAP from /lib/ld-linux.so.2 when using GDB in remotely debug Amir Hallajpour Linux - Newbie 1 02-02-2009 07:08 PM
Debugging Problem in Gdb akm3 Programming 5 01-01-2009 10:03 AM
debugging remote process in gdb arunachalam Linux - Software 2 02-18-2008 10:27 PM
LXer: Remote cross-target debugging with GDB and GDBserver LXer Syndicated Linux News 0 11-28-2007 03:20 PM
using GDB for remote kernel debugging vibhooti Linux - Software 0 04-23-2007 01:17 AM


All times are GMT -5. The time now is 06:55 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration