Michiel Boland
2013-Jun-16 15:11 UTC
system sporadically hangs on shutdown after switching to WITH_NEW_XORG
Hi. Recently I switched to WITH_NEW_XORG, primarily because the stock X server with Intel driver has some issues that make it unusable for me. The new X server and Intel driver works extremely well, so kudos to whoever made this possible. Unfortunately, I am now experiencing random hangs on shutdown. On shutdown the system randomly freezes after [...] syslogd: exiting on signal 15 I would then expect to see 'Waiting (max 60 seconds) for system process 'XXX' to stop messages, but these never arrive. I paniced the machine in ddb, so I have a crash dump if someone want to look at it. The crashinfo is at http://barrytown.boland.org/core.txt (I would have pasted it here but it is a bit verbose.) Machine has an Intel G41 chipset, with a SAMSUNG SSD 830 Series HD, running 9.1-STABLE r251803. Serial console. GENERIC kernel, expect for options DDB and ALT_BREAK_TO_DEBUGGER. Who knows what's going on here? Cheers Michiel
Konstantin Belousov
2013-Jun-16 15:37 UTC
system sporadically hangs on shutdown after switching to WITH_NEW_XORG
On Sun, Jun 16, 2013 at 05:11:15PM +0200, Michiel Boland wrote:> Hi. Recently I switched to WITH_NEW_XORG, primarily because the stock X server > with Intel driver has some issues that make it unusable for me. > > The new X server and Intel driver works extremely well, so kudos to whoever made > this possible. > > Unfortunately, I am now experiencing random hangs on shutdown. On shutdown the > system randomly freezes after > > [...] syslogd: exiting on signal 15 > > I would then expect to see 'Waiting (max 60 seconds) for system process 'XXX' to > stop messages, but these never arrive. > > I paniced the machine in ddb, so I have a crash dump if someone want to look at > it. The crashinfo is at http://barrytown.boland.org/core.txt (I would have > pasted it here but it is a bit verbose.) > > Machine has an Intel G41 chipset, with a SAMSUNG SSD 830 Series HD, running > 9.1-STABLE r251803. Serial console. GENERIC kernel, expect for options DDB and > ALT_BREAK_TO_DEBUGGER. > > Who knows what's going on here?I do not see anything related to i915 in the core.txt you provided. Next time the machine hangs, start with the output of ps command from ddb and 'show allpcpu', together with 'alltrace'. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 834 bytes Desc: not available URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20130616/b8f8347d/attachment.sig>
Steven Hartland
2013-Jun-16 16:22 UTC
system sporadically hangs on shutdown after switching to WITH_NEW_XORG
----- Original Message ----- From: "Michiel Boland" <boland37 at xs4all.nl> To: "FreeBSD Stable" <freebsd-stable at freebsd.org> Sent: Sunday, June 16, 2013 4:11 PM Subject: system sporadically hangs on shutdown after switching to WITH_NEW_XORG> Hi. Recently I switched to WITH_NEW_XORG, primarily because the stock X server > with Intel driver has some issues that make it unusable for me. > > The new X server and Intel driver works extremely well, so kudos to whoever made > this possible. > > Unfortunately, I am now experiencing random hangs on shutdown. On shutdown the > system randomly freezes after > > [...] syslogd: exiting on signal 15 > > I would then expect to see 'Waiting (max 60 seconds) for system process 'XXX' to > stop messages, but these never arrive. > > I paniced the machine in ddb, so I have a crash dump if someone want to look at > it. The crashinfo is at http://barrytown.boland.org/core.txt (I would have > pasted it here but it is a bit verbose.) > > Machine has an Intel G41 chipset, with a SAMSUNG SSD 830 Series HD, running > 9.1-STABLE r251803. Serial console. GENERIC kernel, expect for options DDB and > ALT_BREAK_TO_DEBUGGER. > > Who knows what's going on here?Does setting the sysctl: hw.usb.no_shutdown_wait=1 help? Regards steve ===============================================This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster at multiplay.co.uk.
Michiel Boland
2013-Jun-17 19:16 UTC
system sporadically hangs on shutdown after switching to WITH_NEW_XORG
On 06/16/2013 17:11, Michiel Boland wrote:> Hi. Recently I switched to WITH_NEW_XORG, primarily because the stock X server > with Intel driver has some issues that make it unusable for me. > > The new X server and Intel driver works extremely well, so kudos to whoever made > this possible. > > Unfortunately, I am now experiencing random hangs on shutdown. On shutdown the > system randomly freezes after > > [...] syslogd: exiting on signal 15 > > I would then expect to see 'Waiting (max 60 seconds) for system process 'XXX' to > stop messages, but these never arrive.So it turns out that init hangs because vga_txtmouse (draw_txtmouse in fact) is hogging the clock swi. The routine is waiting for a vertical retrace which never arrives. (The new intel driver can't return to text console, so the screen just goes blank when X exits.) Some workarounds: - don't run moused (i.e. disable it in rc.conf and devd.conf) instead run the X server in combination with hald - do run moused, but then either - unplug the mouse before shutting down - build a kernel with VGA_NO_FONT_LOADING Of course the long-term fix is to remove the possibly infinite loop in draw_txtmouse. Thanks to Konstantin for his patience in helping me track this down. Cheers Michiel