Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segmentation fault #10

Open
kelark opened this issue Jun 26, 2023 · 0 comments
Open

segmentation fault #10

kelark opened this issue Jun 26, 2023 · 0 comments

Comments

@kelark
Copy link

kelark commented Jun 26, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant