[Bug 230470] New: pm-utils: s2disk segmentation fault
https://bugzilla.novell.com/show_bug.cgi?id=230470 Summary: pm-utils: s2disk segmentation fault Product: openSUSE 10.2 Version: Final Platform: i686 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: suse+build@de-korte.org QAContact: qa@suse.de With HIBERNATE_METHOD="userspace", suspending to disk segfaults. However, with HIBERNATE_METHOD="kernel", it works. Attaching logs. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 ------- Comment #1 from suse+build@de-korte.org 2006-12-22 02:41 MST ------- Created an attachment (id=110850) --> (https://bugzilla.novell.com/attachment.cgi?id=110850&action=view) Relevant part of /var/log/messages -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 ------- Comment #2 from suse+build@de-korte.org 2006-12-22 02:42 MST ------- Created an attachment (id=110851) --> (https://bugzilla.novell.com/attachment.cgi?id=110851&action=view) /var/log/pm-suspend.log -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 suse+build@de-korte.org changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #110850|Relevant part of |/var/log/messages description|/var/log/messages | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |seife@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fseidel@novell.com, hmacht@novell.com, | |seife@novell.com AssignedTo|seife@novell.com |pavel@novell.com Severity|Normal |Major ------- Comment #3 from seife@novell.com 2006-12-22 09:21 MST ------- Bad. Very Bad. Well, not quite so. s2disk segfaults, because the kernel oopses during suspend. Can you try it with init=/bin/bash? basically, boot with init=/bin/bash, then mount /proc mount /sys swapon -a to prepare the system, then run pm-hibernate to suspend. It might be a bad driver module, although i do not see an obvious offender in the modules list, but i have not suspended with matrox_w1, wire, snd_ens1371 and siiimage, so i'd guess one of those is to blame (if it is a driver problem) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 ------- Comment #4 from suse+build@de-korte.org 2006-12-22 14:11 MST ------- (In reply to comment #3)
Bad. Very Bad. Well, not quite so. s2disk segfaults, because the kernel oopses during suspend.
Can you try it with init=/bin/bash?
basically, boot with init=/bin/bash, then
mount /proc mount /sys swapon -a
to prepare the system, then run
pm-hibernate
to suspend.
That suspends the system alright.
It might be a bad driver module, although i do not see an obvious offender in the modules list, but i have not suspended with matrox_w1, wire, snd_ens1371 and siiimage, so i'd guess one of those is to blame (if it is a driver problem)
I removed all these (and more) and unfortunately, s2disk still segfaults. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 suse+build@de-korte.org changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #110851|0 |1 is obsolete| | ------- Comment #5 from suse+build@de-korte.org 2006-12-22 14:12 MST ------- Created an attachment (id=110972) --> (https://bugzilla.novell.com/attachment.cgi?id=110972&action=view) /var/log/pm-suspend.log -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 suse+build@de-korte.org changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #110850|0 |1 is obsolete| | ------- Comment #6 from suse+build@de-korte.org 2006-12-22 14:15 MST ------- Created an attachment (id=110973) --> (https://bugzilla.novell.com/attachment.cgi?id=110973&action=view) /var/log/messages -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 suse+build@de-korte.org changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #110972|text/x-log |text/plain mime type| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 pavel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #7 from pavel@novell.com 2007-01-01 11:59 MST ------- Stefan, any chance for you to reproduce it? It crashes in core snapshotting code: Dec 22 21:31:42 miffy kernel: last sysfs file: /power/state Dec 22 21:31:42 miffy kernel: Modules linked in: ide_cd ipv6 nls_utf8 loop cdrom intel_agp agpgart ext3 mbcache jbd piix ide_disk ide_core Dec 22 21:31:42 miffy kernel: CPU: 0 Dec 22 21:31:42 miffy kernel: EIP: 0060:[<c013cec6>] Tainted: G U VLI Dec 22 21:31:42 miffy kernel: EFLAGS: 00010246 (2.6.18.2-34-default #1) Dec 22 21:31:42 miffy kernel: EIP is at snapshot_ioctl+0x41d/0x4a6 Dec 22 21:31:42 miffy kernel: eax: 00000000 ebx: c040a020 ecx: 00000015 edx: 00000001 ..not in driver code, and that is strange. ..hmm, can you try using "shutdown" instead of "platform" powerdown mode? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 pavel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Major |Normal Status|ASSIGNED |NEEDINFO Info Provider| |suse+build@de-korte.org -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 ------- Comment #8 from suse+build@de-korte.org 2007-01-28 11:32 MST ------- I'm sorry for the late reply, have been busy with other things. The problem still exists though.
...hmm, can you try using "shutdown" instead of "platform" powerdown mode?
Where can I configure this? I have looked in the /etc/sysconfig directory, but have found no file where these two value where set. Am I missing something? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 ------- Comment #9 from seife@novell.com 2007-01-28 14:56 MST ------- add this line to /etc/suspend.conf: shutdown method = shutdown (the default is "shutdown method = platform") -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 suse+build@de-korte.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|suse+build@de-korte.org | ------- Comment #10 from suse+build@de-korte.org 2007-01-29 12:21 MST ------- With 'shutdown method = shutdown' added to /etc/suspend.conf, suspending works flawlessly. I also checked with 'shutdown method = platform', which doesn't work. Note that this is an APM only system (the ACPI implementation is broken), could it be this has something to do with this? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 ------- Comment #11 from pavel@novell.com 2007-01-31 06:27 MST ------- Yep, I guess we failed to test "platform" mode when it is not available. Broken acpi seems to be the problem here. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 ------- Comment #12 from pavel@novell.com 2007-01-31 06:51 MST ------- Yep, I guess we failed to test "platform" mode when it is not available. Broken acpi seems to be the problem here. Could you try attached patch? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 ------- Comment #13 from pavel@novell.com 2007-01-31 07:06 MST ------- Created an attachment (id=116542) --> (https://bugzilla.novell.com/attachment.cgi?id=116542&action=view) probable fix -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 ------- Comment #14 from seife@novell.com 2007-01-31 11:58 MST ------- Pavel, we need to return "-EINVALID" at least for PREPARE, so that userspace can fall back to shutdown mode. I declare myself guilty of not thinking of the !(pm_ops) case. Sorry :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #116542|0 |1 is obsolete| | AssignedTo|pavel@novell.com |seife@novell.com ------- Comment #15 from seife@novell.com 2007-02-02 08:15 MST ------- Created an attachment (id=117095) --> (https://bugzilla.novell.com/attachment.cgi?id=117095&action=view) more complete fix against SUSE kernel This is a "better" (more complete) fix. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 ------- Comment #16 from suse+build@de-korte.org 2007-02-11 11:57 MST ------- (In reply to comment #12)
Yep, I guess we failed to test "platform" mode when it is not available. Broken acpi seems to be the problem here.
Probably.
Could you try attached patch?
Since I usually don't compile my own kernels, this probably requires setting up vast amounts of missing dependencies in order to make the build. If this is absolutely needed in order to squash this bug, I'll do so, but I'd rather not (my downlink is not that wide, so this will probably take a while). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 ------- Comment #17 from seife@novell.com 2007-02-11 13:29 MST ------- (In reply to comment #16)
(In reply to comment #12)
Yep, I guess we failed to test "platform" mode when it is not available. Broken acpi seems to be the problem here.
Probably.
Sure, i already verified that :-)
Could you try attached patch? If this is absolutely needed in order to squash this bug, I'll do so, but I'd rather not
No, it's not necessary. We sent the fix upstream. We will probably not fix this in the 10.2 kernel (it can be easily worked around), but it will be fixed in future openSUSE releases. I will document this on the openSUSE wiki, so that it can be found easily. Until i have done this, i'll leave this bug open, so that i don't forget it :-) Thanks for reporting and testing. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|seife@novell.com |pavel@novell.com Status|ASSIGNED |NEW ------- Comment #18 from seife@novell.com 2007-02-22 07:36 MST ------- Pavel, i think we should put the patch from comment #15 into the next 10.2 update kernel. It is "obviously correct" and a workaround from userspace is not easily possible (the kernel could already oops at the ->prepare stage). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 pavel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #19 from pavel@novell.com 2007-02-26 01:03 MST ------- The patch from comment #15 indeed looks okay. (I guess there's no chance to pull it from some -stable tree?) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kernel-maintainers@forge.provo.novell.com ------- Comment #20 from seife@novell.com 2007-02-26 02:58 MST ------- Rafael sent it to -stable, however, depending on the plans for updating the kernel, we might add it to our tree before we do the next -stable pull (adding kernel-maintainers to cc, just that somebody who knows about kernel update plans for 10.2 can comment or just take the patch ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 ------- Comment #21 from pavel@novell.com 2007-04-10 02:00 MST ------- I think we did the pull from -stable? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 ------- Comment #22 from seife@novell.com 2007-04-16 07:11 MST ------- we got 2.6.18.8 in 10.2 now, so it might actually be fixed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 ------- Comment #23 from suse+build@de-korte.org 2007-04-16 09:19 MST -------
we got 2.6.18.8 in 10.2 now, so it might actually be fixed.
#uname -r 2.6.18.8-0.1-default Unless there is a more recent kernel available, the system still segfaults when I don't specify 'shutdown method = shutdown' in /etc/suspend.conf. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Ulrich.Windl@rz.uni-regensburg.de ------- Comment #24 from seife@novell.com 2007-04-18 05:53 MST ------- *** Bug 264260 has been marked as a duplicate of this bug. *** -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470 pavel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|pm-utils: s2disk |pm-utils: s2disk oopses in platform mode with |segmentation fault |ACPI unavailable -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=230470#c25
Pavel Machek
https://bugzilla.novell.com/show_bug.cgi?id=230470#c26
--- Comment #26 from Arjen de Korte
https://bugzilla.novell.com/show_bug.cgi?id=230470#c27
Arjen de Korte
https://bugzilla.novell.com/show_bug.cgi?id=230470
Arjen de Korte
participants (1)
-
bugzilla_noreply@novell.com