aantron / better-enums

C++ compile-time enum to string, iteration, in a single header file
http://aantron.github.io/better-enums
BSD 2-Clause "Simplified" License
1.67k stars 173 forks source link

Use with valgrind - Illegal Instruction core dumped #68

Closed nayefc closed 6 years ago

nayefc commented 6 years ago

I am trying to run a simple program that uses BETTER_ENUMS with valgrind but valgrind seems to crash at the BETTER_ENUMS declaration with Illegal Instruction core dumped. Has anyone seen this?

The instruction valgrind complains about:

==11058== valgrind: Unrecognised instruction at address 0x40f4e2.
==11058==    at 0x40F4E2: _Vector_impl (stl_vector.h:93)
==11058==    by 0x40F4E2: _Vector_base (stl_vector.h:130)
==11058==    by 0x40F4E2: vector (stl_vector.h:385)
==11058==    by 0x40F4E2: __static_initialization_and_destruction_0 (MyEnums.h:37)
==11058==    by 0x40F4E2: _GLOBAL__sub_I_main (main.cc:45)
==11058==    by 0x4D9D5C: __libc_csu_init (in /home/ubuntu/my_binary
==11058==    by 0x63647BE: (below main) (libc-start.c:247)
=

Any ideas what it could be?

aantron commented 6 years ago

Heya, is it correct to say this was fixed?

nayefc commented 6 years ago

Nope but I actually am not sure the instruction was generated from BETTER ENUM anymore.

On Mon, 29 Oct 2018 at 02:13 Anton Bachin notifications@github.com wrote:

Heya, is it correct to say this was fixed?

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/aantron/better-enums/issues/68#issuecomment-433798740, or mute the thread https://github.com/notifications/unsubscribe-auth/ABSbEs5Z6OSwySn__RD-KDgLIlfJjZCjks5uppyEgaJpZM4X-A__ .