Bug 786523 - [abrt] cscope-15.7a-7.fc16: _IO_vfprintf_internal: Process /usr/bin/cscope was killed by signal 11 (SIGSEGV)
Summary: [abrt] cscope-15.7a-7.fc16: _IO_vfprintf_internal: Process /usr/bin/cscope wa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cscope
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Neil Horman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9499d4904614b7e7ee0c38b420b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-01 17:17 UTC by J. Bruce Fields
Modified: 2012-04-02 23:30 UTC (History)
1 user (show)

Fixed In Version: cscope-15.7a-9.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-02 23:30:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (250.80 KB, text/plain)
2012-02-01 17:17 UTC, J. Bruce Fields
no flags Details
File: backtrace (250.95 KB, text/plain)
2012-02-01 19:44 UTC, J. Bruce Fields
no flags Details
patch to correctly limit fileindex (496 bytes, patch)
2012-03-06 20:38 UTC, Neil Horman
no flags Details | Diff

Description J. Bruce Fields 2012-02-01 17:17:08 UTC
libreport version: 2.0.8
abrt_version:   2.0.7
backtrace_rating: 4
cmdline:        /usr/bin/cscope -dl -f cscope.out
comment:        I was using cscope vim keybindings to look up a symbol.  The lookup failed and I got this abrt popup.
crash_function: _IO_vfprintf_internal
executable:     /usr/bin/cscope
kernel:         3.1.9-1.fc16.x86_64
pid:            24867
pwd:            /home/bfields/local/linux-2.6
reason:         Process /usr/bin/cscope was killed by signal 11 (SIGSEGV)
time:           Wed 01 Feb 2012 09:26:13 AM EST
uid:            2815
username:       bfields

backtrace:      Text file, 256821 bytes

build_ids:
:638db099ff5fb986d1a092629d1bb1dca5be4904
:531bba5a5c1afeeb6062aa00f65d23f1156ae129
:3ed9e61c2b7e707ce244816335776afa2ad0307d
:374add1ead31ccb449779bc7ee7877de3377e5ad
:3cbc639da8b05f5cd87202ff77c5c335313d3276
:b2addb78b534f66e1c4fb01a407861181151bd8a

dso_list:
:/lib64/libdl-2.14.90.so glibc-2.14.90-24.fc16.4.x86_64 (Fedora Project) 1325607170
:/lib64/libtinfo.so.5.9 ncurses-libs-5.9-2.20110716.fc16.x86_64 (Fedora Project) 1320287304
:/lib64/libc-2.14.90.so glibc-2.14.90-24.fc16.4.x86_64 (Fedora Project) 1325607170
:/usr/bin/cscope cscope-15.7a-7.fc16.x86_64 (Fedora Project) 1324594159
:/lib64/libncurses.so.5.9 ncurses-libs-5.9-2.20110716.fc16.x86_64 (Fedora Project) 1320287304
:/lib64/ld-2.14.90.so glibc-2.14.90-24.fc16.4.x86_64 (Fedora Project) 1325607170

environ:
:XDG_VTNR=1
:XDG_SESSION_ID=2
:HOSTNAME=pad.fieldses.org
:IMSETTINGS_INTEGRATE_DESKTOP=yes
:GPG_AGENT_INFO=/tmp/keyring-9t0cpu/gpg:0:1
:SHELL=/bin/bash
:TERM=xterm
:XDG_SESSION_COOKIE=1e9c50260aaa5e57cbf093ba00000009-1326836504.377778-487026963
:HISTSIZE=1000
:GJS_DEBUG_OUTPUT=stderr
:WINDOWID=15201800
:GNOME_KEYRING_CONTROL=/tmp/keyring-9t0cpu
:'GJS_DEBUG_TOPICS=JS ERROR;JS LOG'
:IMSETTINGS_MODULE=none
:USER=bfields
:LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:*.pdf=00;33:*.ps=00;33:*.ps.gz=00;33:*.txt=00;33:*.patch=00;33:*.diff=00;33:*.log=00;33:*.tex=00;33:*.xls=00;33:*.xlsx=00;33:*.ppt=00;33:*.pptx=00;33:*.rtf=00;33:*.doc=00;33:*.docx=00;33:*.odt=00;33:*.ods=00;33:*.odp=00;33:*.xml=00;33:*.epub=00;33:*.abw=00;33:*.html=00;33:*.wpd=00;33:
:SSH_AUTH_SOCK=/tmp/keyring-9t0cpu/ssh
:USERNAME=bfields
:SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/1319,unix/unix:/tmp/.ICE-unix/1319
:DESKTOP_SESSION=gnome
:MAIL=/var/spool/mail/bfields
:PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/bfields/.local/bin:/home/bfields/bin
:_=/usr/bin/vim
:QT_IM_MODULE=xim
:PWD=/home/bfields/local/linux-2.6
:XMODIFIERS=@im=none
:LANG=en_US.UTF-8
:GNOME_KEYRING_PID=1313
:GDMSESSION=gnome
:HISTCONTROL=ignoredups
:SHLVL=2
:HOME=/home/bfields
:XDG_SEAT=seat0
:GNOME_DESKTOP_SESSION_ID=this-is-deprecated
:LOGNAME=bfields
:CVS_RSH=ssh
:DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-HbwP4rIepS,guid=4705fc059483e7fd62e9d1b000000015
:'LESSOPEN=||/usr/bin/lesspipe.sh %s'
:VIMRUNTIME=/usr/share/vim/vim73
:WINDOWPATH=1
:DISPLAY=:0.0
:XDG_RUNTIME_DIR=/run/user/bfields
:VIM=/usr/share/vim
:XAUTHORITY=/var/run/gdm/auth-for-bfields-qla475/database
:COLORTERM=gnome-terminal

maps:
:00400000-00450000 r-xp 00000000 08:01 162215                             /usr/bin/cscope
:0064f000-00650000 r--p 0004f000 08:01 162215                             /usr/bin/cscope
:00650000-00651000 rw-p 00050000 08:01 162215                             /usr/bin/cscope
:00651000-0066e000 rw-p 00000000 00:00 0 
:024ce000-0251c000 rw-p 00000000 00:00 0                                  [heap]
:3ebd000000-3ebd022000 r-xp 00000000 08:01 161995                         /lib64/ld-2.14.90.so
:3ebd221000-3ebd222000 r--p 00021000 08:01 161995                         /lib64/ld-2.14.90.so
:3ebd222000-3ebd223000 rw-p 00022000 08:01 161995                         /lib64/ld-2.14.90.so
:3ebd223000-3ebd224000 rw-p 00000000 00:00 0 
:3ebd400000-3ebd5ab000 r-xp 00000000 08:01 165951                         /lib64/libc-2.14.90.so
:3ebd5ab000-3ebd7ab000 ---p 001ab000 08:01 165951                         /lib64/libc-2.14.90.so
:3ebd7ab000-3ebd7af000 r--p 001ab000 08:01 165951                         /lib64/libc-2.14.90.so
:3ebd7af000-3ebd7b1000 rw-p 001af000 08:01 165951                         /lib64/libc-2.14.90.so
:3ebd7b1000-3ebd7b6000 rw-p 00000000 00:00 0 
:3ebe000000-3ebe002000 r-xp 00000000 08:01 166234                         /lib64/libdl-2.14.90.so
:3ebe002000-3ebe202000 ---p 00002000 08:01 166234                         /lib64/libdl-2.14.90.so
:3ebe202000-3ebe203000 r--p 00002000 08:01 166234                         /lib64/libdl-2.14.90.so
:3ebe203000-3ebe204000 rw-p 00003000 08:01 166234                         /lib64/libdl-2.14.90.so
:3ece400000-3ece423000 r-xp 00000000 08:01 170298                         /lib64/libtinfo.so.5.9
:3ece423000-3ece622000 ---p 00023000 08:01 170298                         /lib64/libtinfo.so.5.9
:3ece622000-3ece626000 r--p 00022000 08:01 170298                         /lib64/libtinfo.so.5.9
:3ece626000-3ece627000 rw-p 00026000 08:01 170298                         /lib64/libtinfo.so.5.9
:3ed2400000-3ed2423000 r-xp 00000000 08:01 170301                         /lib64/libncurses.so.5.9
:3ed2423000-3ed2622000 ---p 00023000 08:01 170301                         /lib64/libncurses.so.5.9
:3ed2622000-3ed2623000 r--p 00022000 08:01 170301                         /lib64/libncurses.so.5.9
:3ed2623000-3ed2624000 rw-p 00023000 08:01 170301                         /lib64/libncurses.so.5.9
:7fbf16ae1000-7fbf16b3b000 rw-p 00000000 00:00 0 
:7fbf16b50000-7fbf16b55000 rw-p 00000000 00:00 0 
:7fffb56b2000-7fffb56d3000 rw-p 00000000 00:00 0                          [stack]
:7fffb5764000-7fffb5765000 r-xp 00000000 00:00 0                          [vdso]
:ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

smolt_data:
:
:
:General
:=================================
:UUID: f98f7371-0cd8-4132-9d64-c5e287f46c87
:OS: Fedora release 16 (Verne)
:Default run level: Unknown
:Language: en_US.UTF-8
:Platform: x86_64
:BogoMIPS: 5054.17
:CPU Vendor: GenuineIntel
:CPU Model: Intel(R) Core(TM) i5 CPU       M 540  @ 2.53GHz
:CPU Stepping: 2
:CPU Family: 6
:CPU Model Num: 37
:Number of CPUs: 4
:CPU Speed: 2534
:System Memory: 7783
:System Swap: 4998
:Vendor: LENOVO
:System: 3680B45 ThinkPad X201
:Form factor: Notebook
:Kernel: 3.1.9-1.fc16.x86_64
:SELinux Enabled: 1
:SELinux Policy: targeted
:SELinux Enforce: Enforcing
:MythTV Remote: Unknown
:MythTV Role: Unknown
:MythTV Theme: Unknown
:MythTV Plugin: 
:MythTV Tuner: -1
:
:
:Devices
:=================================
:(32902:11362:6058:8598) pci, None, HOST/PCI, Core Processor QuickPath Architecture Generic Non-core Registers
:(32902:11521:6058:8598) pci, None, HOST/PCI, Core Processor QuickPath Architecture System Address Decoder
:(32902:68:6058:8595) pci, agpgart-intel, HOST/PCI, Core Processor DRAM Controller
:(32902:11536:6058:8598) pci, None, HOST/PCI, Core Processor QPI Link 0
:(32902:11537:6058:8598) pci, None, HOST/PCI, Core Processor QPI Physical 0
:(32902:11538:6058:8598) pci, None, HOST/PCI, Core Processor Reserved
:(32902:11539:6058:8598) pci, None, HOST/PCI, Core Processor Reserved
:(32902:15152:6058:8551) pci, i801_smbus, SERIAL, 5 Series/3400 Series Chipset SMBus Controller
:(32902:15151:6058:8552) pci, ahci, STORAGE, 5 Series/3400 Series Chipset 6 port SATA AHCI Controller
:(32902:15111:6058:8550) pci, None, PCI/ISA, Mobile 5 Series Chipset LPC Interface Controller
:(32902:15154:6058:8592) pci, intel ips, NONE, 5 Series/3400 Series Chipset Thermal Subsystem
:(32902:4330:6058:8531) pci, e1000e, ETHERNET, 82577LM Gigabit Network Connection
:(32902:9288:6058:8549) pci, None, PCI/PCI, 82801 Mobile PCI Bridge
:(32902:15164:6058:8547) pci, ehci_hcd, USB, 5 Series/3400 Series Chipset USB2 Enhanced Host Controller
:(32902:16952:32902:4369) pci, iwlwifi, NETWORK, Centrino Ultimate-N 6300 3x3 AGN
:(32902:15204:6058:8543) pci, None, SIMPLE, 5 Series/3400 Series Chipset HECI Controller
:(32902:70:6058:8538) pci, i915, VIDEO, Core Processor Integrated Graphics Controller
:(32902:15176:6058:8548) pci, pcieport, PCI/PCI, 5 Series/3400 Series Chipset PCI Express Root Port 4
:(32902:15170:6058:8548) pci, pcieport, PCI/PCI, 5 Series/3400 Series Chipset PCI Express Root Port 1
:(32902:15178:6058:8548) pci, pcieport, PCI/PCI, 5 Series/3400 Series Chipset PCI Express Root Port 5
:(32902:15190:6058:8542) pci, snd_hda_intel, MULTIMEDIA, 5 Series/3400 Series Chipset High Definition Audio
:(32902:15156:6058:8547) pci, ehci_hcd, USB, 5 Series/3400 Series Chipset USB2 Enhanced Host Controller
:
:
:Filesystem Information
:=================================
:device mtpt type bsize frsize blocks bfree bavail file ffree favail
:-------------------------------------------------------------------
:/dev/sda1 / ext4 4096 4096 20642476 13622561 13412925 5242880 4758370 4758370
:

var_log_messages:
:Feb  1 09:26:13 pad kernel: [562736.930799] cscope[24867]: segfault at 2b ip 0000003ebd448fd5 sp 00007fffb56cfc80 error 4 in libc-2.14.90.so[3ebd400000+1ab000]
:Feb  1 09:26:13 pad abrt[24874]: Saved core dump of pid 24867 (/usr/bin/cscope) to /var/spool/abrt/ccpp-2012-02-01-09:26:13-24867 (1101824 bytes)

Comment 1 J. Bruce Fields 2012-02-01 17:17:12 UTC
Created attachment 558876 [details]
File: backtrace

Comment 2 Neil Horman 2012-02-01 19:15:50 UTC
could you please attach the cscope.out file you were using when this fault occured?  Thanks!

Comment 3 J. Bruce Fields 2012-02-01 19:41:15 UTC
Sorry, no, I did a "make cscope" right after this (this was in a kernel tree).

Hm, but I just got another one--I'll go through the abrt stuff again and hopefully it'll get attached to this same bug, and I'll also attach the cscope.out this time....

Comment 4 J. Bruce Fields 2012-02-01 19:44:04 UTC
I did a cscope search for the definition of "list_add" from within vim, in a kernel tree.

backtrace_rating: 4
Package: cscope-15.7a-7.fc16
OS Release: Fedora release 16 (Verne)

Comment 5 J. Bruce Fields 2012-02-01 19:44:06 UTC
Created attachment 558909 [details]
File: backtrace

Comment 6 Neil Horman 2012-02-02 00:14:34 UTC
This will seem like overkill, but can you tell me which tree your using (a specific HEAD commit would be great as well).  I ask because I just tried to reproduce on the net-next tree and it works fine.  I'm thinking that there is garbage in your cscope.out file that is overrunning the stack (the file pointer shows as corrupted in the stack trace).  If thats the case I need either the cscope.out database, or a way to create it myself (i.e. the kernel tree your using).

Comment 7 J. Bruce Fields 2012-02-02 02:01:02 UTC
Hm, cscope.out is 140M, so maybe that's why it wouldn't upload.

I'm afraid I don't remember exactly which commit I was on at the time; probably recent rhel6.

Comment 8 J. Bruce Fields 2012-02-02 17:00:57 UTC
I've temporarily posted the (35M) compressed cscope.out at

  http://fieldses.org/~bfields/cscope.out.gz

Could you let me know when you've gotten a copy of it?

Comment 9 Neil Horman 2012-03-06 20:38:52 UTC
Created attachment 568062 [details]
patch to correctly limit fileindex

could you please try cscope with this patch and see if the problem recurs.  The backtrace looks to me like we're limiting the size of the fileindex field in the inv library to a value that that is larger than the array we're are later indexing.

Comment 10 J. Bruce Fields 2012-03-12 14:45:29 UTC
Thanks!  I applied that patch to latest f16 branch (ce3b26511697b367c7bcdc55ffdfd4a1147a27f4), did a new "make cscope" in a kernel tree, and did some cscope lookups from vim.  That didn't work before, but seems to be fine now.

Comment 11 Fedora Update System 2012-03-12 18:24:15 UTC
cscope-15.7a-9.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/cscope-15.7a-9.fc16

Comment 12 Fedora Update System 2012-03-15 02:23:30 UTC
Package cscope-15.7a-9.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cscope-15.7a-9.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-3724/cscope-15.7a-9.fc16
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2012-04-02 23:30:05 UTC
cscope-15.7a-9.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.