lspci crashed with SIGSEGV in pci_load_name_list() (with invalid parameter to -i)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pciutils (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
lspci crashes when receiving improper arguments.
Steps to reproduce:
$ sudo -s
# uname -a
Linux tacitus 2.6.35-23-generic #41-Ubuntu SMP Wed Nov 24 10:18:49 UTC 2010 i686 GNU/Linux
# lspci -vvii
Segmentation fault
# gdb --args lspci -vvii
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
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 "i686-linux-gnu".
For bug reporting instructions, please see:
<http://
Reading symbols from /usr/bin/
(gdb) run
Starting program: /usr/bin/lspci -vvii
Program received signal SIGSEGV, Segmentation fault.
0x00252f34 in ?? () from /lib/libc.so.6
(gdb) bt
#0 0x00252f34 in ?? () from /lib/libc.so.6
#1 0x00133de4 in pci_load_name_list () from /usr/lib/
#2 0x00132d4a in pci_lookup_name () from /usr/lib/
#3 0x08049fca in ?? ()
#4 0x0804a4ae in ?? ()
#5 0x0804bca0 in ?? ()
#6 0x00151ce7 in __libc_start_main () from /lib/libc.so.6
#7 0x08048f51 in ?? ()
(gdb) quit
affects: | ubuntu → gdb (Ubuntu) |
tags: | added: maverick |
affects: | gdb (Ubuntu) → pciutils (Ubuntu) |
summary: |
- Segmentation fault in lspci with invalid parameter to -i + Ispci crashed with SIGSEGV in pci_load_name_list() |
summary: |
- Ispci crashed with SIGSEGV in pci_load_name_list() + Ispci crashed with SIGSEGV in pci_load_name_list() (with invalid + parameter to -i) |
I installed package libc6-dbg and the backtrace gives this additional information:
Program received signal SIGSEGV, Segmentation fault. i386/i686/ multiarch/ memcpy- ssse3-rep. S:1279 i386/i686/ multiarch/ memcpy- ssse3-rep. S: No such file or directory. i386/i686/ multiarch/ memcpy- ssse3-rep. S i386/i686/ multiarch/ memcpy- ssse3-rep. S:1279 libpci. so.3 libpci. so.3 end=0xbffff65c) at libc-start.c:226
__memcpy_ssse3_rep () at ../sysdeps/
1279 ../sysdeps/
in ../sysdeps/
(gdb) bt
#0 __memcpy_ssse3_rep () at ../sysdeps/
#1 0x00133de4 in pci_load_name_list () from /usr/lib/
#2 0x00132d4a in pci_lookup_name () from /usr/lib/
#3 0x08049fca in ?? ()
#4 0x0804a4ae in ?? ()
#5 0x0804bca0 in ?? ()
#6 0x00151ce7 in __libc_start_main (main=0x804b960, argc=2, ubp_av=0xbffff664, init=0x80530d0, fini=0x80530c0, rtld_fini=0x11eac0 <_dl_fini>,
stack_
#7 0x08048f51 in ?? ()