Skip to content

segmentation fault #10

@kelark

Description

@kelark

When I try to run a few tests in the sample directory in upscaledb with a litl script, I get a segment error, but I have no problem running the leveldb db_bench benchmark. How do I fix this problem? Please note that I did not make any code changes while testing.

Errors are as follows:
node1:~/lym/upscaledb$ /home/hpc/litl_ori/litl/libmcs_spinlock.sh ./samples/db1
/home/hpc/litl_ori/litl/libmcs_spinlock.sh: line 33: 151635 Segmentation fault (core dumped)LD_PRELOAD=$LD_PRELOAD:$BASE/lib/libmcs_spinlock.so "$@"
and i use gdb find that:
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00007ff5717e7a20 in mcs_mutex_create (attr=attr@entry=0x0) at mcs.c:70
#2 0x00007ff5717e6d5f in ht_lock_create (attr=0x0, mutex=0x560a976f2000) at interpose.c:141
#3 pthread_mutex_init (mutex=0x560a976f2000, attr=0x0) at interpose.c:423
#4 0x00007ff56ee40ac8 in google::protobuf::DescriptorPool::DescriptorPool(google::protobuf::DescriptorDatabase*, google::protobuf::DescriptorPool::ErrorCollector*) () from /usr/lib/x86_64-linux-gnu/libprotobuf.so.10
#5 0x00007ff56ee40ba0 in ?? () from /usr/lib/x86_64-linux-gnu/libprotobuf.so.10
#6 0x00007ff56ee0b73a in google::protobuf::GoogleOnceInitImpl(long*, google::protobuf::Closure*) () from /usr/lib/x86_64-linux-gnu/libprotobuf.so.10
#7 0x00007ff56ee386df in google::protobuf::DescriptorPool::InternalAddGeneratedFile(void const*, int) ()
from /usr/lib/x86_64-linux-gnu/libprotobuf.so.10
#8 0x00007ff56ee2f914 in google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fany_2eproto() () from /usr/lib/x86_64-linux-gnu/libprotobuf.so.10
#9 0x00007ff5719ff8d3 in call_init (env=0x7ffd9fa2a358, argv=0x7ffd9fa2a348, argc=1, l=) at dl-init.c:72
#10 _dl_init (main_map=0x7ff571c1a170, argc=1, argv=0x7ffd9fa2a348, env=0x7ffd9fa2a358) at dl-init.c:119
#11 0x00007ff5719f00ca in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#12 0x0000000000000001 in ?? ()
#13 0x00007ffd9fa2b372 in ?? ()
---Type to continue, or q to quit---
it seems that a segment error occurred while calling real_pthread_init in the mcs_mutex_create function ,how should i fix this problem?

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