Hello everyone, new user here from Montréal, Canada.
I'm getting a weird FPE crash in what looks like a string-conversion function in wxWidgets, whenever i link my executable with wxSVG - this crash is probably caused by some global object's constructor because it happens before the start of my main function is even reached.
Here's a backtrace from gdb:
ProgramreceivedsignalSIGFPE,Arithmeticexception.0x0000555555addf2dinwxCSConv::DoCreate()const()(gdb)bt#0 0x0000555555addf2d in wxCSConv::DoCreate() const ()#1 0x0000555555adf06b in wxCSConv::wxCSConv(wxFontEncoding) ()#2 0x0000555555adf0d1 in wxGet_wxConvLocalPtr() ()#3 0x00007ffff511d1af in _GLOBAL__sub_I_strconv.cpp () at /usr/local/lib/libwx_baseu-3.1.so.4#4 0x00007ffff7fe0c4a in call_init(l=<optimizedout>,argc=argc@entry=1,argv=argv@entry=0x7fffffffddf8,env=env@entry=0x7fffffffde08)atdl-init.c:72#5 0x00007ffff7fe0d51 in call_init (env=0x7fffffffde08, argv=0x7fffffffddf8, argc=1, l=<optimized out>)atdl-init.c:30#6 _dl_init (main_map=0x7ffff7ffe190, argc=1, argv=0x7fffffffddf8, env=0x7fffffffde08) at dl-init.c:119#7 0x00007ffff7fd013a in _dl_start_user () at /lib64/ld-linux-x86-64.so.2#8 0x0000000000000001 in ()#9 0x00007fffffffe1c9 in ()#10 0x0000000000000000 in ()(gdb)
As you can see, this gets called directly from the linker as soon as anything using anything from wxSVG is in my code.... any ideas? Thanks in advance for any insight/assistance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everyone, new user here from Montréal, Canada.
I'm getting a weird FPE crash in what looks like a string-conversion function in wxWidgets, whenever i link my executable with wxSVG - this crash is probably caused by some global object's constructor because it happens before the start of my main function is even reached.
Here's a backtrace from gdb:
As you can see, this gets called directly from the linker as soon as anything using anything from wxSVG is in my code.... any ideas? Thanks in advance for any insight/assistance.
Oops sorry my bad, the issue was caused by mixing static and dynamic libraries, and/or position-idependant with non-PIC.