bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG REPORT] gtags segmentation fault


From: Hideki IWAMOTO
Subject: Re: [BUG REPORT] gtags segmentation fault
Date: Wed, 18 Jun 2003 23:34:14 +0900

On Mon, 16 Jun 2003 21:58:26 +0900, Hideki IWAMOTO wrote...
> On Sun, 15 Jun 2003 10:16:16 +0900, Shigio Yamaguchi wrote...
> > Hi,
> > I cannot reproduce the trouble in my environment.
> > 
> > Operating System:
> >     FreeBSD 4.3-RELEASE
> 
> I reported the result on Redhat9 till yesterday. 
> When I tried on Redhat7.2 today, gtags aborted in the same place.
> 
This is another information.

It seems that this is not dependent on the optimization level of compiler.

Redhat 7.2
------------+-----------------------
gcc version |   -O0    -O1    -O2
------------+-----------------------
   2.96     |    NG     NG     NG
   3.3      |    NG     NG     NG
------------+-----------------------

Redhat 9
------------+-----------------------
gcc version |   -O0    -O1    -O2
------------+-----------------------
   3.2.2    |    NG     NG     NG
   3.3      |    NG     NG     NG
------------+-----------------------

Conditions:  
  .globalrc
     format=compact
  environment
     GTAGSCACHE=50000000
  CFLAGS
     -DPURIFY is always specified.
  Target source code:
     linux-2.4.21


Backtrace:

Redhat 7.2, gcc-2.96, -O0
(gdb) bt
#0  0x080565b0 in __bt_split (t=0x80717d8, sp=0x99eab94, key=0xbfffa9f8, 
data=0xbfffa9f0, flags=0, ilen=2036, argskip=0) at bt_split.c:196
#1  0x08055326 in __bt_put (dbp=0x8071a00, key=0xbfffa9f8, data=0xbfffa9f0, 
flags=0) at bt_put.c:214
#2  0x0804e043 in dbop_put (dbop=0x8073e98, name=0x806f575 "card", 
    data=0x8720600 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x8071776 "5978") at dbop.c:229
#3  0x0805099b in gtags_put (gtop=0x806e350, tag=0x806dae0 "chan", 
record=0x807b880 "chan", fid=0x99c164e "5978") at gtagsop.c:383
#4  0x08051576 in gtags_add (gtop=0x806e350, comline=0x8078728 "gctags -dtr 
%s", path=0x8068380 "./drivers/sound/i810_audio.c", flags=0)
    at gtagsop.c:507
#5  0x0804c381 in createtags (dbpath=0xbfffdbb0 "/home/iwamoto/tmp/2.96-O0", 
root=0xbfffcbb0 "/home/iwamoto/tmp/linux-2.4.21", db=2)
    at gtags.c:1002
#6  0x0804ae70 in main (argc=1, argv=0xbffffc28) at gtags.c:635
#7  0x40044657 in __libc_start_main (main=0x8049704 <main>, argc=2, 
ubp_av=0xbffffc24, init=0x8049044 <_init>, fini=0x8063510 <_fini>, 
    rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbffffc1c) at 
../sysdeps/generic/libc-start.c:129

Redhat 7.2, gcc-2.96, -O1
(gdb) bt
#0  __bt_split (t=0x806a3f8, sp=0x99e37b4, key=0xbfffaa10, data=0xbfffaa08, 
flags=0, ilen=2036, argskip=0) at bt_split.c:196
#1  0x0805218a in __bt_put (dbp=0x806a620, key=0xbfffaa10, data=0xbfffaa08, 
flags=0) at bt_put.c:214
#2  0x0804cd25 in dbop_put (dbop=0x806cab8, name=0x8068195 "card", 
    data=0x8719220 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x806a396 "5978") at dbop.c:229
#3  0x0804ed3d in gtags_put (gtop=0x8066f70, tag=0x8066700 "chan", 
record=0x80744a0 "chan", fid=0x99ba26e "5978") at gtagsop.c:383
#4  0x0804f47f in gtags_add (gtop=0x8066f70, comline=0x8071348 "gctags -dtr 
%s", path=0x8060fa0 "./drivers/sound/i810_audio.c", flags=0)
    at gtagsop.c:507
#5  0x0804b790 in createtags (dbpath=0xbfffdba0 "/home/iwamoto/tmp/2.96-O1", 
root=0xbfffcba0 "/home/iwamoto/tmp/linux-2.4.21", db=2)
    at gtags.c:1002
#6  0x0804a7f5 in main (argc=1, argv=0xbffffc28) at gtags.c:635
#7  0x40044657 in __libc_start_main (main=0x804963c <main>, argc=2, 
ubp_av=0xbffffc24, init=0x8048fec <_init>, fini=0x805b560 <_fini>, 
    rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbffffc1c) at 
../sysdeps/generic/libc-start.c:129

Redhat 7.2, gcc-2.96, -O2
(gdb) bt
#0  __bt_split (t=0x806a098, sp=0x99e3454, key=0xbfffa9f0, data=0xbfffa9e8, 
flags=0, ilen=2036, argskip=0) at bt_split.c:196
#1  0x08051fa3 in __bt_put (dbp=0x806a2c0, key=0xbfffa9f0, data=0xbfffa9e8, 
flags=0) at bt_put.c:214
#2  0x0804cc9f in dbop_put (dbop=0x806c758, name=0x8067e35 "card", 
    data=0x8718ec0 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x806a036 "5978") at dbop.c:229
#3  0x0804ebcf in gtags_put (gtop=0x8066c10, tag=0x80663a0 "chan", 
record=0x8074140 "chan", fid=0x99b9f0e "5978") at gtagsop.c:383
#4  0x0804f345 in gtags_add (gtop=0x8066c10, comline=0x8070fe8 "gctags -dtr 
%s", path=0x8060c40 "./drivers/sound/i810_audio.c", flags=0)
    at gtagsop.c:507
#5  0x0804b757 in createtags (dbpath=0xbfffdba0 "/home/iwamoto/tmp/2.96-O2", 
root=0xbfffcba0 "/home/iwamoto/tmp/linux-2.4.21", db=2)
    at gtags.c:1002
#6  0x0804a7b4 in main (argc=1, argv=0xbffffc28) at gtags.c:635
#7  0x40044657 in __libc_start_main (main=0x8049638 <main>, argc=2, 
ubp_av=0xbffffc24, init=0x8048fec <_init>, fini=0x805b1f0 <_fini>, 
    rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbffffc1c) at 
../sysdeps/generic/libc-start.c:129

Redhat 7.2, gcc-3.3, -O0
(gdb) bt
#0  0x0805616f in __bt_split (t=0x8072138, sp=0x99eb4f4, key=0xbfffa9e8, 
data=0xbfffa9e0, flags=0, ilen=2036, argskip=0) at bt_split.c:196
#1  0x08054d75 in __bt_put (dbp=0x8072360, key=0xbfffa9e8, data=0xbfffa9e0, 
flags=0) at bt_put.c:214
#2  0x0804dbed in dbop_put (dbop=0x80747f8, name=0x806fed5 "card", 
    data=0x8720f60 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x80720d6 "5978") at dbop.c:229
#3  0x0805048e in gtags_put (gtop=0x806ecb0, tag=0x806e440 "chan", 
record=0x807c1e0 "chan", fid=0x99c1fae "5978") at gtagsop.c:383
#4  0x08050fda in gtags_add (gtop=0x806ecb0, comline=0x8079088 "gctags -dtr 
%s", path=0x8068ca0 "./drivers/sound/i810_audio.c", flags=0)
    at gtagsop.c:507
#5  0x0804c0a1 in createtags (dbpath=0xbfffdbb0 "/home/iwamoto/tmp/3.3-O0", 
root=0xbfffcbb0 "/home/iwamoto/tmp/linux-2.4.21", db=2)
    at gtags.c:1002
#6  0x0804ac74 in main (argc=1, argv=0xbffffc28) at gtags.c:635
#7  0x40044657 in __libc_start_main (main=0x8049601 <main>, argc=2, 
ubp_av=0xbffffc24, init=0x8048f98 <_init>, fini=0x8063060 <_fini>, 
    rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbffffc1c) at 
../sysdeps/generic/libc-start.c:129

Redhat 7.2, gcc-3.3, -O1
(gdb) bt
#0  __bt_split (t=0x806b038, sp=0x99e43f4, key=0xbfffaa00, data=0xbfffa9f8, 
flags=0, ilen=161404180, argskip=161469715) at bt_split.c:196
#1  0x080528b4 in __bt_put (dbp=0x99fd513, key=0xbfffaa00, data=0xbfffa9f8, 
flags=0) at bt_put.c:214
#2  0x0804ce6c in dbop_put (dbop=0x99fd513, name=0x8068dd5 "card", 
    data=0x8719e60 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x806afd6 "5978") at dbop.c:229
#3  0x0804f04c in gtags_put (gtop=0x8067bb0, tag=0x8067340 "chan", 
record=0x80750e0 "chan", fid=0x99baeae "5978") at gtagsop.c:383
#4  0x0804f88c in gtags_add (gtop=0x8067bb0, comline=0x99fd513 <Address 
0x99fd513 out of bounds>, path=0x8067340 "chan", flags=0)
    at gtagsop.c:507
#5  0x0804b7ff in createtags (dbpath=0x0, root=0x99fd513 <Address 0x99fd513 out 
of bounds>, db=2) at gtags.c:1002
#6  0x0804a765 in main (argc=1, argv=0xbffffc28) at gtags.c:635
#7  0x40044657 in __libc_start_main (main=0x8049575 <main>, argc=2, 
ubp_av=0xbffffc24, init=0x8048f60 <_init>, fini=0x805c190 <_fini>, 
    rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbffffc1c) at 
../sysdeps/generic/libc-start.c:129

Redhat 7.2, gcc-3.3, -O2
(gdb) bt
#0  __bt_split (t=0x806c8b8, sp=0x99e5c74, key=0xbfffaa00, data=0xbfffa9f8, 
flags=0, ilen=134662380, argskip=161475987) at bt_split.c:196
#1  0x080536ba in __bt_put (dbp=0x99fed93, key=0xbfffaa00, data=0xbfffa9f8, 
flags=0) at bt_put.c:214
#2  0x0804d489 in dbop_put (dbop=0x99fed93, name=0x806a655 "card", 
    data=0x871b6e0 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x806c856 "5978") at dbop.c:229
#3  0x0804fbb7 in gtags_put (gtop=0x8069430, tag=0x8068bc0 "chan", 
record=0x8076960 "chan", fid=0x99bc72e "5978") at gtagsop.c:383
#4  0x080500ce in gtags_add (gtop=0x8069430, comline=0x8076960 "chan", 
path=0x8068bc0 "chan", flags=0) at gtagsop.c:507
#5  0x0804b9ee in createtags (dbpath=0x0, root=0x0, db=2) at gtags.c:1002
#6  0x0804a028 in main (argc=1, argv=0xbffffc28) at gtags.c:635
#7  0x40044657 in __libc_start_main (main=0x80495f0 <main>, argc=2, 
ubp_av=0xbffffc24, init=0x8048f84 <_init>, fini=0x805d9d0 <_fini>, 
    rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbffffc1c) at 
../sysdeps/generic/libc-start.c:129

Redhat 9, gcc-3.2.2, -O0
(gdb) bt
#0  0x080547d8 in __bt_split (t=0x80d60b0, sp=0x9a53934, key=0xbfff97b8, 
data=0xbfff97b0, flags=0, ilen=2036, argskip=0) at bt_split.c:196
#1  0x080535ba in __bt_put (dbp=0x80d62d8, key=0xbfff97b8, data=0xbfff97b0, 
flags=0) at bt_put.c:214
#2  0x0804c7f2 in dbop_put (dbop=0x80dc690, name=0x80d7fe1 "card", 
    data=0x87893a0 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x80da1e4 "5978") at dbop.c:229
#3  0x0804ef4b in gtags_put (gtop=0x80d6db8, tag=0x80d5f28 "chan", 
record=0x80e4620 "chan", fid=0x9a2a3ee "5978") at gtagsop.c:407
#4  0x0804fa3f in gtags_add (gtop=0x80d6db8, comline=0x80d6098 "gctags -dtr 
%s", path=0x80cfb80 "./drivers/sound/i810_audio.c", flags=0) at gtagsop.c:531
#5  0x0804ad08 in createtags (dbpath=0xbfffc990 "/home/iwamoto/work/3.2.2-O0", 
root=0xbfffb980 "/home/iwamoto/work/linux-2.4.21", db=2) at gtags.c:1084
#6  0x08049970 in main (argc=1, argv=0xbfffebf8) at gtags.c:717
#7  0x080611af in __libc_start_main (main=0x8048318 <main>, argc=2, 
ubp_av=0xbfffebf4, init=0x8061330 <__libc_csu_init>, fini=0x8061384 
<__libc_csu_fini>, 
rtld_fini=0, 
    stack_end=0x9a6ca53) at ../sysdeps/generic/libc-start.c:193

Redhat 9, gcc-3.2.2, -O1
(gdb) bt
#0  __bt_split (t=0x80ce730, sp=0x9a4bfb4, key=0xbfff9920, data=0xbfff9918, 
flags=0, ilen=135063396, argskip=161894611) at bt_split.c:196
#1  0x08050d14 in __bt_put (dbp=0x9a650d3, key=0xbfff9920, data=0xbfff9918, 
flags=0) at bt_put.c:214
#2  0x0804b8b2 in dbop_put (dbop=0x9a650d3, name=0x80d0661 "card", 
    data=0x8781a20 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x80d2864 "5978") at dbop.c:229
#3  0x0804d8c7 in gtags_put (gtop=0x80cf438, tag=0x80ce5a8 "chan", 
record=0x80dcca0 "chan", fid=0x9a22a6e "5978") at gtagsop.c:407
#4  0x0804e057 in gtags_add (gtop=0x80cf438, comline=0x80ce718 "gctags -dtr 
%s", path=0x80ce5a8 "chan", flags=0) at gtagsop.c:531
#5  0x0804a37b in createtags (dbpath=0x0, root=0xbfffbaf0 
"/home/iwamoto/work/linux-2.4.21", db=2) at gtags.c:1084
#6  0x08049437 in main (argc=2, argv=0xbfffed78) at gtags.c:717
#7  0x08059fef in __libc_start_main (main=0x80482cf <main>, argc=2, 
ubp_av=0xbfffed74, init=0x805a170 <__libc_csu_init>, fini=0x805a1c4 
<__libc_csu_fini>, 
rtld_fini=0, 
    stack_end=0x9a650d3) at ../sysdeps/generic/libc-start.c:193

Redhat 9, gcc-3.2.2, -O2
(gdb) bt
#0  __bt_split (t=0x80cf210, sp=0x9a4ca94, key=0xbfff8930, data=0xbfff8928, 
flags=0, ilen=135066180, argskip=161897395) at bt_split.c:196
#1  0x08051433 in __bt_put (dbp=0x9a65bb3, key=0xbfff8930, data=0xbfff8928, 
flags=0) at bt_put.c:214
#2  0x0804bbd1 in dbop_put (dbop=0x9a65bb3, name=0x80d1141 "card", 
    data=0x8782500 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x80d3344 "5978") at dbop.c:229
#3  0x0804df9e in gtags_put (gtop=0x80cff18, tag=0x80cf088 "chan", 
record=0x80dd780 "chan", fid=0x9a2354e "5978") at gtagsop.c:407
#4  0x0804e49c in gtags_add (gtop=0x80cff18, comline=0x80cf088 "chan", 
path=0x80dca00 "\210$∩003", flags=0) at gtagsop.c:531
#5  0x0804a41a in createtags (dbpath=0x0, root=0x0, db=2) at gtags.c:1084
#6  0x08048c27 in main (argc=2, argv=0xbfffdd78) at gtags.c:717
#7  0x0805aa8b in __libc_start_main (main=0x80482d0 <main>, argc=2, 
ubp_av=0xbfffdd74, init=0x805ac0c <__libc_csu_init>, fini=0x805ac60 
<__libc_csu_fini>, 
rtld_fini=0, 
    stack_end=0x9a65bb3) at ../sysdeps/generic/libc-start.c:193

Redhat 9, gcc-3.3, -O0
(gdb) bt
#0  0x08054ed7 in __bt_split (t=0x80d6cd0, sp=0x9a54554, key=0xbfffa128, 
data=0xbfffa120, flags=0, ilen=2036, argskip=0) at bt_split.c:196
#1  0x08053add in __bt_put (dbp=0x80d6ef8, key=0xbfffa128, data=0xbfffa120, 
flags=0) at bt_put.c:214
#2  0x0804c941 in dbop_put (dbop=0x80dd2b0, name=0x80d8c01 "card", 
    data=0x8789fc0 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x80dae04 "5978") at dbop.c:229
#3  0x0804f1f6 in gtags_put (gtop=0x80d79d8, tag=0x80d6b48 "chan", 
record=0x80e5240 "chan", fid=0x9a2b00e "5978") at gtagsop.c:407
#4  0x0804fd42 in gtags_add (gtop=0x80d79d8, comline=0x80d6cb8 "gctags -dtr 
%s", path=0x80d0760 "./drivers/sound/i810_audio.c", flags=0) at gtagsop.c:531
#5  0x0804ade9 in createtags (dbpath=0xbfffd310 "/home/iwamoto/work/3.3-O0", 
root=0xbfffc300 "/home/iwamoto/work/linux-2.4.21", db=2) at gtags.c:1084
#6  0x080499bc in main (argc=1, argv=0xbffff578) at gtags.c:717
#7  0x08061f6f in __libc_start_main (main=0x8048345 <main>, argc=2, 
ubp_av=0xbffff574, init=0x80620f0 <__libc_csu_init>, fini=0x8062144 
<__libc_csu_fini>, 
rtld_fini=0, 
    stack_end=0x9a6d673) at ../sysdeps/generic/libc-start.c:193

Redhat 9, gcc-3.3, -O1
(gdb) bt
#0  __bt_split (t=0x80ce710, sp=0x9a4bf44, key=0xbfff9bb0, data=0xbfff9ba8, 
flags=0, ilen=161828964, argskip=161894499) at bt_split.c:196
#1  0x08051658 in __bt_put (dbp=0x9a65063, key=0xbfff9bb0, data=0xbfff9ba8, 
flags=0) at bt_put.c:214
#2  0x0804bbf8 in dbop_put (dbop=0x9a65063, name=0x80d0641 "card", 
    data=0x87819b0 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x80d2844 "5978") at dbop.c:229
#3  0x0804dde7 in gtags_put (gtop=0x80cf418, tag=0x80ce588 "chan", 
record=0x80dcc30 "chan", fid=0x9a229fe "5978") at gtagsop.c:407
#4  0x0804e627 in gtags_add (gtop=0x80cf418, comline=0x9a65063 <Address 
0x9a65063 out of bounds>, path=0x80ce588 "chan", flags=0) at gtagsop.c:531
#5  0x0804a5ad in createtags (dbpath=0x0, root=0x9a65063 <Address 0x9a65063 out 
of bounds>, db=2) at gtags.c:1084
#6  0x08049511 in main (argc=1, argv=0xbfffeff8) at gtags.c:717
#7  0x0805b12b in __libc_start_main (main=0x804830f <main>, argc=2, 
ubp_av=0xbfffeff4, init=0x805b2ac <__libc_csu_init>, fini=0x805b300 
<__libc_csu_fini>, 
rtld_fini=0, 
    stack_end=0x9a65063) at ../sysdeps/generic/libc-start.c:193

Redhat 9, gcc-3.3, -O2
(gdb) bt
#0  __bt_split (t=0x80d0f30, sp=0x9a4e764, key=0xbfffa4b0, data=0xbfffa4a8, 
flags=0, ilen=135073636, argskip=161904771) at bt_split.c:196
#1  0x0805243a in __bt_put (dbp=0x9a67883, key=0xbfffa4b0, data=0xbfffa4a8, 
flags=0) at bt_put.c:214
#2  0x0804c1c9 in dbop_put (dbop=0x9a67883, name=0x80d2e61 "card", 
    data=0x87841d0 "card 5978 
345,353,490,492,493,498,500,501,506,508,509,514,555,557,561,568,572,577,598,607,618,645,654,661,665,680,682,723,725,771,773,775,812,812,815,817,819,820,820
,822,822,823,823,828,828,831,833,84"..., fid=0x80d5064 "5978") at dbop.c:229
#3  0x0804e937 in gtags_put (gtop=0x80d1c38, tag=0x80d0da8 "chan", 
record=0x80df450 "chan", fid=0x9a2521e "5978") at gtagsop.c:407
#4  0x0804ee4e in gtags_add (gtop=0x80d1c38, comline=0x80df450 "chan", 
path=0x80d0da8 "chan", flags=0) at gtagsop.c:531
#5  0x0804a76e in createtags (dbpath=0x0, root=0x0, db=2) at gtags.c:1084
#6  0x08048d88 in main (argc=1, argv=0xbffff8f8) at gtags.c:717
#7  0x0805c943 in __libc_start_main (main=0x8048350 <main>, argc=2, 
ubp_av=0xbffff8f4, init=0x805cac4 <__libc_csu_init>, fini=0x805cb18 
<__libc_csu_fini>, 
rtld_fini=0, 
    stack_end=0x9a67883) at ../sysdeps/generic/libc-start.c:193




----
Hideki IWAMOTO  address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]