Skip to content
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

ENHANCE: Avoid UBSAN errors #1289

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

ENHANCE: Avoid UBSAN errors #1289

wants to merge 12 commits into from

Conversation

mgondan
Copy link
Sponsor Contributor

@mgondan mgondan commented Jun 17, 2024

See here: https://www.stats.ox.ac.uk/pub/bdr/memtests/clang-UBSAN/rswipl/rswipl.log

The individual errors are mentioned in the individual commits. Four error messages are still left, these require inspection, I'll open an issue.

index -1 out of bounds for type 'definition_ref[7]'
index -1 out of bounds for type 'definition_ref[7]'
addition of unsigned offset to 0x7f6d6eb33000 overflowed to 0x7f6d6eb32fff
applying non-zero offset 64 to null pointer
applying non-zero offset 8864 to null pointer (from incrementing NULL with ++)
index -1 out of bounds for type 'definition_ref[7]'
member access within null pointer of type 'struct clause'
applying non-zero offset 64 to null pointer
member access within null pointer of type 'var_table'
member access within null pointer of type 'struct bit_vector'
@mgondan
Copy link
Sponsor Contributor Author

mgondan commented Jun 17, 2024

The above mentioned issue is here, #1290

@mgondan mgondan marked this pull request as ready for review June 17, 2024 22:34
If stack->top is NULL, switch to else branch
If stack->top is NULL, switch to ":" branch
@mgondan
Copy link
Sponsor Contributor Author

mgondan commented Jun 23, 2024

I think the remaining problems have been solved with the last two commits.

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.

None yet

1 participant