Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

segmentation fault... #6

Closed
halida opened this issue Oct 9, 2011 · 7 comments
Closed

segmentation fault... #6

halida opened this issue Oct 9, 2011 · 7 comments

Comments

@halida
Copy link

halida commented Oct 9, 2011

./nessdb_bench add        
Keys:       20 bytes each
Values:     100 bytes each
Entries:    1000000
IndexSize:  64.8 MB (estimated)
DataSize:   103.0 MB (estimated)
BG SYNC:    on...
--------------------------------------------------------------------------------------------------------------
nessDB:     version 1.7(Multiple && Distributable B+Tree with Level-LRU,Background IO Sync)
Date:       Sun Oct  9 09:30:51 2011
CPU:        2 *  AMD Athlon(tm) II X2 250 Processor
CPUCache:   1024 KB

zsh: segmentation fault  ./nessdb_bench add  
@BohuTANG
Copy link
Owner

BohuTANG commented Oct 9, 2011

enn,There will be a core dump when occurs "segmentation fault",with the "gdb ./nessdb_bench --core=./core",and "bt", the stack information is?

@BohuTANG
Copy link
Owner

BohuTANG commented Oct 9, 2011

Before that you should execute "ulimit -c unlimited" command from the terminal .

@halida
Copy link
Author

halida commented Oct 9, 2011

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff79bff53 in pthread_join () from /lib/libpthread.so.0

@halida
Copy link
Author

halida commented Oct 9, 2011

#0  0x00007f10a5b62f53 in pthread_join () from /lib/libpthread.so.0
#1  0x00000000004024c9 in bgsync_init () at db.c:85
#2  0x0000000000402768 in db_init (bufferpool_size=1073741824, isbgsync=1, sum=0x7fff635a95b8) at db.c:130
#3  0x0000000000401980 in db_init_test (show=0) at nessdb_bench.c:148
#4  0x0000000000402310 in main (argc=2, argv=0x7fff635a96d8) at nessdb_bench.c:331

@BohuTANG
Copy link
Owner

BohuTANG commented Oct 9, 2011

Try modify "#define BGSYNC (1)" to "#define BGSYNC (0)" in nessdb_bench.c source file.This means the background io flush thread is closed.

@halida
Copy link
Author

halida commented Oct 9, 2011

and it works. keep it in mind that bug still exists for BGSYNC.
anyway, after I can run the test, I can start to learn nessDB now.

@BohuTANG
Copy link
Owner

BohuTANG commented Oct 9, 2011

HI, I had removed "pthread_join" just now,and pushed it to github.Perhaps for this reason,not sure now,glad to enjoy it!
Thanks.

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

No branches or pull requests

2 participants