* Bus error of gdb 5.0 with MIPS patch
@ 2000-07-29 16:05 Jun Sun
2000-07-30 11:29 ` Ralf Baechle
2000-07-31 16:22 ` Maciej W. Rozycki
0 siblings, 2 replies; 5+ messages in thread
From: Jun Sun @ 2000-07-29 16:05 UTC (permalink / raw)
To: linux-mips, linux; +Cc: jpuhlman
Hi,
I started to play with gdb 5.0 + the MIPS patch at
http://www.ds2.pg.gda.pl/~macro/gdb-5.0/, but I am having a bus error if
I want to do 'next step'. Setting breakpoints and continuing running
seem to be fine.
The gdb 4.17 rpm from oss.sgi.com does not have this problem.
Any idea?
Jun
---------------
sh-2.03# ./gdb hello
GNU gdb 5.0 (UI_OUT)
Copyright 2000 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 "mipsel-hardhat-linux"...
(gdb) n
The program is not being run.
(gdb) b main
Breakpoint 1 at 0x400c24: file hello.c, line 5.
(gdb) r
Starting program: /tmp/hello
[tcsetpgrp failed in terminal_inferior: Not a typewriter]
[tcsetpgrp failed in terminal_inferior: Not a typewriter]
[tcsetpgrp failed in terminal_inferior: Not a typewriter]
Breakpoint 1, main () at hello.c:5
5 printf("hello, world\n");
(gdb) n
[tcsetpgrp failed in terminal_inferior: Not a typewriter]
Bus error
-----------
P.S., Does anybody know how to fix "tcsetpgrp ..." error?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bus error of gdb 5.0 with MIPS patch
2000-07-29 16:05 Bus error of gdb 5.0 with MIPS patch Jun Sun
@ 2000-07-30 11:29 ` Ralf Baechle
2000-07-31 16:22 ` Maciej W. Rozycki
1 sibling, 0 replies; 5+ messages in thread
From: Ralf Baechle @ 2000-07-30 11:29 UTC (permalink / raw)
To: Jun Sun; +Cc: linux-mips, linux, jpuhlman
On Sat, Jul 29, 2000 at 09:05:57AM -0700, Jun Sun wrote:
> I started to play with gdb 5.0 + the MIPS patch at
> http://www.ds2.pg.gda.pl/~macro/gdb-5.0/, but I am having a bus error if
> I want to do 'next step'. Setting breakpoints and continuing running
> seem to be fine.
>
> The gdb 4.17 rpm from oss.sgi.com does not have this problem.
>
> Any idea?
Possibly this was one of the cacheflush bugs I recently fixed.
> (gdb) n
> [tcsetpgrp failed in terminal_inferior: Not a typewriter]
> Bus error
>
> -----------
>
> P.S., Does anybody know how to fix "tcsetpgrp ..." error?
No idea, never seen / heared about this problem.
Ralf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bus error of gdb 5.0 with MIPS patch
2000-07-29 16:05 Bus error of gdb 5.0 with MIPS patch Jun Sun
2000-07-30 11:29 ` Ralf Baechle
@ 2000-07-31 16:22 ` Maciej W. Rozycki
2000-07-31 17:17 ` Jun Sun
1 sibling, 1 reply; 5+ messages in thread
From: Maciej W. Rozycki @ 2000-07-31 16:22 UTC (permalink / raw)
To: Jun Sun; +Cc: linux-mips, linux, jpuhlman
On Sat, 29 Jul 2000, Jun Sun wrote:
> (gdb) n
> [tcsetpgrp failed in terminal_inferior: Not a typewriter]
> Bus error
>
> -----------
>
> P.S., Does anybody know how to fix "tcsetpgrp ..." error?
Hmm, I believe it indicates a problem with the shell. I used to observe
it when my glibc disagreed with my kernel about struct stat64. Try to
disable large file support for the shell until struct stat64 gets fixed.
About the bus error -- try to compile gdb with debugging support and make
it dump core on the bus error (you might need to tweak ulimit). Then try
to locate the crash address with gdb (`info stack' might be particularly
useful). It's most likely gdb cannot figure an address of the next
instruction properly.
What version of libc?
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bus error of gdb 5.0 with MIPS patch
2000-07-31 16:22 ` Maciej W. Rozycki
@ 2000-07-31 17:17 ` Jun Sun
2000-07-31 17:42 ` Maciej W. Rozycki
0 siblings, 1 reply; 5+ messages in thread
From: Jun Sun @ 2000-07-31 17:17 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: linux-mips, linux, jpuhlman
"Maciej W. Rozycki" wrote:
> About the bus error -- try to compile gdb with debugging support and make
> it dump core on the bus error (you might need to tweak ulimit). Then try
> to locate the crash address with gdb (`info stack' might be particularly
> useful). It's most likely gdb cannot figure an address of the next
> instruction properly.
>
> What version of libc?
>
It is glibc 2.0.7. Pretty old, but I don't think there is a newer one
working stably with MIPS.
Jun
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bus error of gdb 5.0 with MIPS patch
2000-07-31 17:17 ` Jun Sun
@ 2000-07-31 17:42 ` Maciej W. Rozycki
0 siblings, 0 replies; 5+ messages in thread
From: Maciej W. Rozycki @ 2000-07-31 17:42 UTC (permalink / raw)
To: Jun Sun; +Cc: linux-mips, linux, jpuhlman
On Mon, 31 Jul 2000, Jun Sun wrote:
> > What version of libc?
>
> It is glibc 2.0.7. Pretty old, but I don't think there is a newer one
> working stably with MIPS.
Well, I can't test that, I am afraid. I am only using glibc 2.2 (which
is 2.1.91 at the moment). It works quite well, but I wouldn't name it
stable yet, I admit.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2000-07-31 17:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-29 16:05 Bus error of gdb 5.0 with MIPS patch Jun Sun
2000-07-30 11:29 ` Ralf Baechle
2000-07-31 16:22 ` Maciej W. Rozycki
2000-07-31 17:17 ` Jun Sun
2000-07-31 17:42 ` Maciej W. Rozycki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox