Skip to content
This repository was archived by the owner on Aug 9, 2018. It is now read-only.
This repository was archived by the owner on Aug 9, 2018. It is now read-only.

segmentation fault on latest version #26

Description

@xuyin224

Hi,

We met segmentation fault again with the latest beansdb version. All the data is generated by the new version. This crash happens on beansdb that we are deleting old data (if we never delete data, it will not crash)

some possible error log output in the beansdb-error.log:

2015-09-07 07:07:30.302819 ERROR (0x1346c700:record.c:184) - invalid ksz=0, vsz=0, wbuf @891486464, key = (-896948590465773564)
2015-09-07 07:07:30.302990 ERROR (0x1346c700:record.c:380) - read file fail, /data/running/beansdb/storage/f/1/043.data @891486464, file size = 654926336, key = -896948590465773564
2015-09-07 07:07:30.303022 ERROR (0x1346c700:bitcask.c:1099) - Bug: get -896948590465773564 failed in /data/running/beansdb/storage/f/1/043.data @ 891486464

And the gdb info

(gdb) bt
#0 decode_record (buf=0x7fd4ef3a7f40 Address 0x7fd4ef3a7f40 out of bounds,

size=4043926784, decomp=true, path=0x42b242 "wbuf", pos=884000768,
key=0x7fd3c434a864 "5335789194110384689", do_logging=true, fail_reason=0x0)
at record.c:180

#1 0x0000000000413cc9 in bc_get (bc=0x18a7b80,

key=0x7fd3c434a864 "5335789194110384689", ret_pos=<value optimized out>,
return_deleted=<value optimized out>) at bitcask.c:1006

#2 0x00000000004179f0 in hs_get (store=0x11d1570,

key=0x7fd3c434a864 "5335789194110384689", vlen=0x7fd51526e51c,
flag=0x7fd51526e518) at hstore.c:397

#3 0x00000000004084ea in item_get (key=0x7fd3c434a864 "5335789194110384689",

nkey=19) at item.c:221

#4 0x0000000000405fc3 in process_get_command (c=0x7fd4983b4ce0,

command=<value optimized out>) at beansdb.c:918

#5 process_command (c=0x7fd4983b4ce0, command=)

at beansdb.c:1214

#6 0x00000000004073e4 in try_read_command (c=0x7fd4983b4ce0) at beansdb.c:1362
#7 drive_machine (c=0x7fd4983b4ce0) at beansdb.c:1590
#8 0x0000000000408b42 in worker_main (arg=)

at thread.c:218

#9 0x00000033a08079d1 in start_thread () from /lib64/libpthread.so.0
#10 0x00000033a00e88fd in clone () from /lib64/libc.so.6

Hope to get your response soon:)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions