This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: backtrace/1407: Gdb with gcc on Solaris crashes with segmentationfault when using "call"
- From: Jakob Nordström <jakobn at kth dot se>
- To: kettenis at gnu dot org
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 7 Oct 2003 14:48:00 -0000
- Subject: Re: backtrace/1407: Gdb with gcc on Solaris crashes with segmentationfault when using "call"
- Reply-to: Jakob Nordström <jakobn at kth dot se>
The following reply was made to PR breakpoints/1407; it has been noted by GNATS.
From: =?ISO-8859-1?Q?Jakob_Nordstr=F6m?= <jakobn@kth.se>
To: <kettenis@gnu.org>
Cc: <gdb-gnats@sources.redhat.com>, <gdb-prs@sources.redhat.com>
Subject: Re: backtrace/1407: Gdb with gcc on Solaris crashes with segmentation
fault when using "call"
Date: Tue, 7 Oct 2003 16:38:48 +0200 (MEST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---559023410-1483920592-1065537528=:18227
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT
On Mon, 6 Oct 2003 kettenis@gnu.org wrote:
> Thanks for the bug report. Over the past few weeks I've largely
> written the SPARC target in GDB. Especially the code that deals with
> calling functions has changed a lot, and should behave a lot better
> than the old code. The new SPARC code is present on the
> kettenis_sparc-20030918-branch in GDB's CVS tree. Could you check
> whether the bug is still present in my current code?
Unfortunately I do not have the privileges to install new versions of
GDB.
But the test case that provokes the bug is really simple. The files
are attached with this mail. Just do gcc -g dumbprogram.c, start gdb
with a.out, source dumb.gdb and run. Version 5.3 of gdb crashes with
segmentation fault.
Best regards,
Jakob Nordström
> You can check
> the code out with the following command (after properly setting
> CVSROOT):
>
> cvs co -r kettenis_sparc-20030918-branch gdb+dejagnu
>
> For more details on the GDB's CVS tree see:
>
> http://sources.redhat.com/gdb/current/
>
> Thanks,
>
> Mark
>
---559023410-1483920592-1065537528=:18227
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="dumbprogram.c"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.SOL.4.30.0310071638480.18227@rungner.nada.kth.se>
Content-Description:
Content-Disposition: attachment; filename="dumbprogram.c"
DQojaW5jbHVkZSA8c3RkaW8uaD4NCiNpbmNsdWRlIDxzdGRsaWIuaD4NCg0K
dm9pZA0KZHVtbXlmdW5jICgNCiAgICBpbnQgICAgaSkNCnsNCiAgICBmcHJp
bnRmIChzdGRlcnIsICJUaGUgdmFsdWUgaXMgJWQuXG4iLCBpKTsNCn0NCg0K
DQppbnQNCm1haW4gKA0KICAgIGludCAgICAgIGFyZ2MsDQogICAgY2hhciAg
ICoqYXJndikNCnsNCiAgICBpbnQgICAgICBqOw0KDQogICAgaiA9IDU7DQoN
CiAgICBkdW1teWZ1bmMgKGopOw0KDQogICAgZnByaW50ZiAoc3RkZXJyLCAi
QSBtZXNzYWdlIHRvIHN0ZGVyci5cbiIpOw0KDQogICAgaiA9IDY7DQogICAg
DQogICAgcmV0dXJuIDA7DQp9DQoNCg==
---559023410-1483920592-1065537528=:18227
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="dumb.gdb"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.SOL.4.30.0310071638481.18227@rungner.nada.kth.se>
Content-Description:
Content-Disposition: attachment; filename="dumb.gdb"
DQpicmVhayBkdW1icHJvZ3JhbS5jOjI1DQpjb21tYW5kcw0KCXNpbGVudA0K
CWNhbGwgZHVtbXlmdW5jIChqKQ0KCWNvbnRpbnVlDQplbmQNCg==
---559023410-1483920592-1065537528=:18227--