Bug 578222

Summary: Segmentation Fault during shutdown with kernel 2.6.31.12
Product: [openSUSE] openSUSE 11.2 Reporter: Andreas Schneider <aschn>
Component: KernelAssignee: E-mail List <kernel-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: cupn, davide.verne, f.leerink, forgotten_-yQj4fdAjs, forgotten_KSYEYC9iJz, hrm_sfo, itten, jaysea57, jeffm, lchiquitto, meissner, mlmuit, pachnes, spam, teuniz, walla299, zaloha
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.2   
Whiteboard: maint:released:11.2:32013
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: hwinfo
hwinfo
Attachment mentioned in comment #11
photo (screenshot) of kernel panic
Screenshots of error message

Description Andreas Schneider 2010-02-09 10:40:32 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.7) Gecko/20091222 SUSE/3.5.7-1.1.1 Firefox/3.5.7

Hello,

In the past I could shutdown my system and everything stopped fine (Shutdown, poweroff, Screen turns black).
After upgrading to a later kernel
(currently 2.6.31.12-jen93-rt and kernel-default-2.6.31.12-jen93, but I also tried the standard kernels from the opensuse repo) my system doesn't shutdown correctly.

I can read the latest message "System will be halted immediately", I can hear the fan sopping, the harddisc "clicking" (so shutting down) and then I get the message: "Segmantation fault" and the screen keeps alive. I have to press the power button several seconds to power off my machine.

From the past I knew that there could be issues with ACPI and so I also tried to put acpi=off, acpi=force, noacpi, apm=off in the grub menu, but nothing helped.

Seems I'm not alone with my problem: http://forums.opensuse.org/applications/432615-segmentation-fault-during-shutdown.html


Hope there will we a fix in the future.

Thanks and Regards,
Andreas

Reproducible: Always

Steps to Reproduce:
1. Shutdown
Comment 1 Leonardo Chiquitto 2010-02-09 11:19:33 UTC
*** Bug 578199 has been marked as a duplicate of this bug. ***
Comment 2 Andreas Schneider 2010-02-09 14:22:01 UTC
Created attachment 341496 [details]
hwinfo
Comment 3 Forgotten User KSYEYC9iJz 2010-02-09 22:03:43 UTC
I'm experiencing same problem. Posted on newsgroup prior to this bug mentioned in newsgroup. I searched bugzilla about 4 AM today this was not there. Glad its reported. I went thru all steps mentioned also, but appears to be unigue to this release of the OS's. I am running openSUSE 11.2 (2.6.12 desktop) installed yesterday. Mine is X86_64. 

This does not occur on 2.6.8 which I may drop back to.

Also does not occur on 11.3 MS1 on same hardware.
Comment 4 Jeff Mahoney 2010-02-10 01:23:55 UTC
Please don't use 2.6.12/2.6.8 as shorthand for 2.6.31.12 and 2.6.31.8. They are very different things.

Can you switch to VT10 (alt+f10) during shutdown to see all the messages?
Comment 5 dima s 2010-02-10 05:25:35 UTC
I tried to press Alt+F10 after segfault - and no result. System doesn't respond to any keyboard input
Comment 6 jeremy coleman 2010-02-10 08:11:03 UTC
Same problem as from yesterday: it wasn't happening before. I have opebSuse 11.2 32bit. Yesterday I allowed the updater applet to do an update, so it might be caused by a recent update.
Comment 7 Forgotten User JDHqj7x5kL 2010-02-10 09:21:15 UTC
I am experiencing the same problem as Andreas and others after upgrading my openSuse 11.2-x86_32bit to the latest kernel with yast: segmentation fault at the end of the shutdown sequence after the statement "System will be halted immediately".
Comment 8 Forgotten User JDHqj7x5kL 2010-02-10 09:22:35 UTC
Created attachment 341688 [details]
hwinfo
Comment 9 Bruce Stanley 2010-02-10 12:09:25 UTC
I am experiencing the same problem after upgrading to the new kernel. 

I get this after the upgrade: segmentation fault at the end of the shutdown sequence after the statement "System will be halted immediately". 

The hard disks spin down, but the fans & case lights are still on at this point. The only way to power down at this point is either turn off the power strip the PC is connected to, or hold down the power button for awhile.

I have run fsck on my hard drives and no errors were found when the system was powered back up.
Comment 10 Forgotten User KSYEYC9iJz 2010-02-10 13:53:20 UTC
(In reply to comment #4)
> Please don't use 2.6.12/2.6.8 as shorthand for 2.6.31.12 and 2.6.31.8. They are
> very different things.
> 
> Can you switch to VT10 (alt+f10) during shutdown to see all the messages?

Sorry about that. Had been up since 2AM and just missed the .31. I'll try the V10 and see if there is anything different from the comments I will post below.

Thanks.
Comment 11 Forgotten User KSYEYC9iJz 2010-02-10 13:59:38 UTC
additional information on comment 3.

SUSEupdater applet provided kernel update. 

I just installed openSUSE 2.6.31-12-0.1.desktop (x86_64) yesterday and the first time I tried to shut down it hung at:

    "the system will halt immediately"
     Segmentation Fault
     Master Resource Control runlevel 0 has been:         reached
     Skipped Service in run level 0:                      SUSEfirewall2_setup

Need to use power button to shutdown.

Hardware Intel DX48BT2 motherboard, Intel E7200 core 2 dual, 4 GB mem. Nvidia
graphics.GeForce 8400GS

11.2 ver 2.6.31.8 has been working fine without issues.

I've attached the results of hwinfo --log hwinfo.log --all
Comment 12 Forgotten User KSYEYC9iJz 2010-02-10 14:01:52 UTC
Created attachment 341759 [details]
Attachment mentioned in comment #11
Comment 13 Andreas Schneider 2010-02-10 18:43:09 UTC
I think there is a fix on the way, I couldn't find waht they modified to fix this problem.

https://qa.mandriva.com/show_bug.cgi?id=57390
Comment 14 Flemming Christensen 2010-02-10 18:46:49 UTC
Created attachment 341810 [details]
photo (screenshot) of kernel panic
Comment 15 Leonardo Chiquitto 2010-02-10 19:24:49 UTC
http://git.kernel.org/linus/ea9d8e3f45404d411c00ae67b45cc35c58265bb7 should fix this problem.
Comment 16 Jeff Mahoney 2010-02-10 19:29:13 UTC
Yep. This was pulled in via 2.6.31.10. It was already fixed in 2.6.32.7.

I'll commit the fix.
Comment 17 kolA flash 2010-02-10 19:33:44 UTC
Created attachment 341817 [details]
Screenshots of error message

Having the same issue!

Running an Intel Core Duo with i586 kernel. Tried -desktop, -default, -pae.

I also took a screenshot. Looks very similar to the one of Flemming. But my one is a little fuzzy, because my camera is too slow.

I think the lines to look at are those one:

kernel BUG at /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/kernel/time/clockevents.c:262!
invalid opcode: 0000 [#1] PREEMPT SMP
last sysfs file: /sys/devices/pci0000:00/0000:00:1f.1/host0/target0:0:0/0:0:0:0/scsi_disk/0:0:0:0/manage_start_st

In Flemmings screenshot it looks a little bit different:

kernel BUG at /usr/src/packages/BUILD/kernel-default-2.6.31.12/linux-2.6.31/kernel/time/clockevents.c:262!
invalid opcode: 0000 [#1] SMP
last sysfs file: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/host4/target4:0:0/4:0:0:0/vendor



At least a few more details:

- If I reboot, everything works fine!

- If I boot in failsafe mode, the pc doesn't switch off itself (I think this may be normal because of failsafe mode) but I just have to press my Power-Button on the PC very short to switch it off. Seems OK!
Usually when experiencing the bug, I have to press the Power-Button for about 5 seconds.
Comment 18 Jeff Mahoney 2010-02-10 19:40:08 UTC
Committed. Closing as fixed.

Wed Feb 10 20:45:42 CET 2010 - jeffm@suse.com

- patches.fixes/clockevent-don-t-remove-broadcast-device-when-cpu-is-dead:
  clockevent: Don't remove broadcast device when cpu is dead
  (bnc#578222).
Comment 19 Jeff Mahoney 2010-02-10 21:33:14 UTC
I was asked out-of-band what the easiest way to update the kernel prior to an official release is.

Now that the Kernel:openSUSE-11.2 project is getting synced actively, it should contain roughly the current contents of the openSUSE-11.2 kernel repository.

http://download.opensuse.org/repositories/Kernel:/openSUSE-11.2/openSUSE_11.2/


For most systems, all you'll need is the kernel-$flavor-$version.rpm for your system. If you get unresolved dependencies, then you'll need to download the matching ones for those too. They should all be there. kernel-source is under noarch, btw.
Comment 20 Forgotten User -yQj4fdAjs 2010-02-11 10:49:18 UTC
But those fixes will be officially realeased via update-repo?
Any ETA?
Comment 21 jeremy coleman 2010-02-11 13:42:41 UTC
Hi Geeks, how does a layman fix this problem without messing around with kernel source and other esoteric stuff ?

Since my opensuse got this bug through an automatic update, I would have thought another automatic update should be released to fix the problem ?

Is this the case ?

If so, how long might we be expected to wait for it to be available ?
Comment 22 Marcus Meissner 2010-02-11 22:15:42 UTC
as there was a new security bug we need to fix asap anyway, an update should appear in the next week (more to the end however as its not started yet).
Comment 23 Frans Leerink 2010-02-16 22:25:48 UTC
HELLO,

I installed today, 16 feb 2010. openSUSE 11.2 on a computer with a Intel Pentium D Dual Core Processor 830 - 3GHz and run at the end the online update via the install. The system installed oke, performed normal for the rest of the day until I pressed the shutdown button. The system starts the shutdown process but nearly at the end the message "The system will be halted immediately. Segmentation fault.
If I remember me well the system was at that time at runlevel 0. Only pressing the power button for a few seconds or switching off the power button at the backside of the desktop did stop the desktop completely. 
I could start the machine normally and are now typing the Additional Comments for this bug.
The "My Computer" functionality reports as OS:

OS:  Linux 2.6.31.12-0.1-desktop i686
  Current user:  frans@MD8800-openSUSE-11-2
  System:  openSUSE 11.2 (i586)
  KDE:  4.3.1 (KDE 4.3.1) "release 6"


Question: Should the system shutdown normally if I reinstall the openSUSE 11.2 system but do not run the online Kernel updates for the time being.

Regards,   Frans


PS After this problem I looked through the logs and saw very often the following log message in /var/log/messages: 

New high speed USB-device using ehci_hcd and address 119
Unable to enumerate USB device on port 2

Is this related to this problem or a seperate issue
Comment 24 Jeff Mahoney 2010-02-16 22:27:28 UTC
The USB issue is separate.

The problem you're experiencing was introduced in an update and will be fixed by the next one. So, not using online update until the next kernel update will result in your system shutting down ok.
Comment 25 Leonardo Chiquitto 2010-02-18 12:34:05 UTC
*** Bug 580828 has been marked as a duplicate of this bug. ***
Comment 26 Leonardo Chiquitto 2010-02-22 11:22:02 UTC
*** Bug 581631 has been marked as a duplicate of this bug. ***
Comment 27 Jiri Novak 2010-02-26 08:56:56 UTC
OK, but WHEN will be the kernel update available? Thanks.
Comment 28 Marcus Meissner 2010-02-26 15:59:12 UTC
i planning soon. we are working on a problem with the size of the provides/requires of the kernel rpms which need to be fixed first though
Comment 29 Michael Lanczak 2010-02-26 19:13:04 UTC
I have the same problem:
The shutdown of the system turnes not off the computer (first since the last updates!), you get the last messages like:
'Shutting down service (localfs) network .........
	D-Bus daem nnm- yst m-settings:disconnected from the system bus, exiting.		done
Segmentation fault'
The restart of the system works correctly.
Comment 30 Jeff Mahoney 2010-02-26 19:17:52 UTC
The problem has been identified and fixed in our repository. The next update will contain the fix.


I appreciate that people are submitting reports, but *please* read the existing comments before adding a comment. We don't need to add to the chorus of "me too" reports.

For those who are itching to test the latest and greatest, the URL contained in comment #19 always contains a close (within 24h) copy of the current git repo.
Comment 31 Howard Moreland 2010-03-01 06:20:01 UTC
Nice work, people. kernel-default-2.6.31.12-13.1.i586.rpm (from the URL contained in comment #19 ) fixed both the segmentation fault and suspend to ram problems that appeared in my system after the change from 2.6.31.8-0.1 to 2.6.31.12-0.1
Best regards,
Howard
Comment 32 Leonardo Chiquitto 2010-03-03 18:00:23 UTC
*** Bug 585022 has been marked as a duplicate of this bug. ***
Comment 33 Forgotten User KSYEYC9iJz 2010-03-09 17:50:05 UTC
Just installed 2.6.31.12-18-desktop  from kernel repo. All seems to be working fine. I can now shut my system down!. It did require recompile of VirtualBox driver.
Comment 34 Frans Leerink 2010-03-10 10:27:38 UTC
Hello,

What is the expectation for the improved kernel to be available for regular openSuse  11.2 users via the regular online update process.

Regards,  Frans
Comment 35 Teuniz XXX 2010-03-14 14:46:28 UTC
I too would like to know when the improved kernel will be available for regular openSuse 11.2 users via the regular online update process.
Comment 36 Swamp Workflow Management 2010-03-22 13:53:17 UTC
Update released for: kernel-debug, kernel-debug-base, kernel-debug-base-debuginfo, kernel-debug-debuginfo, kernel-debug-debugsource, kernel-debug-devel, kernel-debug-devel-debuginfo, kernel-default, kernel-default-base, kernel-default-base-debuginfo, kernel-default-debuginfo, kernel-default-debugsource, kernel-default-devel, kernel-default-devel-debuginfo, kernel-desktop, kernel-desktop-base, kernel-desktop-base-debuginfo, kernel-desktop-debuginfo, kernel-desktop-debugsource, kernel-desktop-devel, kernel-desktop-devel-debuginfo, kernel-pae, kernel-pae-base, kernel-pae-base-debuginfo, kernel-pae-debuginfo, kernel-pae-debugsource, kernel-pae-devel, kernel-pae-devel-debuginfo, kernel-source, kernel-source-vanilla, kernel-syms, kernel-trace, kernel-trace-base, kernel-trace-base-debuginfo, kernel-trace-debuginfo, kernel-trace-debugsource, kernel-trace-devel, kernel-trace-devel-debuginfo, kernel-vanilla, kernel-vanilla-base, kernel-vanilla-base-debuginfo, kernel-vanilla-debuginfo, kernel-vanilla-debugsource, kernel-vanilla-devel, kernel-vanilla-devel-debuginfo, kernel-xen, kernel-xen-base, kernel-xen-base-debuginfo, kernel-xen-debuginfo, kernel-xen-debugsource, kernel-xen-devel, kernel-xen-devel-debuginfo, preload-kmp-default, preload-kmp-desktop
Products:
openSUSE 11.2 (debug, i586, x86_64)
Comment 37 Frans Leerink 2010-03-22 20:32:57 UTC
Hello,

Thanks a lot for the improved kernel. I have run the online update and shut down my desktop. At that time the problem still exists, but after the reboot the next shutdowns went as expected (even very fast, less than 30 seconds)

Solved

Regards,  Frans