Menu

#4 segfault

open
None
5
2002-09-06
2002-09-06
No

Hi,

I get a segfault from the report executable, when I try
to run it:

$ bin/report
Segmentation fault

the stack trace from gdb is:

(gdb) bt
#0 0x42080c53 in strlen () from /lib/i686/libc.so.6
#1 0x42080a21 in strdup () from /lib/i686/libc.so.6
#2 0x080488b0 in main (argc=1, argv=0xbffff874) at
report.c:58
#3 0x42017589 in __libc_start_main () from
/lib/i686/libc.so.6

I'm using RedHat Linux 7.3

Discussion

  • Joel Crisp

    Joel Crisp - 2002-09-06
    • assigned_to: nobody --> cydergoth
     
  • Joel Crisp

    Joel Crisp - 2002-09-06

    Logged In: YES
    user_id=95506

    Hi

    Can you let me know the JVM version, the compiler version
    you used, and the version of the DB library which you are
    connecting to?
    I assume that you are on an X86 machine

     
  • Ákos Maróy

    Ákos Maróy - 2002-09-06

    Logged In: YES
    user_id=96773

    sure:

    $ java -version
    java version "1.4.0_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build
    1.4.0_01-b03)
    Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode)

    $ gcc --version
    2.96

    $ rpm -q db
    db-4.0.14-0.1

    and yes, this is an x86 machine

     
  • Joel Crisp

    Joel Crisp - 2002-09-07

    Logged In: YES
    user_id=95506

    I'll look into it.
    Does this happen all the time or just occasionally?

     
  • Ákos Maróy

    Ákos Maróy - 2002-09-07

    Logged In: YES
    user_id=96773

    For the test included in the downloadable archive, it
    doesn't happen.

    For a java project of mine, it happens always.

     
  • Joel Crisp

    Joel Crisp - 2002-09-07

    Logged In: YES
    user_id=95506

    Hmm. Looks like a db problem. Can you try with db3 instead?
    Also, check that you don't have a db file existing before
    you do the run
    The DB test program should dump the DB keys in raw format
    My version of DB is 3.2.9-4
    I would also suggest trying the latest version from CVS just
    in case...

     
  • Ákos Maróy

    Ákos Maróy - 2002-09-12

    Logged In: YES
    user_id=96773

    I have all versions of db (e.g. 1, 2, 3 & 4) installed:

    # ls /usr/lib/libdb*
    /usr/lib/libdb1.a
    /usr/lib/libdb1.so
    /usr/lib/libdb1.so.2
    /usr/lib/libdb2.a
    /usr/lib/libdb2.so
    /usr/lib/libdb2.so.3
    /usr/lib/libdb-4.0.a
    /usr/lib/libdb-4.0.la
    /usr/lib/libdb-4.0.so
    /usr/lib/libdb_cxx-3.3.so
    /usr/lib/libdb_cxx-4.0.a
    /usr/lib/libdb_cxx-4.0.la
    /usr/lib/libdb_cxx-4.0.so
    /usr/lib/libdb_cxx.so
    /usr/lib/libdb.so.2
    /usr/lib/libdb.so.3

    How can I specify at compilation which db library to use?
    (I wouldn't want to uninstall db 4 because of dependencies...)

     
  • Joel Crisp

    Joel Crisp - 2002-09-12

    Logged In: YES
    user_id=95506

    Hi

    You can switch the DB library by explicity naming it in the link
    line (in the Makefile) and modifying the include line to import
    the explicit version.

    I'm also a bit concerned about the fact that the test program
    works ok - this implies that DB compatibilty may not be the
    real issue. How big is your db file ? Could you compress and
    send it to me ?

    Cydergoth

     

Log in to post a comment.

MongoDB Logo MongoDB