Segmentation fault in cscope on linux kernel tree
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cscope (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Hi,
While using cscope on the Linux Kernel git tree I am getting a segfault while trying to browse the sources.
Here is my script to generate the cscope database (after a clean git clone of the linux kernel tree) :
#!/bin/bash
BASE=/home/kernel
LNX=${BASE}
cd /
find $LNX \
-path "$LNX/arch/*" ! -path "$LNX/arch/i386*" -prune -o \
-path "$LNX/include/
-path "$LNX/tmp*" -prune -o \
-path "$LNX/Documenta
-path "$LNX/scripts*" -prune -o \
-path "$LNX/drivers*" -prune -o \
-name "*.[chxsS]" -print >${BASE}
cd ${BASE}
cscope -b -q -k
When launching cscope I am getting a segfault :
Buildingzsh: segmentation fault (core dumped) cscope 1130 20780
cscope: removed files cscope.in.out and cscope.
the core file does not give much :
chmouel@
GNU gdb 6.8-debian
Copyright (C) 2008 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 "i486-linux-gnu"...
(no debugging symbols found)
warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libncurses
Loaded symbols for /lib/libncurses
Reading symbols from /lib/tls/
Loaded symbols for /lib/tls/
Reading symbols from /lib/tls/
Loaded symbols for /lib/tls/
Reading symbols from /lib/ld-
Loaded symbols for /lib/ld-linux.so.2
(no debugging symbols found)
Core was generated by `cscope'.
Program terminated with signal 11, Segmentation fault.
[New process 11661]
#0 0x0804ef13 in ?? ()
(gdb)
and the strace give :
access(
access(
read(4, "\n21 .\n\tgh8300s\
write(5, "\nPADDR\n\n\n154 .\nby\213\n 0x00,0x00\n\n1"..., 4096) = 4096
lstat64(
read(4, "", 8192) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++
(END)
Let me know if there is anything I can do to help with this issue.
Cheers, Chmouel.
Are you still affected by this bug? Thank you for telling us!