Summary: | app-admin/procinfo-18-r1: segfaults with -a | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | John Jaeger <billybobsa> |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | VERIFIED TEST-REQUEST | ||
Severity: | normal | CC: | billybobsa, jlec, nathan |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Emerge info and box info
Back trace patch to change MAX_CHRDEV from 32 to 64 |
Description
John Jaeger
2011-04-26 14:44:07 UTC
Created attachment 271233 [details]
Emerge info and box info
Let me know if there is anything else I can send you.
http://www.gentoo.org/proj/en/qa/backtraces.xml please follow this guide an provide a gdb output. It's pretty short... gdb: GNU gdb (Gentoo 7.2 p1) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". For bug reporting instructions, please see: <http://bugs.gentoo.org/>... Reading symbols from /usr/bin/procinfo...(no debugging symbols found)...done. (gdb) set logging file backtrace1.log (gdb) set logging on Copying output to backtrace1.log. (gdb) set args -a (gdb) run Starting program: /usr/bin/procinfo -a Program received signal SIGSEGV, Segmentation fault. 0x00007ffff78788b5 in vfprintf () from /lib64/libc.so.6 (gdb) bt full #0 0x00007ffff78788b5 in vfprintf () from /lib64/libc.so.6 No symbol table info available. #1 0x00007ffff7917b27 in __printf_chk () from /lib64/libc.so.6 No symbol table info available. #2 0x000000000040758f in ?? () No symbol table info available. #3 0x00007ffff7851bec in __libc_start_main () from /lib64/libc.so.6 No symbol table info available. #4 0x0000000000401bc9 in ?? () No symbol table info available. #5 0x00007fffffffe028 in ?? () No symbol table info available. #6 0x000000000000001c in ?? () No symbol table info available. #7 0x0000000000000002 in ?? () No symbol table info available. #8 0x00007fffffffe33f in ?? () No symbol table info available. #9 0x00007fffffffe351 in ?? () No symbol table info available. #10 0x0000000000000000 in ?? () No symbol table info available. (gdb) thread apply all bt full Thread 1 (process 434): #0 0x00007ffff78788b5 in vfprintf () from /lib64/libc.so.6 No symbol table info available. #1 0x00007ffff7917b27 in __printf_chk () from /lib64/libc.so.6 No symbol table info available. #2 0x000000000040758f in ?? () No symbol table info available. #3 0x00007ffff7851bec in __libc_start_main () from /lib64/libc.so.6 No symbol table info available. #4 0x0000000000401bc9 in ?? () No symbol table info available. #5 0x00007fffffffe028 in ?? () No symbol table info available. #6 0x000000000000001c in ?? () No symbol table info available. #7 0x0000000000000002 in ?? () No symbol table info available. #8 0x00007fffffffe33f in ?? () No symbol table info available. #9 0x00007fffffffe351 in ?? () No symbol table info available. #10 0x0000000000000000 in ?? () No symbol table info available. That doesn't look like glibc and procinfo compiled with -g. For additional information see this recent blog post. http://matija.suklje.name/?q=node/243 Please provide more detailed output, as it is n't reproducable here. Created attachment 271255 [details]
Back trace
Got it this time <G> Thanks... John Seems to missing a file: 0x00007ffff78788b5 in _IO_vfprintf_internal (s=0x7ffff7b88780, format=<value optimized out>, ap=0x7fffffffca00) at vfprintf.c:1593 1593 vfprintf.c: No such file or directory. The only vfprintf.c on my file system is in the source tree of my sendmail. Odd... Thanks again. Please test procinfo-ng. Should work better for you (In reply to comment #4) > That doesn't look like glibc and procinfo compiled with -g. > For additional information see this recent blog post. > > http://matija.suklje.name/?q=node/243 > > Please provide more detailed output, as it is n't reproducable here. If you cat /proc/devices | grep -A 35 "Character devices", do you have less than 32 charactor devices ? If so, then it's not reproducible for you. The problem was reported back in 2003! https://bugzilla.redhat.com/show_bug.cgi?id=89176 I'll attach a patch that will resolve this issue Created attachment 279655 [details, diff]
patch to change MAX_CHRDEV from 32 to 64
patch for character and block devices from 32 to 64
Also reported in Bug: 300611 comment #2 was a patch to make the gcc line print correctly. Adding both patches make procinfo work and display correctly without segfaulting Please include them in the ebuild. Thanks. Please test the patches sent in on this date. They do fix the issue. Thanks, John... |