Skip to content

Segfault at instance creation #755

Closed Answered by Florisheinen1
Florisheinen1 asked this question in Q&A
Discussion options

You must be logged in to vote

Running valgrind with the --num-calls=50 instead of the default 12 got me a longer stack trace, resulting in the following output: valgrind-memcheck_v18.txt

I accidentally found out that an older version of valgrind has a bug in which stack traces are incorrectly shown which is solved in newer versions. I then saw I was indeed using an older version (version 3.18), so I updated the valgrind to 3.20. The funny thing is that suddenly valgrind did not find a segfault anymore!

I am wondering whether the initial memcheck contained a false positive, or if the newer version does not catch the error. I do know my original code, not the minimum reproducible code I've provided here, does in fact ha…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Florisheinen1
Comment options

Answer selected by MarijnS95
@MarijnS95
Comment options

@Florisheinen1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants