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

执行./coverage_build.sh 提示 node_seek: Assertion `len == _block_size' failed. #10

Closed
LiDing0611 opened this issue Jul 22, 2019 · 21 comments

Comments

@LiDing0611
Copy link

您好 前辈 执行./coverage_build.sh 时有如下错误
please wait about 10 seconds for test case generation...
-- The C compiler identification is GNU 4.3.4
-- The CXX compiler identification is GNU 4.3.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/liding/coding/bplustree-disk-io/build
Scanning dependencies of target bplustree_coverage
[ 50%] Building C object tests/CMakeFiles/bplustree_coverage.dir/__/lib/bplustree.c.o
/home/liding/coding/bplustree-disk-io/lib/bplustree.c: In function ‘node_fetch’:
/home/liding/coding/bplustree-disk-io/lib/bplustree.c:128: warning: implicit declaration of function ‘pread’
/home/liding/coding/bplustree-disk-io/lib/bplustree.c: In function ‘node_flush’:
/home/liding/coding/bplustree-disk-io/lib/bplustree.c:154: warning: implicit declaration of function ‘pwrite’
[100%] Building C object tests/CMakeFiles/bplustree_coverage.dir/bplustree_coverage.c.o
Linking C executable ../bin/bplustree_coverage
[100%] Built target bplustree_coverage
Scanning dependencies of target coverage
Deleting all .da files in . and subdirectories
Done.
config node order:39 and leaf entries:39
bplustree_coverage: /home/liding/coding/bplustree-disk-io/lib/bplustree.c:144: node_seek: Assertion `len == _block_size' failed.
make[3]: *** [tests/CMakeFiles/coverage] Aborted
make[2]: *** [tests/CMakeFiles/coverage.dir/all] Error 2
make[1]: *** [tests/CMakeFiles/coverage.dir/rule] Erro

@begeekmyfriend
Copy link
Owner

Note: You need to delete the existing /tmp/coverage.index first for this testing!

@LiDing0611
Copy link
Author

Note: You need to delete the existing /tmp/coverage.index first for this testing!
我执行了删除/tmp/coverage.index的命令 还是不可以 一样的错误
执行./demo_build.sh都是没问题的

@begeekmyfriend
Copy link
Owner

你的机器是什么配置?32-bit等

@LiDing0611
Copy link
Author

是64的

@begeekmyfriend
Copy link
Owner

没法复现,打印一下len_block_size分别多少

@LiDing0611
Copy link
Author

好的 我试下 或者换个环境吧 多谢多谢

@begeekmyfriend
Copy link
Owner

begeekmyfriend commented Jul 22, 2019

我在Ubuntu 16.04上很好地执行,你是否改了源代码?
image

@LiDing0611
Copy link
Author

我的机器是SUSE Linux 看你这个代码比较精简 有在这个基础上加Anti-Caching的想法

@begeekmyfriend
Copy link
Owner

begeekmyfriend commented Jul 22, 2019

Then there are bugs in your modification absolutely.

@LiDing0611
Copy link
Author

我还没开始加东西啊 就是执行你的这个代码 找了一下午没找出原因 会不会SUSE环境的影响吧 我刚试了下redhat 是ok的

@begeekmyfriend
Copy link
Owner

打印一下len_block_size吧,这里可是用的系统调用pread,搞不定SUSE系统有bug呢

@LiDing0611
Copy link
Author

嗯嗯 我找到原因了 我这个/tmp下还有一个coverage.index.boot文件 需要把这个也删掉才可以运行 还有一个小问题 你那个测试性能读写时间的结果是保存在了哪个文件里

@begeekmyfriend
Copy link
Owner

我不记得有测试性能读写时间的benchmark

@LiDing0611
Copy link
Author

https://www.jianshu.com/p/a8d3432f3840 我看这个里有 没有的话我自己加一个

@begeekmyfriend
Copy link
Owner

没想到我的项目都有人改写并写成博客了,行,你自己加吧

@LiDing0611
Copy link
Author

哈哈 点个赞 因为写的很棒

@begeekmyfriend
Copy link
Owner

我怀疑他这是内存版本,不然怎么会快400倍……

@begeekmyfriend
Copy link
Owner

哦,看错了,他之前是链表版本

@LiDing0611
Copy link
Author

我还一直以为这个blog也是你更新的

@begeekmyfriend
Copy link
Owner

我会为了一个repo去写blog,还系列?

1 similar comment
@begeekmyfriend
Copy link
Owner

我会为了一个repo去写blog,还系列?

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

2 participants