Public bug reported:

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}/linux-2.6/
cd /
find  $LNX                                                                \
-path "$LNX/arch/*" ! -path "$LNX/arch/i386*" -prune -o               \
-path "$LNX/include/asm-*" ! -path "$LNX/include/asm-i386*" -prune -o \
-path "$LNX/tmp*" -prune -o                                           \
-path "$LNX/Documentation*" -prune -o                                 \
-path "$LNX/scripts*" -prune -o                                       \
-path "$LNX/drivers*" -prune -o                                       \
    -name "*.[chxsS]" -print >${BASE}/cscope.files
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 [EMAIL PROTECTED]:/home/kernel$ 

the core file does not give much :

[EMAIL PROTECTED]:/home/kernel$ gdb /usr/bin/cscope core 
GNU gdb 6.8-debian
Copyright (C) 2008 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 "i486-linux-gnu"...
(no debugging symbols found)

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libncurses.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/tls/i686/cmov/libc.so.6...(no debugging symbols 
found)...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
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("/usr/include/asm/linkage.h", R_OK) = -1 ENOENT (No such file or 
directory)
access("/usr/include/asm/regs267x.h", R_OK) = -1 ENOENT (No such file or 
directory)
read(4, "\n21 .\n\tgh8300s\n\n\n22 .\n\tg\243\371i\332\n .\n"..., 8192) = 1863
write(5, "\nPADDR\n\n\n154 .\nby\213\n 0x00,0x00\n\n1"..., 4096) = 4096
lstat64("/home/kernel/linux-2.6/arch/h8300/platform/h8s/generic/timer.c", 
{st_mode=S_IFREG|0644, st_size=1307, ...}) = 0
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.

** Affects: cscope (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Segmentation fault in cscope on linux kernel tree
https://bugs.launchpad.net/bugs/231892
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to