[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: crash reporting



On Wed, 01 Aug 2007 09:27:42 +0200, Caolan McNamara wrote:
> On Tue, 2007-07-31 at 15:08 -0700, Roland McGrath wrote:
...
> > In F8 with build IDs, having nothing but the core dump file will be enough
> > to easily determine (offline, later) all the packages that were involved. 
> 
> This sounds sort of tantalising, especially the F8 timeframe. What are
> the details ?

Roland's info:
	http://fedoraproject.org/wiki/Releases/FeatureBuildId

There is going to be GDB with the support in F8 - it loads the right executable
+ libraries just being given the core file. One of the test builds was:
	http://koji.fedoraproject.org/koji/taskinfo?taskID=76292
But it needs /usr/lib/debug/.build-id symlinks still not present in the current
F8test1/Rawhide, the symlinks should exist for F8test2 (test3?).

I see it should give there a warning if the symlink is missing to be able to:
	yum install /usr/lib/debug/.build-id/c8/eba3e0886b625d58b803f6b924b4a76d3daeb2
		# installs the executable/library
	yum install /usr/lib/debug/.build-id/c8/eba3e0886b625d58b803f6b924b4a76d3daeb2.debug
		# installs the associated -debuginfo package


Regards,
Jan


BEFORE:

$ gdb -c /tmp/buildmainlib/headers
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `../buildmain'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000004005b6 in ?? ()
(gdb) bt
#0  0x00000000004005b6 in ?? ()
#1  0x0000000000000000 in ?? ()
(gdb) info sharedlibrary
No shared libraries loaded at this time.
(gdb) _

AFTER:

$ gdb -c /tmp/buildmainlib/headers
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `../buildmain'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /tmp/buildmain.debug-x...done.
warning: Can't read pathname for load map: Input/output error.
#0  0x00000000004005b6 in main () at buildmain.c:6
6         *(int *) 0 = 0;
(gdb) bt
#0  0x00000000004005b6 in main () at buildmain.c:6
#1  0x000000300041dab4 in __libc_start_main () from /lib64/libc.so.6
#2  0x00000000004004f9 in ?? ()
#3  0x00007fff1907c548 in ?? ()
#4  0x0000000000000000 in ?? ()
(gdb) info sharedlibrary
>From                To                  Syms Read   Shared Object Library
0x00002aaaaaaad460  0x00002aaaaaaad578  Yes         /tmp/buildlib.so
# /tmp/buildlib.so would not be found due to no LD_LIBRARY_PATH without buildid
0x000000300041d8a0  0x00000030005068b8  Yes         /lib64/libc.so.6
0x0000003000000a60  0x00000030000155d4  Yes         /lib64/ld-linux-x86-64.so.2
(gdb) _


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]