Skip to content

Use of INCLUDE file (@) in a procedure causes segfaults on Apple arm64 #1632

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

Closed
GillesDuvert opened this issue Sep 7, 2023 · 0 comments
Closed
Assignees
Labels
arm64 Apple M1, M2 only segfault

Comments

@GillesDuvert
Copy link
Contributor

on Apple arm64 (and only on arm64), having a command file included in a procedure (via the @ command) such as

 pro test
@include_commands.pro
 print,"test passed"
  end

will crash GDL. On other platforms, only a memory access problem is seen, and this by valgrind only.

Many, if not all, "serious" IDL packages use the @ liberally. These packages won't run on Apple M1 + GDL until this is fixed.
The bug exists since the beginnings of GDL and is linked to the persistence of data created by the Antlr Lexer.
Should be easy to fix.

This is why the mapping procedures (MAP_SET etc) currently crash on Apple arm64 arch.

@GillesDuvert GillesDuvert self-assigned this Sep 7, 2023
@GillesDuvert GillesDuvert added segfault arm64 Apple M1, M2 only labels Sep 7, 2023
GillesDuvert added a commit to GillesDuvert/gdl that referenced this issue Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arm64 Apple M1, M2 only segfault
Projects
None yet
Development

No branches or pull requests

1 participant