Skip to contentSkip to conversation

2.5.37 won't run X?

DISCUSSION Helge Hafting 5 participants 13 messages Sep 21, 2002 – Sep 23, 2002

lore
Share & tools
lore
#0 lore raw

X won't start on 2.5.37, but works with 2.5.36
The screen goes black as usual, but then nothing else happens. ssh'ing in from another machine shows XFree86 using 50% cpu, i.e. one of the two cpu's in this machine.

killing the XFre86 process is impossible, even with kill -9 from root. sysrq SAK worked though, so I could recover the machine. But I had to boot a different kernel to run X.

lspci
00:0f.0 VGA compatible controller: S3 Inc. ViRGE/DX or /GX (rev 01)

2.5.37 SMP kernel

XFree86 Version 4.1.0.1 / X Window System (protocol Version 11, revision 0, vendor release 6510) Release Date: 21 December 2001

Distribution debian testing

Helge Hafting

#1 lore raw
Quoted 14 lines · Helge Hafting

X won't start on 2.5.37, but works with 2.5.36
The screen goes black as usual, but then nothing else happens. ssh'ing in from another machine shows XFree86 using 50% cpu, i.e. one of the two cpu's in this machine.

killing the XFre86 process is impossible, even with kill -9 from root. sysrq SAK worked though, so I could recover the machine. But I had to boot a different kernel to run X.

lspci
00:0f.0 VGA compatible controller: S3 Inc. ViRGE/DX or /GX (rev 01)

2.5.37 SMP kernel

Quoted 7 lines

XFree86 Version 4.1.0.1 / X Window System (protocol Version 11, revision 0, vendor release 6510) Release Date: 21 December 2001

Distribution debian testing

Helge Hafting

I get the same behavior on two machines here (a desktop with Duron/SIS 735 chipset/ATI 8500 video and a laptop with PIII/BX chipset/S3 Savage MX video) so it is not hardware specific.

I am running debian testing, the laptop has XFree 4.1.0 from debian, the desktop has XFree 4.2.0 from xfree.org .

I am not runnning SMP or preempt. Preempt kernel on the laptop last worked in 2.5.33 . When enabling preempt in 2.5.36 I get an oops, while in 2.5.37 I get a bunch of oopses, continuously scrolling off the screen.

florin

Signature · 3 lines
"If it's not broken, let's fix it till it is."

41A9 2BDE 8E11 F1C5 87A6  03EE 34B3 E075 3B90 DFE4
#2 lore raw
In reply to Helge Hafting
Quoted 4 lines

X won't start on 2.5.37, but works with 2.5.36
The screen goes black as usual, but then nothing else happens. ssh'ing in from another machine shows XFree86 using 50% cpu, i.e. one of the two cpu's in this machine.

Looks like Linus fixed this already in his BK tree ... want to grab that and see if it fixes your problem?

M.

#3 lore raw
Quoted 7 lines · Martin J. Bligh
Quoted 4 lines

X won't start on 2.5.37, but works with 2.5.36
The screen goes black as usual, but then nothing else happens. ssh'ing in from another machine shows XFree86 using 50% cpu, i.e. one of the two cpu's in this machine.

Looks like Linus fixed this already in his BK tree ... want to grab that and see if it fixes your problem?

What changeset do you think fixed this?

Anyway, I grabbed ftp://nl.linux.org/pub/linux/bk2patch/tagged-to-head.v2.5 and patched it in. Same result X eating 99% cpu time.

florin

Signature · 3 lines
"If it's not broken, let's fix it till it is."

41A9 2BDE 8E11 F1C5 87A6  03EE 34B3 E075 3B90 DFE4
#4 lore raw
Quoted 9 lines
Quoted 7 lines
Quoted 4 lines

X won't start on 2.5.37, but works with 2.5.36
The screen goes black as usual, but then nothing else happens. ssh'ing in from another machine shows XFree86 using 50% cpu, i.e. one of the two cpu's in this machine.

Looks like Linus fixed this already in his BK tree ... want to grab that and see if it fixes your problem?

What changeset do you think fixed this?

Well, this bit looked hopeful:

23 hours torvalds 1.575 Fix vm86 system call interface to entry.S. This has been broken since the thread_info support went in (early July), and can cause lockups at X startup etc.

#5 lore raw
Quoted 8 lines · Martin J. Bligh
Quoted 8 lines
Quoted 7 lines
Quoted 4 lines

X won't start on 2.5.37, but works with 2.5.36
The screen goes black as usual, but then nothing else happens. ssh'ing in from another machine shows XFree86 using 50% cpu, i.e. one of the two cpu's in this machine.

Looks like Linus fixed this already in his BK tree ... want to grab that and see if it fixes your problem?

Quoted 7 lines
Quoted 1 line

What changeset do you think fixed this?

Well, this bit looked hopeful:

23 hours torvalds 1.575 Fix vm86 system call interface to entry.S. This has been broken since the thread_info support went in (early July), and can cause lockups at X startup etc.

X is not locked up, as it eats all the CPU. And 2.5.36 works just fine.

florin

Signature · 3 lines
"If it's not broken, let's fix it till it is."

41A9 2BDE 8E11 F1C5 87A6  03EE 34B3 E075 3B90 DFE4
#6 lore raw
Quoted 1 line · Florin Iucha

X is not locked up, as it eats all the CPU. And 2.5.36 works just fine.

I noticed that the pgrp-related behaviour of some programs changed. Some programs hang, some programs loop. The hang occurs when they are stopped by SIGTTOU. The infinite loop occurs when they catch SIGTTOU (and the same signal is sent immediately again when they leave the signal routine).
Have not yet investigated details.

#7 lore raw
Quoted 1 line · Florin Iucha
Quoted 1 line

X is not locked up, as it eats all the CPU. And 2.5.36 works just fine.

Quoted 6 lines · Andries Brouwer

I noticed that the pgrp-related behaviour of some programs changed. Some programs hang, some programs loop. The hang occurs when they are stopped by SIGTTOU. The infinite loop occurs when they catch SIGTTOU (and the same signal is sent immediately again when they leave the signal routine).
Have not yet investigated details.

I'm looking into it.

Thanks,
Bill

#8 lore raw
In reply to Andries Brouwer
Quoted 1 line · Florin Iucha
Quoted 1 line

X is not locked up, as it eats all the CPU. And 2.5.36 works just fine.

Quoted 6 lines · Andries Brouwer

I noticed that the pgrp-related behaviour of some programs changed. Some programs hang, some programs loop. The hang occurs when they are stopped by SIGTTOU. The infinite loop occurs when they catch SIGTTOU (and the same signal is sent immediately again when they leave the signal routine).
Have not yet investigated details.

Linus seems to have put out 2.5.38 with some X lockup fixes. Can you still reproduce this? If so, are there non-X-related testcases where you can trigger this? My T21 Thinkpad doesn't see this at all.

I'm still prodding the SIGTTOU path trying to trigger it until then.

Thanks,
Bill

#9 lore raw
Quoted 11 lines · William Lee Irwin III
Quoted 1 line · Florin Iucha
Quoted 1 line

X is not locked up, as it eats all the CPU. And 2.5.36 works just fine.

Quoted 6 lines · Andries Brouwer

I noticed that the pgrp-related behaviour of some programs changed. Some programs hang, some programs loop. The hang occurs when they are stopped by SIGTTOU. The infinite loop occurs when they catch SIGTTOU (and the same signal is sent immediately again when they leave the signal routine).
Have not yet investigated details.

Quoted 5 lines

Linus seems to have put out 2.5.38 with some X lockup fixes. Can you still reproduce this? If so, are there non-X-related testcases where you can trigger this? My T21 Thinkpad doesn't see this at all.

I'm still prodding the SIGTTOU path trying to trigger it until then.

Weird. 2.5.38 works just fine but the head from few hours ago (which supposedly had the fix) doesn't. Oh well, it works fine now on both the desktop and the laptop.

florin

Signature · 3 lines
"If it's not broken, let's fix it till it is."

41A9 2BDE 8E11 F1C5 87A6  03EE 34B3 E075 3B90 DFE4
#10 lore raw
Quoted 16 lines · Florin Iucha
Quoted 15 lines · William Lee Irwin III
Quoted 1 line · Florin Iucha
Quoted 1 line

X is not locked up, as it eats all the CPU. And 2.5.36 works just fine.

Quoted 6 lines · Andries Brouwer

I noticed that the pgrp-related behaviour of some programs changed. Some programs hang, some programs loop. The hang occurs when they are stopped by SIGTTOU. The infinite loop occurs when they catch SIGTTOU (and the same signal is sent immediately again when they leave the signal routine).
Have not yet investigated details.

Linus seems to have put out 2.5.38 with some X lockup fixes. Can you still reproduce this? If so, are there non-X-related testcases where you can trigger this? My T21 Thinkpad doesn't see this at all.

Quoted 5 lines
Quoted 1 line

I'm still prodding the SIGTTOU path trying to trigger it until then.

Weird. 2.5.38 works just fine but the head from few hours ago (which supposedly had the fix) doesn't. Oh well, it works fine now on both the desktop and the laptop.

I take that back. 2.5.38 works fine on the laptop. On the desktop the situation is tricky:
* I have compiled 2.5.38 under 2.5.34+xfs,
* rebooted with 2.5.38 and
* spent all day long in 2.5.38,
* rebooted temporarily in Windows
* then all boots into 2.5.38 resulted in a lock up.
The lockup happens with all kernels since 2.5.35 and it is random. It happens in xdm waiting for login, in starting up KDE, in starting up daemons at boot up.

Even when hanging in X, the Alt-SysRq still works to SUB.

2.5.34+xfs (from the SGI CVS) works fine. I will try a recent snapshot from them, with a more recent kernel.

florin

Signature · 3 lines
"If it's not broken, let's fix it till it is."

41A9 2BDE 8E11 F1C5 87A6  03EE 34B3 E075 3B90 DFE4
#11 lore raw
Quoted 7 lines · Florin Iucha

The lockup happens with all kernels since 2.5.35 and it is random. It happens in xdm waiting for login, in starting up KDE, in starting up daemons at boot up.
Even when hanging in X, the Alt-SysRq still works to SUB. 2.5.34+xfs (from the SGI CVS) works fine. I will try a recent snapshot from them, with a more recent kernel.
florin

This is different for me. I'm seeing a false negative from is_orphaned_pgrp(). I'm poking around for the race as I go, though it isn't in is_orphaned_pgrp() itself.

Cheers,
Bill

#12 lore raw
In reply to William Lee Irwin III
Quoted 8 lines · William Lee Irwin III
Quoted 6 lines · Andries Brouwer

I noticed that the pgrp-related behaviour of some programs changed. Some programs hang, some programs loop. The hang occurs when they are stopped by SIGTTOU. The infinite loop occurs when they catch SIGTTOU (and the same signal is sent immediately again when they leave the signal routine).
Have not yet investigated details.

Quoted 5 lines

Linus seems to have put out 2.5.38 with some X lockup fixes. Can you still reproduce this? If so, are there non-X-related testcases where you can trigger this? My T21 Thinkpad doesn't see this at all.

I'm still prodding the SIGTTOU path trying to trigger it until then.

Yes, 2.5.38 behaves differently again, but the statement that pgrp-related behaviour of some programs changed is still true.

For example: "emacs -nw foo.c" in an xterm window will start emacs fine. Now put this line in a shell script:

	#!/bin/sh
	emacs -nw $@

so that pid and pgrp of the started emacs differ. Under 2.5.33 this works, but under 2.5.3[78] this hangs.

Andries