public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* Re: breakpoints/2431: function call on command line terminates with SIGTRAP
@ 2008-03-17 16:38 Daniel Jacobowitz
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2008-03-17 16:38 UTC (permalink / raw)
  To: nobody; +Cc: gdb-prs

The following reply was made to PR breakpoints/2431; it has been noted by GNATS.

From: Daniel Jacobowitz <drow@false.org>
To: Dick Streefland <dicks@altium.nl>
Cc: gdb-gnats@sourceware.org
Subject: Re: breakpoints/2431: function call on command line terminates
	with SIGTRAP
Date: Mon, 17 Mar 2008 12:28:31 -0400

 On Mon, Mar 17, 2008 at 04:18:01PM -0000, Dick Streefland wrote:
 > The following reply was made to PR breakpoints/2431; it has been noted by GNATS.
 > 
 > From: Dick Streefland <dicks@altium.nl>
 > To: gdb-gnats@sources.redhat.com
 > Cc:  
 > Subject: Re: breakpoints/2431: function call on command line terminates
 > 	with SIGTRAP
 > Date: Mon, 17 Mar 2008 17:14:36 +0100
 > 
 >  I did some more investigation, and found out that the problem is kernel
 >  version related after all. Linux-2.6.23.12 works OK, but linux-2.6.24.3
 >  shows the problem on the same machine.
 
 It's more likely to be a kernel bug, in my opinion.
 
 -- 
 Daniel Jacobowitz
 CodeSourcery


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

* Re: breakpoints/2431: function call on command line terminates with SIGTRAP
@ 2008-03-17 16:18 Dick Streefland
  0 siblings, 0 replies; 3+ messages in thread
From: Dick Streefland @ 2008-03-17 16:18 UTC (permalink / raw)
  To: nobody; +Cc: gdb-prs

The following reply was made to PR breakpoints/2431; it has been noted by GNATS.

From: Dick Streefland <dicks@altium.nl>
To: gdb-gnats@sources.redhat.com
Cc:  
Subject: Re: breakpoints/2431: function call on command line terminates
	with SIGTRAP
Date: Mon, 17 Mar 2008 17:14:36 +0100

 I did some more investigation, and found out that the problem is kernel
 version related after all. Linux-2.6.23.12 works OK, but linux-2.6.24.3
 shows the problem on the same machine.
 
 -- 
 Dick


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

* breakpoints/2431: function call on command line terminates with SIGTRAP
@ 2008-03-14 14:08 dicks
  0 siblings, 0 replies; 3+ messages in thread
From: dicks @ 2008-03-14 14:08 UTC (permalink / raw)
  To: gdb-gnats


>Number:         2431
>Category:       breakpoints
>Synopsis:       function call on command line terminates with SIGTRAP
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 14 14:08:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     dicks@altium.nl
>Release:        GNU gdb 6.7.1-debian
>Organization:
>Environment:
Linux kemi 2.6.24.3-x177 #1 SMP Tue Feb 26 14:27:40 CET 2008 i686 GNU/Linux
gcc version 4.2.3 (Debian 4.2.3-2)
This GDB was configured as "i486-linux-gnu".
>Description:
Since upgrading from Debian etch to lenny, gdb often stops with SIGTRAP in a function called from the commandline. This occurs both with gdb-6.4.90 from etch and gdb-6.7.1 from lenny, but only when running on the lenny system. It is not related to the gcc version or kernel version either. I suspect that it is related to library version differences between etch and lenny.
>How-To-Repeat:
$ cat > bug.c
int     x;
int main(int argc, char* argv[])
{
        x++;
        return 0;
}
^D
$ cat > bug.gdb
file bug
b main
r
s
p getpid()
p getpid()
q
^D
$ gcc -g -o bug bug.c
$ gdb -n -batch -x bug.gdb
Using host libthread_db library "/lib/libthread_db.so.1".
Breakpoint 1 at 0x80483d3: file bug.c, line 4.

Breakpoint 1, main (argc=1, argv=0xbf95aec4) at bug.c:4
4               x++;
5               return 0;
$1 = 15439

Program received signal SIGTRAP, Trace/breakpoint trap.
0xb7eba9c7 in getpid () from /lib/libc.so.6
/tmp/bug.gdb:6: Error in sourced command file:
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on"
Evaluation of the expression containing the function (getpid) will be abandoned.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2008-03-17 16:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-17 16:38 breakpoints/2431: function call on command line terminates with SIGTRAP Daniel Jacobowitz
  -- strict thread matches above, loose matches on Subject: below --
2008-03-17 16:18 Dick Streefland
2008-03-14 14:08 dicks

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).