-
Notifications
You must be signed in to change notification settings - Fork 192
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
vg test fails at src/unittest/chunker.cpp:93 #760
Comments
Weird. I can't reproduce here on 16.04 (on fresh build of that vg
version). Which gcc are you using?
…On Thu, Apr 6, 2017 at 12:42 AM, Mike Keehan ***@***.***> wrote:
A fresh build of vg on Ubuntu 14.04
``
***@***.***:/somedir/git/vg$ bin/vg version
v1.5.0-181-gd414713
***@***.***:/somedir/git/vg$ bin/vg test
index file /tmp/vgXXyMzMbO.fai not found, generating...
vg test is a Catch v1.8.2 host application.
Run with -? for options
-------------------------------------------------------------------------------
basic graph chunking
Extract whole graph as chunk
-------------------------------------------------------------------------------
src/unittest/chunker.cpp:93
...............................................................................
src/unittest/chunker.cpp:93: FAILED:
due to a fatal error condition:
SIGSEGV - Segmentation violation signal
===============================================================================
test cases: 80 | 79 passed | 1 failed
assertions: 4358 | 4357 passed | 1 failed
Segmentation fault (core dumped)
``
Here is a gdb output:
``
(gdb) run test
Starting program: /data/seq/mikee0/git/vg/bin/vg test
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
index file /tmp/vgXXmxenxD.fai not found, generating...
Program received signal SIGSEGV, Segmentation fault.
0x000000000069d75c in operator() (id=<optimized out>, __closure=0x7fffffff9150) at src/chunker.cpp:35
35 *g.add_node() = xg->node(id);
(gdb) where
#0 0x000000000069d75c in operator() (id=<optimized out>, __closure=0x7fffffff9150) at src/chunker.cpp:35
#1 std::_Function_handler<void(long int), vg::PathChunker::extract_subgraph(const vg::Region&, int, vg::VG&, vg::Region&)::<lambda(int64_t)> >::_M_invoke(const std::_Any_data &, <unknown type in /data/seq/mikee0/git/vg/bin/vg, CU 0x1ecdd27, DIE 0x1f33e95>) (__functor=..., __args#0=<unknown type in /data/seq/mikee0/git/vg/bin/vg, CU 0x1ecdd27, DIE 0x1f33e95>) at /usr/include/c++/6/functional:1740
#2 0x0000000000a745f5 in operator() (__args#0=<optimized out>, this=0x7fffffff9150) at /usr/include/c++/4.8/functional:2471
#3 xg::XG::for_path_range(std::string const&, long, long, std::function<void (long)>, bool) const (this=<optimized out>, name=..., start=<optimized out>, ***@***.***=0, stop=<optimized out>, lambda=...,
***@***.***=false) at deps/xg/src/xg.cpp:2005
#4 0x000000000069d3ec in vg::PathChunker::extract_subgraph ***@***.***=0x7fffffff9270, region=..., ***@***.***=1, subgraph=..., out_region=...) at src/chunker.cpp:36
#5 0x000000000081f21c in vg::unittest::____C_A_T_C_H____T_E_S_T____14 () at src/unittest/chunker.cpp:99
#6 0x00000000006cebb3 in invoke (this=<optimized out>) at src/unittest/catch.hpp:7159
#7 invoke (this=<optimized out>) at src/unittest/catch.hpp:8121
#8 invokeActiveTestCase (this=0x7fffffffc730) at src/unittest/catch.hpp:6740
#9 runCurrentTest (redirectedCerr=..., redirectedCout=..., this=0x7fffffffc730) at src/unittest/catch.hpp:6711
#10 runTest (testCase=..., this=0x7fffffffc730) at src/unittest/catch.hpp:6530
#11 Catch::runTests (config=...) at src/unittest/catch.hpp:6879
#12 0x00000000006d0b5f in run (this=0x7fffffffcc60) at src/unittest/catch.hpp:6987
#13 vg::unittest::run_unit_tests ***@***.***=2, ***@***.***=0x7fffffffcec8) at src/unittest/driver.cpp:41
#14 0x0000000000407750 in main_test (argv=0x7fffffffcec8, argc=2) at src/main.cpp:6839
#15 main (argc=2, argv=0x7fffffffcec8) at src/main.cpp:6958
(gdb) quit
``
I hope it helps.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#760>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA2_7uctTRPxUlJtOjS1oig_96e3DbSlks5rtG1LgaJpZM4M1HH0>
.
|
I'm seeing c++/4.8 in your stack trace. vg normally requires gcc version
= 4.9. I'm actually surprised that's the only problem you got.
On Thu, Apr 6, 2017 at 10:20 AM, Glenn Hickey <glenn.hickey@gmail.com>
wrote:
… Weird. I can't reproduce here on 16.04 (on fresh build of that vg
version). Which gcc are you using?
On Thu, Apr 6, 2017 at 12:42 AM, Mike Keehan ***@***.***>
wrote:
> A fresh build of vg on Ubuntu 14.04
> ``
> ***@***.***:/somedir/git/vg$ bin/vg version
> v1.5.0-181-gd414713
> ***@***.***:/somedir/git/vg$ bin/vg test
> index file /tmp/vgXXyMzMbO.fai not found, generating...
>
> vg test is a Catch v1.8.2 host application.
> Run with -? for options
>
> -------------------------------------------------------------------------------
> basic graph chunking
> Extract whole graph as chunk
> -------------------------------------------------------------------------------
> src/unittest/chunker.cpp:93
> ...............................................................................
>
> src/unittest/chunker.cpp:93: FAILED:
> due to a fatal error condition:
> SIGSEGV - Segmentation violation signal
>
> ===============================================================================
> test cases: 80 | 79 passed | 1 failed
> assertions: 4358 | 4357 passed | 1 failed
>
> Segmentation fault (core dumped)
> ``
> Here is a gdb output:
> ``
> (gdb) run test
> Starting program: /data/seq/mikee0/git/vg/bin/vg test
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> index file /tmp/vgXXmxenxD.fai not found, generating...
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x000000000069d75c in operator() (id=<optimized out>, __closure=0x7fffffff9150) at src/chunker.cpp:35
> 35 *g.add_node() = xg->node(id);
> (gdb) where
> #0 0x000000000069d75c in operator() (id=<optimized out>, __closure=0x7fffffff9150) at src/chunker.cpp:35
> #1 std::_Function_handler<void(long int), vg::PathChunker::extract_subgraph(const vg::Region&, int, vg::VG&, vg::Region&)::<lambda(int64_t)> >::_M_invoke(const std::_Any_data &, <unknown type in /data/seq/mikee0/git/vg/bin/vg, CU 0x1ecdd27, DIE 0x1f33e95>) (__functor=..., __args#0=<unknown type in /data/seq/mikee0/git/vg/bin/vg, CU 0x1ecdd27, DIE 0x1f33e95>) at /usr/include/c++/6/functional:1740
> #2 0x0000000000a745f5 in operator() (__args#0=<optimized out>, this=0x7fffffff9150) at /usr/include/c++/4.8/functional:2471
> #3 xg::XG::for_path_range(std::string const&, long, long, std::function<void (long)>, bool) const (this=<optimized out>, name=..., start=<optimized out>, ***@***.***=0, stop=<optimized out>, lambda=...,
> ***@***.***=false) at deps/xg/src/xg.cpp:2005
> #4 0x000000000069d3ec in vg::PathChunker::extract_subgraph ***@***.***=0x7fffffff9270, region=..., ***@***.***=1, subgraph=..., out_region=...) at src/chunker.cpp:36
> #5 0x000000000081f21c in vg::unittest::____C_A_T_C_H____T_E_S_T____14 () at src/unittest/chunker.cpp:99
> #6 0x00000000006cebb3 in invoke (this=<optimized out>) at src/unittest/catch.hpp:7159
> #7 invoke (this=<optimized out>) at src/unittest/catch.hpp:8121
> #8 invokeActiveTestCase (this=0x7fffffffc730) at src/unittest/catch.hpp:6740
> #9 runCurrentTest (redirectedCerr=..., redirectedCout=..., this=0x7fffffffc730) at src/unittest/catch.hpp:6711
> #10 runTest (testCase=..., this=0x7fffffffc730) at src/unittest/catch.hpp:6530
> #11 Catch::runTests (config=...) at src/unittest/catch.hpp:6879
> #12 0x00000000006d0b5f in run (this=0x7fffffffcc60) at src/unittest/catch.hpp:6987
> #13 vg::unittest::run_unit_tests ***@***.***=2, ***@***.***=0x7fffffffcec8) at src/unittest/driver.cpp:41
> #14 0x0000000000407750 in main_test (argv=0x7fffffffcec8, argc=2) at src/main.cpp:6839
> #15 main (argc=2, argv=0x7fffffffcec8) at src/main.cpp:6958
> (gdb) quit
> ``
> I hope it helps.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#760>, or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AA2_7uctTRPxUlJtOjS1oig_96e3DbSlks5rtG1LgaJpZM4M1HH0>
> .
>
|
Hi Glenn The OS is ubuntu 14.04 so default g++ is 4.8.5 export CXX=g++-6 During the compile I noticed a warning about static linking against runtime libraries. |
It might be that g++-6 is picking up the standard library from an older compiler, somehow/ See this line where it talks about 4.8:
I think your compiler and libraries are out of sync. I'm going to close this and blame it on that. Please re-open it if it turns out that that's not the problem. |
A fresh build of vg on Ubuntu 14.04
``
someone@someserver:/somedir/git/vg$ bin/vg version
v1.5.0-181-gd414713
someone@someserver:/somedir/git/vg$ bin/vg test
index file /tmp/vgXXyMzMbO.fai not found, generating...
The text was updated successfully, but these errors were encountered: