* Horrible X and kernel crashes under mipsel RH7.1...
@ 2001-07-31 13:43 Steven J. Hill
2001-08-01 15:51 ` Guido Guenther
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Steven J. Hill @ 2001-07-31 13:43 UTC (permalink / raw)
To: debian-mips, linux-mips
Greetings.
Well, the X server is giving me fits with the new RH7.1 packages. This is
a rather long email, so hold on.
WHAT WORKS
----------
If I use MontaVista's older toolchain with a glibc-2.0.6 based root
filesystem with my 2.4.5 MIPS kernel and framebuffer and compile X from
CVS things work great.
WHAT DOES NOT WORK
------------------
If I use a new cross toolchain with latest binutils from HJLu, gcc-3.0 and
glibc-2.2.3 and the RH7.1 mipsel based distribution, X cross compiled form
CVS crashes and takes the kernel with it. I have not tested anything under
the Debian distros yet.
CRASH OUTPUT
------------
I did three different runs which gave me different results. Here is the
first one. I know that I had plenty of memory to handle the
2^5 = (32) 4KB pages = 128KB allocation.
root@localhost:/home/sjhill$ /usr/X11R6/bin/Xfbdev
__alloc_pages: 5-order allocation failed.
__alloc_pages: 5-order allocation failed.
Unable to handle kernel paging request at virtual address 00000000, epc == 00000
000, ra == 80167750
Oops in fault.c:do_page_fault, line 172:
$0 : 00000000 801f0000 b30003f0 000000bb
$4 : 0000000c 0000006b 809d3bc0 00006b18
$8 : 00000020 801658f0 801cbc98 801c5000
$12: 00000001 00000040 00000003 81f6eea0
$16: 801dbf18 801cbe60 00000001 801d60cc
$20: 801d0a3c 809d3bc0 00000000 806e3620
$24: 00000001 2ac99d90
$28: 813f2000 813f3de0 00000000 80167750
epc : 00000000
Status: b001f003
Cause : 00000008
Process Xfbdev (pid: 596, stackpage=813f2000)
***************
The next one I printed out the memory usage as well as the attempt to run
startx and xinit first. The page alloc messages aren't printed, but the
kernel still dies a horrible death.
root@localhost:~$ free
total used free shared buffers cached
Mem: 30340 26700 3640 0 3992 15536
-/+ buffers/cache: 7172 23168
Swap: 66016 2368 63648
root@localhost:~$ /usr/X11R6/bin/startx
giving up.
xinit: Connection refused (errno 146): unable to connect to X server
xinit: No such process (errno 3): Server error.
root@localhost:~$ free
total used free shared buffers cached
Mem: 30340 27424 2916 0 4052 16188
-/+ buffers/cache: 7184 23156
Swap: 66016 2368 63648
root@localhost:~$ xinit
free
giving up.
xinit: Connection refused (errno 146): unable to connect to X server
xinit: No such process (errno 3): Server error.
root@localhost:~$ free
total used free shared buffers cached
Mem: 30340 27428 2912 0 4052 16188
-/+ buffers/cache: 7188 23152
Swap: 66016 2368 63648
root@localhost:~$ /usr/X11R6/bin/Xfbdev
[Xfbdev:522] Illegal instruction 801cbe60 at 801980a4 ra=80167750
Unable to handle kernel paging request at virtual address 00000000, epc == 80198
0b4, ra == 80167750
Oops in fault.c:do_page_fault, line 172:
$0 : 00000000 801f0000 b30003f0 000000bb
$4 : 0000000c 00000001 809b1c20 00006b18
$8 : 00000020 801658f0 801cbc98 801c5000
$12: 00000001 00000040 00000003 814b2e20
$16: 801dbf18 801cbe60 00000001 801d60cc
$20: 801d0a3c 809b1c20 00000000 80758840
$24: 00000001 2ac99d90
$28: 8119e000 8119fde0 00000000 80167750
epc : 801980b4
Status: b001f003
Cause : 00000008
Process Xfbdev (pid: 522, stackpage=8119e000)
***************
This one gives a little more output and screams about illegal instructions.
root@localhost:~$ /usr/X11R6/bin/Xfbdev
[Xfbdev:513] Illegal instruction 801cbe60 at 801980b8 ra=80167750
[Xfbdev:513] Illegal instruction 801cbe60 at 801980d0 ra=80167750
[Xfbdev:513] Illegal instruction 801cbe60 at 801980e8 ra=80167750
Unable to handle kernel paging request at virtual address 00000000, epc == 00000
000, ra == 80167750
Oops in fault.c:do_page_fault, line 172:
$0 : 00000000 801f0000 b30003f0 000000bb
$4 : 0000000c 00000001 80e84480 00006b18
$8 : 00000020 801658f0 801cbc98 801c5000
$12: 00000001 00000040 00000003 81659920
$16: 801dbf18 801cbe60 00000001 00000000
$20: 801d0a3c 80e84480 00000000 809369c0
$24: 00000001 2ac99d90
$28: 816a2000 816a3de0 00000000 80167750
epc : 00000000
Status: b001f003
Cause : 00000008
Process Xfbdev (pid: 513, stackpage=816a2000)
***************
If anyone has had success or similar problems please comment. Thanks.
-Steve
--
Steven J. Hill - Embedded SW Engineer
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Horrible X and kernel crashes under mipsel RH7.1...
2001-07-31 13:43 Horrible X and kernel crashes under mipsel RH7.1 Steven J. Hill
@ 2001-08-01 15:51 ` Guido Guenther
2001-08-01 16:35 ` Maciej W. Rozycki
2001-08-02 12:05 ` Ralf Baechle
2 siblings, 0 replies; 5+ messages in thread
From: Guido Guenther @ 2001-08-01 15:51 UTC (permalink / raw)
To: debian-mips, linux-mips
On Tue, Jul 31, 2001 at 08:43:15AM -0500, Steven J. Hill wrote:
[..snip..]
> CVS crashes and takes the kernel with it. I have not tested anything under
> the Debian distros yet.
If you want to, there's a full build of 4.1.0-0pre1v7 at
http://honk.physik.uni-konstanz.de/linux-mips/x/mipsel-debs/
-- Guido
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Horrible X and kernel crashes under mipsel RH7.1...
2001-07-31 13:43 Horrible X and kernel crashes under mipsel RH7.1 Steven J. Hill
2001-08-01 15:51 ` Guido Guenther
@ 2001-08-01 16:35 ` Maciej W. Rozycki
2001-08-01 17:26 ` Steven J. Hill
2001-08-02 12:05 ` Ralf Baechle
2 siblings, 1 reply; 5+ messages in thread
From: Maciej W. Rozycki @ 2001-08-01 16:35 UTC (permalink / raw)
To: Ralf Baechle, Steven J. Hill; +Cc: debian-mips, linux-mips
On Tue, 31 Jul 2001, Steven J. Hill wrote:
> root@localhost:/home/sjhill$ /usr/X11R6/bin/Xfbdev
> __alloc_pages: 5-order allocation failed.
> __alloc_pages: 5-order allocation failed.
> Unable to handle kernel paging request at virtual address 00000000, epc == 00000
> 000, ra == 80167750
> Oops in fault.c:do_page_fault, line 172:
> $0 : 00000000 801f0000 b30003f0 000000bb
> $4 : 0000000c 0000006b 809d3bc0 00006b18
> $8 : 00000020 801658f0 801cbc98 801c5000
> $12: 00000001 00000040 00000003 81f6eea0
> $16: 801dbf18 801cbe60 00000001 801d60cc
> $20: 801d0a3c 809d3bc0 00000000 806e3620
> $24: 00000001 2ac99d90
> $28: 813f2000 813f3de0 00000000 80167750
> epc : 00000000
> Status: b001f003
> Cause : 00000008
> Process Xfbdev (pid: 596, stackpage=813f2000)
>
> ***************
>
> The next one I printed out the memory usage as well as the attempt to run
> startx and xinit first. The page alloc messages aren't printed, but the
> kernel still dies a horrible death.
The kernel actually commits suicide. I don't know why it does, but it
looks like a temporary debugging hack. With the following patch the
system might survive.
Next you might want to find why the null pointer dereference happens.
The __alloc_pages errors suggest some code does not check for a null
pointer being returned. A kernel code inspection around address
0x80167750 might reveal guilty code.
Ralf, could you please apply the patch?
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
patch-mips-2.4.5-20010730-die-0
diff -up --recursive --new-file linux.macro/arch/mips/kernel/traps.c linux/arch/mips/kernel/traps.c
--- linux.macro/arch/mips/kernel/traps.c Tue Jul 24 04:26:34 2001
+++ linux/arch/mips/kernel/traps.c Wed Aug 1 16:12:42 2001
@@ -204,7 +204,6 @@ extern void __die(const char * str, stru
show_trace((unsigned int *) regs->regs[29]);
show_code((unsigned int *) regs->cp0_epc);
printk("\n");
-while(1);
spin_unlock_irq(&die_lock);
do_exit(SIGSEGV);
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Horrible X and kernel crashes under mipsel RH7.1...
2001-08-01 16:35 ` Maciej W. Rozycki
@ 2001-08-01 17:26 ` Steven J. Hill
0 siblings, 0 replies; 5+ messages in thread
From: Steven J. Hill @ 2001-08-01 17:26 UTC (permalink / raw)
To: linux-mips; +Cc: debian-mips
"Maciej W. Rozycki" wrote:
>
The patch helps when the X server dies. Thanks.
-Steve
--
Steven J. Hill - Embedded SW Engineer
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Horrible X and kernel crashes under mipsel RH7.1...
2001-07-31 13:43 Horrible X and kernel crashes under mipsel RH7.1 Steven J. Hill
2001-08-01 15:51 ` Guido Guenther
2001-08-01 16:35 ` Maciej W. Rozycki
@ 2001-08-02 12:05 ` Ralf Baechle
2 siblings, 0 replies; 5+ messages in thread
From: Ralf Baechle @ 2001-08-02 12:05 UTC (permalink / raw)
To: Steven J. Hill; +Cc: debian-mips, linux-mips
On Tue, Jul 31, 2001 at 08:43:15AM -0500, Steven J. Hill wrote:
> root@localhost:/home/sjhill$ /usr/X11R6/bin/Xfbdev
> __alloc_pages: 5-order allocation failed.
> __alloc_pages: 5-order allocation failed.
Order 5 allocations are pretty unreliable and put high stress on the
memory managment. They may fail though you may still have plenty of
memory available in smaller chunks. So if possible at all try to
avoid the allocation of high order pages or at least have a fallback
strategy available.
Ralf
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-08-02 12:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-31 13:43 Horrible X and kernel crashes under mipsel RH7.1 Steven J. Hill
2001-08-01 15:51 ` Guido Guenther
2001-08-01 16:35 ` Maciej W. Rozycki
2001-08-01 17:26 ` Steven J. Hill
2001-08-02 12:05 ` Ralf Baechle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.