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: Shigio Yamaguchi
Subject: Re: [BUG REPORT] gtags segmentation fault
Date: Thu, 19 Jun 2003 12:03:02 +0900

> I reported the result on Redhat9 till yesterday. 
> When I tried on Redhat7.2 today, gtags aborted in the same place.
> 
> Would you try within the Linux compatible mode on FreeBSD?

Hi,
I finally set up a linux machine (RedHat 8.0), and was able to reproduced
the bug.

I believe it is a db(3)'s bug that has been hidden. But why the trouble
occurs in GNU/Linux, but doesn't occur in FreeBSD?
Examining the difference of two system, it was found that
the default page size were different each other.
The page size is 4096 in GNU/Linux and is 8192 in FreeBSD.

Would you please reexecute gtags with the following modification?
It works in my environment.

Index: dbop.c
===================================================================
RCS file: /cvsroot/global/global/libutil/dbop.c,v
retrieving revision 1.14
diff -c -r1.14 dbop.c
*** dbop.c      29 Mar 2003 04:55:58 -0000      1.14
--- dbop.c      19 Jun 2003 01:24:26 -0000
***************
*** 131,136 ****
--- 131,137 ----
        memset(&info, 0, sizeof(info));
        if (flags & DBOP_DUP)
                info.flags |= R_DUP;
+       info.psize = 8192;
        /*
         * accept user's request but needs 0.5MB at least.
         */

If it works in your environment too, how about seeing the appearance
after applying above modification?
Of course, it is not the solution of the problem. But since we have
not noticed the trouble for a long time up to now, it is worthy enough
to put off the problem.
I will fix the bug when there is time a little more.
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
Spare mail address: <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

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