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: Sat, 14 Jun 2003 17:27:26 +0900

On Sat, 14 Jun 2003 16:16:45 +0900, Hideki IWAMOTO wrote...
> While gtags processes the source code of linux-2.4.21, segmentation fault 
> occurs.
> When global-4.5.2 are used, this does not happen.
> 
> --------------+------------------------------
>               |     version of global
>   source code | 4.5.2     4.5.3    cvs HEAD
> --------------+------------------------------
>  linux-2.4.20 |   OK        OK        OK
>  linux-2.4.21 |   OK        NG        NG
> --------------+------------------------------
> 
> I am going to investigate in detail from now.
> 

Though regrettable, since I do not understand the source code of db, I cannot 
understand what has happened.


(gdb) bt
#0  0x08079493 in memmove ()
#1  0x08053e67 in bt_psplit (t=0x80cf738, h=0x9a53e54, l=0xa13f9f8, 
r=0xa13e9f4, pskip=0xbfff88b6, ilen=36) at bt_split.c:694
#2  0x080539ec in bt_page (t=0x80cf738, h=0x9a53e54, lp=0xbfff88ac, 
rp=0xbfff88b0, skip=0xbfff88b6, ilen=169096728) at bt_split.c:428
#3  0x080531ed in __bt_split (t=0x80cf738, sp=0x9a53e54, key=0xbfff8980, 
data=0xa13e9f4, flags=0, ilen=3955479520, argskip=169096728) at bt_split.c:115
#4  0x0805243a in __bt_put (dbp=0xa143618, key=0xbfff8980, data=0xbfff8978, 
flags=0) at bt_put.c:214
#5  0x0804c1c9 in dbop_put (dbop=0xa143618, name=0x80d15e1 "card_ids", 
data=0x87817c0 "card_ids 6819 330", fid=0x80d37e4 "6819") at dbop.c:229
#6  0x0804e937 in gtags_put (gtop=0x80d03b8, tag=0x80cf5b0 "command", 
record=0x825b518 "command", fid=0xa13155d "6819") at gtagsop.c:407
#7  0x0804ee4e in gtags_add (gtop=0x80d03b8, comline=0x825b518 "command", 
path=0x80cf5b0 "command", flags=0) at gtagsop.c:531
#8  0x0804a76e in createtags (dbpath=0x0, root=0x0, db=2) at gtags.c:1084
#9  0x08048d88 in main (argc=1, argv=0xbfffddc8) at gtags.c:717
#10 0x0805c90b in __libc_start_main ()

(gdb) up
(gdb) info locals 
c = (CURSOR *) 0xebc3d3e0
rval = (PAGE *) 0xa13d9d4
src = (void *) 0x9a54ad4
full = 4076
half = 2038
nxt = 1
off = 0
skip = 4
top = 77
used = 0
nbytes = 3955479520
bigkeycnt = 0
isbigkey = 0
(gdb) p (char*)h+h->linp[0]
$33 = 0x9a54ad4 "or_ready 4627 102,361"
(gdb) p (BLEAF*)((char*)h+h->linp[0])
$34 = (struct _bleaf *) 0x9a54ad4
(gdb) p *(BLEAF*)((char*)h+h->linp[0])
$35 = {ksize = 1918857839, dsize = 2036621669, flags = 32 ' ', bytes = "4"}

----
Hideki IWAMOTO  address@hidden





reply via email to

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