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 #4

Open
xxsong5 opened this issue Apr 1, 2017 · 5 comments
Open

Segmentation fault #4

xxsong5 opened this issue Apr 1, 2017 · 5 comments

Comments

@xxsong5
Copy link

xxsong5 commented Apr 1, 2017

the flowing is gdb's information:

Program terminated with signal SIGSEGV, Segmentation fault.
#0 __GI___libc_free (mem=0x71) at malloc.c:2929
2929 malloc.c: No such file or directory.

(gdb) bt
#0 __GI___libc_free (mem=0x71) at malloc.c:2929
#1 0x00007fc6ce54e887 in g2o::EdgeProjectP2MC_Intrinsics::~EdgeProjectP2MC_Intrinsics() () from /home/xxsong5/catkin_ws/src/rgbdtam-master/ThirdParty/g2o/lib/libg2o_types_sba.so
#2 0x00007fc6ce9d5374 in g2o::Factory::registerType(std::string const&, g2o::AbstractHyperGraphElementCreator*) () from /home/xxsong5/catkin_ws/src/rgbdtam-master/ThirdParty/g2o/lib/libg2o_core.so
#3 0x00007fc6ce5457b7 in _GLOBAL__sub_I_types_sba.cpp () from /home/xxsong5/catkin_ws/src/rgbdtam-master/ThirdParty/g2o/lib/libg2o_types_sba.so
#4 0x00007fc6d2ee010a in call_init (l=, argc=argc@entry=1, argv=argv@entry=0x7fff08e3dc88, env=env@entry=0x7fff08e3dc98) at dl-init.c:78
#5 0x00007fc6d2ee01f3 in call_init (env=, argv=, argc=, l=) at dl-init.c:36
#6 _dl_init (main_map=0x7fc6d30f41c8, argc=1, argv=0x7fff08e3dc88, env=0x7fff08e3dc98) at dl-init.c:126
#7 0x00007fc6d2ed130a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#8 0x0000000000000001 in ?? ()
#9 0x00007fff08e3efcc in ?? ()
#10 0x0000000000000000 in ?? ()

@xxsong5
Copy link
Author

xxsong5 commented Apr 1, 2017

yes ! if use eigen3.2.10 this problem can be solved.

@thesidjway
Copy link

Thank you @xxsong5

@thesidjway
Copy link

(gdb) r
Starting program: /home/thesidjway/cmurasl_ws/devel/lib/rgbdtam/rgbdtam
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffcd017700 (LWP 9853)]
*** Error in `/home/thesidjway/cmurasl_ws/devel/lib/rgbdtam/rgbdtam': double free or corruption (out): 0x00000000007b0d60 ***

Program received signal SIGABRT, Aborted.
0x00007ffff2543c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) where
#0 0x00007ffff2543c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff2547028 in __GI_abort () at abort.c:89
#2 0x00007ffff25802a4 in __libc_message (do_abort=do_abort@entry=1,
fmt=fmt@entry=0x7ffff268e6b0 "*** Error in `%s': %s: 0x%s **\n") at ../sysdeps/posix/libc_fatal.c:175
#3 0x00007ffff258c55e in malloc_printerr (ptr=,
str=0x7ffff268e7e0 "double free or corruption (out)", action=1) at malloc.c:4996
#4 _int_free (av=, p=, have_lock=0) at malloc.c:3840
#5 0x00007ffff47736e3 in g2o::EdgeProjectP2MC_Intrinsics::~EdgeProjectP2MC_Intrinsics() ()
from /home/thesidjway/cmurasl_ws/src/rgbdtam/ThirdParty/g2o/lib/libg2o_types_sba.so
#6 0x00007ffff4bf92b4 in g2o::Factory::registerType(std::string const&, g2o::AbstractHyperGraphElementCreator
) () from /home/thesidjway/cmurasl_ws/src/rgbdtam/ThirdParty/g2o/lib/libg2o_core.so
#7 0x00007ffff476b2d8 in _GLOBAL__sub_I_types_sba.cpp ()
from /home/thesidjway/cmurasl_ws/src/rgbdtam/ThirdParty/g2o/lib/libg2o_types_sba.so
#8 0x00007ffff7dea10a in call_init (l=, argc=argc@entry=1, argv=argv@entry=0x7fffffffd308,
env=env@entry=0x7fffffffd318) at dl-init.c:78
#9 0x00007ffff7dea1f3 in call_init (env=, argv=, argc=,
l=) at dl-init.c:36
#10 _dl_init (main_map=0x7ffff7ffe1c8, argc=1, argv=0x7fffffffd308, env=0x7fffffffd318) at dl-init.c:126
#11 0x00007ffff7ddb30a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#12 0x0000000000000001 in ?? ()
#13 0x00007fffffffd70b in ?? ()
#14 0x0000000000000000 in ?? ()
(gdb)

Hey @xxsong5 @alejocb Eigen 3.2.10 didn't help me out. Any suggestions?

@rnunziata
Copy link

rnunziata commented Sep 4, 2017

recompiled with Eigen 3.3.90 and now it just segfaults no output or log at all

@simonprovost
Copy link

@thesidjway Did you find any solutions ? I have the same problem as you.

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

4 participants