public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug shlibs/11293] New: gdb is broken on Linux/i386
@ 2010-02-17 19:53 hjl dot tools at gmail dot com
2010-02-17 19:56 ` [Bug shlibs/11293] " hjl dot tools at gmail dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-02-17 19:53 UTC (permalink / raw)
To: gdb-prs
When I ran "make check" on Linux/i386 with gdb trunk on
2010-02-17, I got
Starting program:
/export/build/gnu/gdb/build-i686-linux/gdb/testsuite/gdb.arch/i386-disp-step ^M
/net/gnu-6/export/gnu/import/git/gdb/gdb/solib-svr4.c:1468: internal-error:
enable_break: Assertion `load_addr < space_size' failed.^M
A problem internal to GDB has been detected,^M
further debugging may prove unreliable.^M
Quit this debugging session? (y or n) FAIL: gdb.arch/i386-disp-step.exp: running
to main in runto (timeout)
FAIL: gdb.arch/i386-disp-step.exp: Can't run to main
It may be caused by
http://sourceware.org/ml/gdb-cvs/2010-02/msg00083.html
--
Summary: gdb is broken on Linux/i386
Product: gdb
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: shlibs
AssignedTo: unassigned at sourceware dot org
ReportedBy: hjl dot tools at gmail dot com
CC: gdb-prs at sourceware dot org,jan dot kratochvil at
redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11293
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug shlibs/11293] gdb is broken on Linux/i386
2010-02-17 19:53 [Bug shlibs/11293] New: gdb is broken on Linux/i386 hjl dot tools at gmail dot com
@ 2010-02-17 19:56 ` hjl dot tools at gmail dot com
2010-02-17 20:02 ` hjl dot tools at gmail dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-02-17 19:56 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From hjl dot tools at gmail dot com 2010-02-17 19:56 -------
I meant this patch:
http://sourceware.org/ml/gdb-cvs/2010-02/msg00135.html
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11293
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug shlibs/11293] gdb is broken on Linux/i386
2010-02-17 19:53 [Bug shlibs/11293] New: gdb is broken on Linux/i386 hjl dot tools at gmail dot com
2010-02-17 19:56 ` [Bug shlibs/11293] " hjl dot tools at gmail dot com
@ 2010-02-17 20:02 ` hjl dot tools at gmail dot com
2010-02-17 20:06 ` hjl dot tools at gmail dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-02-17 20:02 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From hjl dot tools at gmail dot com 2010-02-17 20:02 -------
This code
---
if (addr_bit < (sizeof (ULONGEST) * HOST_CHAR_BIT))
{
CORE_ADDR space_size = (ULONGEST) 1 << addr_bit;
CORE_ADDR tmp_entry_point = exec_entry_point (tmp_bfd,
tmp_bfd_target);
gdb_assert (load_addr < space_size);
/* TMP_ENTRY_POINT exceeding SPACE_SIZE would be for prelinked
64bit ld.so with 32bit executable, it should not happen. */
if (tmp_entry_point < space_size
&& tmp_entry_point + load_addr >= space_size)
load_addr -= space_size;
}
---
doesn't make much senses. For 32bit, addr_bit is 32 and CORE_ADDR is
4 byte.
CORE_ADDR space_size = (ULONGEST) 1 << addr_bit;
will overflow.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11293
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug shlibs/11293] gdb is broken on Linux/i386
2010-02-17 19:53 [Bug shlibs/11293] New: gdb is broken on Linux/i386 hjl dot tools at gmail dot com
2010-02-17 19:56 ` [Bug shlibs/11293] " hjl dot tools at gmail dot com
2010-02-17 20:02 ` hjl dot tools at gmail dot com
@ 2010-02-17 20:06 ` hjl dot tools at gmail dot com
2010-02-17 20:17 ` hjl dot tools at gmail dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-02-17 20:06 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From hjl dot tools at gmail dot com 2010-02-17 20:06 -------
This patch:
---
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index b3b9e00..f4fccb2 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -1459,7 +1459,7 @@ enable_break (struct svr4_info *info, int from_tty)
invalid addresses like 0x101234567 for 32bit inferiors on 64bit
GDB. */
- if (addr_bit < (sizeof (ULONGEST) * HOST_CHAR_BIT))
+ if (addr_bit < (sizeof (CORE_ADDR) * HOST_CHAR_BIT))
{
CORE_ADDR space_size = (ULONGEST) 1 << addr_bit;
CORE_ADDR tmp_entry_point = exec_entry_point (tmp_bfd,
--
seems to work.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11293
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug shlibs/11293] gdb is broken on Linux/i386
2010-02-17 19:53 [Bug shlibs/11293] New: gdb is broken on Linux/i386 hjl dot tools at gmail dot com
` (2 preceding siblings ...)
2010-02-17 20:06 ` hjl dot tools at gmail dot com
@ 2010-02-17 20:17 ` hjl dot tools at gmail dot com
2010-02-17 20:47 ` cvs-commit at gcc dot gnu dot org
2010-02-17 20:50 ` hjl dot tools at gmail dot com
5 siblings, 0 replies; 7+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-02-17 20:17 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From hjl dot tools at gmail dot com 2010-02-17 20:17 -------
A patch is posted at
http://sourceware.org/ml/gdb-patches/2010-02/msg00439.html
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11293
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug shlibs/11293] gdb is broken on Linux/i386
2010-02-17 19:53 [Bug shlibs/11293] New: gdb is broken on Linux/i386 hjl dot tools at gmail dot com
` (3 preceding siblings ...)
2010-02-17 20:17 ` hjl dot tools at gmail dot com
@ 2010-02-17 20:47 ` cvs-commit at gcc dot gnu dot org
2010-02-17 20:50 ` hjl dot tools at gmail dot com
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2010-02-17 20:47 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-02-17 20:47 -------
Subject: Bug 11293
CVSROOT: /cvs/src
Module name: src
Changes by: hjl@sourceware.org 2010-02-17 20:47:08
Modified files:
gdb : ChangeLog solib-svr4.c
Log message:
Use CORE_ADDR instead of ULONGEST on address.
2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
PR shlibs/11293
* solib-svr4.c (enable_break): Check size of CORE_ADDR instead
of ULONGEST for address size.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.11372&r2=1.11373
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/solib-svr4.c.diff?cvsroot=src&r1=1.123&r2=1.124
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11293
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug shlibs/11293] gdb is broken on Linux/i386
2010-02-17 19:53 [Bug shlibs/11293] New: gdb is broken on Linux/i386 hjl dot tools at gmail dot com
` (4 preceding siblings ...)
2010-02-17 20:47 ` cvs-commit at gcc dot gnu dot org
@ 2010-02-17 20:50 ` hjl dot tools at gmail dot com
5 siblings, 0 replies; 7+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-02-17 20:50 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From hjl dot tools at gmail dot com 2010-02-17 20:50 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=11293
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-02-17 20:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-17 19:53 [Bug shlibs/11293] New: gdb is broken on Linux/i386 hjl dot tools at gmail dot com
2010-02-17 19:56 ` [Bug shlibs/11293] " hjl dot tools at gmail dot com
2010-02-17 20:02 ` hjl dot tools at gmail dot com
2010-02-17 20:06 ` hjl dot tools at gmail dot com
2010-02-17 20:17 ` hjl dot tools at gmail dot com
2010-02-17 20:47 ` cvs-commit at gcc dot gnu dot org
2010-02-17 20:50 ` hjl dot tools at gmail dot com
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).