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

[Segfault] when binding var<vector<type *>> to class member of the same type #71

Open
forflo opened this issue Aug 24, 2016 · 1 comment

Comments

@forflo
Copy link

forflo commented Aug 24, 2016

Env: clang++ with clang++ --version:

clang version 3.8.0 (tags/RELEASE_380/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/sbin

Description

This code produces the error

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6121d54 in __memmove_ssse3_back () from /usr/lib/libc.so.6

at this line. As you can see params is an instance of the var template which I'm trying to fill with a copy of the member argv_ of the ExpFunc object. The type of argv is vector<Expression*> and argv_ is stored as non-pointer, non-reference in ExpFunc. params was instanciated as follows:

var<vector<Expresson *>> params;

You can find the whole test here. I deleted most of the other unit tests and the respective include files in order to make sure that the error arises from a use of Mach7.

@solodon4
Copy link
Owner

Hi Florian,
Your code still contains parts of your library, which makes it harder for me to reproduce it locally. Would it be possible for you to extract a repro from your example that depends only on Mach7 and perhaps some standard libraries? Thank 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

2 participants