#91 core dump while rebuilding db in -q -P mode

closed-out-of-date
5
2004-04-30
2002-06-26
CC
No

Hi,
cscope core dumps while rebuilding its database when
this is built with the -q and -P options. Here are the
steps to replicate it, along with the stack trace:

camacho@crux[240]% cscope -V
cscope: version 15.3
camacho@crux[241]% ls -1 cscope*
cscope.in.out
cscope.out
cscope.po.out
camacho@crux[242]% touch readdb.h
camacho@crux[243]% cscope -bq -P `pwd`
Segmentation fault (core dumped)
camacho@crux[244]% uname -a
SunOS crux 5.8 Generic_108528-12 sun4u sparc
SUNW,Ultra-80
camacho@crux[245]% dbx -c 'where;quit' `which cscope`
core
Reading cscope
core file header read successfully
Reading ld.so.1
Reading libcurses.so.1
Reading libc.so.1
Reading libdl.so.1
Reading libc_psr.so.1
program terminated by signal SEGV (no mapping at the
fault address)
Current function is putstring
863 if (c > '\177') {
=>[1] putstring(s = 0xffbf0000 ""), line 863 in
"find.c"
[2] copyinverted(), line 1320 in "main.c"
camacho@crux[246]%

Please note that the core dump does not occur if one
uses the -u option.
Thanks for looking into this.
Regards,

Christiam
PS: Thanks for providing this great tool!

Discussion

  • Hans-Bernhard Broeker

    • labels: --> inverted index handling
    • assigned_to: nobody --> broeker
    • summary: core dump while rebuilding cscope db --> core dump while reubilding db in -q -P mode
     
  • Hans-Bernhard Broeker

    Logged In: YES
    user_id=27517

    I can't seem to reproduce this problem with current CVS
    sources on Linux. Could you please check the current CVS
    version on your Solaris box, so we can see whether the
    problem is specific to Solaris, or probably to your set of
    source files?

     
  • Hans-Bernhard Broeker

    • summary: core dump while reubilding db in -q -P mode --> core dump while rebuilding db in -q -P mode
     
  • Hans-Bernhard Broeker

    • status: open --> closed-out-of-date
     
  • Hans-Bernhard Broeker

    Logged In: YES
    user_id=27517

    Sorry, but without any feedback, this really can't be
    handled sensibly. Closed as "out of date".

     
  • CC

    CC - 2004-05-01

    Logged In: YES
    user_id=258911

    Thanks for checking this, the problem no longer exists on
    solaris.

    --
    Christiam

     

Log in to post a comment.