[Bug 723639] New: crash search paths
https://bugzilla.novell.com/show_bug.cgi?id=723639 https://bugzilla.novell.com/show_bug.cgi?id=723639#c0 Summary: crash search paths Classification: openSUSE Product: openSUSE 12.1 Version: Beta 1 Platform: x86-64 OS/Version: SuSE Other Status: NEW Severity: Critical Priority: P5 - None Component: Development AssignedTo: ptesarik@suse.com ReportedBy: ajohansson@novell.com QAContact: qa@suse.de Found By: --- Blocker: --- My setup for analysing kernel crashdumps is a directory called "unpacked" where I have unpacked/SLES10 unpacked/SLES11 and beneath I have one directory for each kernel version. e.g. unpacked/SLES10/0.33/xen/ in these directories I have the -debuginfo files for the corresponding version unpacked, so I can quickly open a core with cd <appropriate directory> crash boot/System.map.<version> boot/vmlinux-<version>.gz /path/to/vmcore this has worked for some time and makes my work a lot easier. In 12.1 crash changed, and no longer looks at $PWD. strace shows 15102 open("/tmp/vmlinux-2.6.32.45-0.3.2.3545.0.PTF-xen.debug", O_RDONLY) = -1 ENOENT (No such file or directory) 15102 open("/tmp/.debug/vmlinux-2.6.32.45-0.3.2.3545.0.PTF-xen.debug", O_RDONLY) = -1 ENOENT (No such file or directory) 15102 open("/usr/lib/debug//tmp/vmlinux-2.6.32.45-0.3.2.3545.0.PTF-xen.debug", O_RDONLY) = -1 ENOENT (No such file or directory) 15102 open("/usr/lib/debug/tmp/vmlinux-2.6.32.45-0.3.2.3545.0.PTF-xen.debug", O_RDONLY) = -1 ENOENT (No such file or directory) and it also tries 15102 access("/usr/lib/debug/.build-id/f7/b4a3181586bbbabd4ab2283d2bf23d3f84e8c6.debug", F_OK) = -1 ENOENT This is a complete departure from how crash worked in previous versions, and if $PWD is not used as before, it makes reading kernel dumps much harder. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=723639 https://bugzilla.novell.com/show_bug.cgi?id=723639#c1 Petr Tesařík <ptesarik@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low Status|NEW |NEEDINFO InfoProvider| |ajohansson@novell.com --- Comment #1 from Petr Tesařík <ptesarik@suse.com> 2011-10-13 08:38:44 UTC --- Can you please let me know which version of crash worked with the above-described setup? I've tested the following: - crash-5.1.1-5.4 (openSUSE 11.4) - crash-5.0.3-1.18 (openSUSE 11.3) - crash-5.0.1-1.8.1 (SLES11 SP1) - crash-4.1.0-2.3 (openSUSE 11.2) - crash-4.0.7.6-2.8.1 (SLES11 GA) - crash-4.0.7.4-8.6 (openSUSE 11.1) None of them could find the debuginfo with the directory structure. Are you sure this is a regression? Did you pass any additional switches to crash, or set any environment variables in the working case? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=723639 https://bugzilla.novell.com/show_bug.cgi?id=723639#c2 Petr Tesařík <ptesarik@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|ajohansson@novell.com | --- Comment #2 from Petr Tesařík <ptesarik@suse.com> 2011-10-13 13:51:55 UTC --- Found the root cause. The search is now done by the embedded gdb, not by the crash utility core. And that one doesn't get the proper path name, only the path to the uncompressed temporary file. I'm going to post a 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.
https://bugzilla.novell.com/show_bug.cgi?id=723639 https://bugzilla.novell.com/show_bug.cgi?id=723639#c3 --- Comment #3 from Petr Tesařík <ptesarik@suse.com> 2011-10-13 19:42:13 UTC --- Created an attachment (id=456390) --> (http://bugzilla.novell.com/attachment.cgi?id=456390) Search the separate debuginfo in the same directory as vmlinux-*.gz This patch restores the previous behaviour for me. A better fix would be to add /usr/lib/debug to the search path... I'll try that one with upstream first. Keeping the bug open for now. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=723639 https://bugzilla.novell.com/show_bug.cgi?id=723639#c4 --- Comment #4 from Bernhard Wiedemann <bwiedemann@suse.com> 2011-10-13 22:00:15 CEST --- This is an autogenerated message for OBS integration: This bug (723639) was mentioned in https://build.opensuse.org/request/show/87759 Factory / crash -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=723639 https://bugzilla.novell.com/show_bug.cgi?id=723639#c5 Stephan Kulow <coolo@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flag| |SHIP_STOPPER- --- Comment #5 from Stephan Kulow <coolo@suse.com> 2011-10-24 11:16:29 CEST --- so 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.
https://bugzilla.novell.com/show_bug.cgi?id=723639 https://bugzilla.novell.com/show_bug.cgi?id=723639#c6 --- Comment #6 from Anders Johansson <ajohansson@novell.com> 2011-10-27 06:19:28 UTC --- No, not fixed. The problem is that if the kernel is compressed, it will be unpacked in /tmp, and then the .debug file will be looked for in /tmp as well. This is a regression, it used to be completely transparent I've verified this behaviour with the version of crash from Kernel:kdump/openSUSE_Factory and it fails to find the debuginfo files I actually don't see anything in that patch that makes it look at the current directory, all I see is a renaming of a variable. Maybe I'm missing something crucial -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=723639 https://bugzilla.novell.com/show_bug.cgi?id=723639#c7 Petr Tesařík <ptesarik@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |ajohansson@novell.com --- Comment #7 from Petr Tesařík <ptesarik@suse.com> 2011-10-27 08:05:06 UTC --- Hi Anders, I believe you missed that: 1. the debuginfo link is now always checked 2. base directory name is now taken from pc->namelist_orig if that exists I have actually tested your setup with Kernel:kdump/SLE-11-SP1, and it worked. I kept this bug open for the ideal solution, which is adding $PWD/usr/lib/debug to the search path, so that you no longer have to link the vmlinux.*.debug into $PWD/boot. This means that enough space must be allocated for the resulting filename, but the current calculation formula is incredibly convoluted, and most likely wrong, so I postponed that one as a new feature rather than a bugfix. Oh, wait a moment, you still invoke crash like this: crash boot/System.map.<version> boot/vmlinux-<version>.gz /path/to/vmcore Could you retry after removing the boot/System.map? That is, run it as: crash boot/vmlinux-<version>.gz /path/to/vmcore -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=723639 https://bugzilla.novell.com/show_bug.cgi?id=723639#c8 --- Comment #8 from Petr Tesařík <ptesarik@suse.com> 2011-10-27 08:25:18 UTC --- Created an attachment (id=459108) --> (http://bugzilla.novell.com/attachment.cgi?id=459108) check debuginfo link when using System.map This patch should also fix the System.map case. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=723639 https://bugzilla.novell.com/show_bug.cgi?id=723639#c9 Anders Johansson <ajohansson@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|ajohansson@novell.com | --- Comment #9 from Anders Johansson <ajohansson@novell.com> 2011-10-27 08:32:45 UTC --- You're right, if I leave out System.map the dump loads -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=723639 https://bugzilla.novell.com/show_bug.cgi?id=723639#c10 --- Comment #10 from Petr Tesařík <ptesarik@suse.com> 2011-10-27 20:02:18 UTC --- (In reply to comment #8)
Created an attachment (id=459108) --> (http://bugzilla.novell.com/attachment.cgi?id=459108) [details] check debuginfo link when using System.map
This patch should also fix the System.map case.
No, it doesn't work, because the BFD file is reset and the following code then incorrectly assumes that the main vmlinux binary is missing. I'll have to make a different patch to resolve the System.map case. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=723639 https://bugzilla.novell.com/show_bug.cgi?id=723639#c11 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:released:sle11-sp1:49 | |875 --- Comment #11 from Swamp Workflow Management <swamp@suse.de> 2012-11-09 18:09:30 UTC --- Update released for: crash, crash-debuginfo, crash-debugsource, crash-devel, crash-doc, crash-sial, kdump, kdump-debuginfo, kdump-debugsource, makedumpfile, makedumpfile-debuginfo, makedumpfile-debugsource Products: SLE-SERVER 11-SP1-TERADATA (x86_64) -- 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.
participants (1)
-
bugzilla_noreply@novell.com