Skip to content

Disable pointer optimizations#50

Open
thjomnx wants to merge 1 commit into
X-Plane:wed_270_releasefrom
thjomnx:wed_fix_segfault_on_open_airport
Open

Disable pointer optimizations#50
thjomnx wants to merge 1 commit into
X-Plane:wed_270_releasefrom
thjomnx:wed_fix_segfault_on_open_airport

Conversation

@thjomnx
Copy link
Copy Markdown

@thjomnx thjomnx commented Mar 13, 2026

On some systems and with enabled optimizations, the code runs into segfaults at

__strcmp_evex () at ../sysdeps/x86_64/multiarch/strcmp-evex.S:316

in

bool WED_PropStringText::WantsAttribute(..)

at

src/WEDCore/WED_PropertyHelper.cpp:580

Until this is properly fixed, the suggestion is to switch them off to allow WED to load airports again.


Partial stacktrace of build_Debug in gdb:

Thread 1 "WED" received signal SIGSEGV, Segmentation fault.
__strcmp_evex () at ../sysdeps/x86_64/multiarch/strcmp-evex.S:316
316             VMOVU   (%rdi), %VMM(0)
(gdb) bt
#0  __strcmp_evex () at ../sysdeps/x86_64/multiarch/strcmp-evex.S:316
#1  0x0000555555dd83d6 in WED_PropStringText::WantsAttribute (this=0x555558d70360, ele=0x555558d6fe7c "hierarchy", att_name=0x555558d6f61f "name", att_value=0x555558d6fe86 "Facade 5 outer ring") at /home/menax/Projects/forks/xptools/src/WEDCore/WED_PropertyHelper.cpp:580
#2  0x0000555555dd6fbb in WED_PropertyHelper::StartElement (this=0x555558d702b0, reader=0x7fffffffbcb0, name=0x555558d6fe7c "hierarchy", atts=0x555558d6d3b0) at /home/menax/Projects/forks/xptools/src/WEDCore/WED_PropertyHelper.cpp:193
#3  0x0000555555f37690 in WED_Thing::StartElement (this=0x555558d70290, reader=0x7fffffffbcb0, name=0x555558d6fe7c "hierarchy", atts=0x555558d6d3a0) at /home/menax/Projects/forks/xptools/src/WEDEntities/WED_Thing.cpp:209
#4  0x0000555555ec16ca in WED_XMLReader::StartElementHandler (userData=0x7fffffffbcb0, name=0x555558d6fe7c "hierarchy", atts=0x555558d6d3a0) at /home/menax/Projects/forks/xptools/src/WEDCore/WED_XMLReader.cpp:90
[...]

On some systems and with enabled optimizations, the code runs into
segfaults at

__strcmp_evex () at ../sysdeps/x86_64/multiarch/strcmp-evex.S:316

in

bool WED_PropStringText::WantsAttribute(..)

at

src/WEDCore/WED_PropertyHelper.cpp:580

Until this is properly fixed, the suggestion is to switch them off
to allow WED to load airports again.
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

Successfully merging this pull request may close these issues.

1 participant