Skip to content
This repository has been archived by the owner on Apr 5, 2019. It is now read-only.

SEGV in ristretto_gen_tables on Travis CI (Linux/clang) #24

Open
tarcieri opened this issue Aug 14, 2018 · 2 comments
Open

SEGV in ristretto_gen_tables on Travis CI (Linux/clang) #24

tarcieri opened this issue Aug 14, 2018 · 2 comments
Labels
linux Linux-specific problems security Security-critical bugs or changes

Comments

@tarcieri
Copy link
Member

The ristretto_gen_tables executable, which is used to generate ristretto_tables.c, sporadically segfaults on Travis CI when compiled with Linux/clang:

https://travis-ci.org/Ristretto/libristretto255/jobs/416021686#L471

This means our memory safety problems aren't just limited to bindgen-generated code (#22). We appear to have problems with pure C code as well.

Curiosities:

  • The OS X build with clang always seems to succeed
  • So far this has always impacted PR builds and never builds on master
@tarcieri tarcieri added security Security-critical bugs or changes linux Linux-specific problems labels Aug 14, 2018
@tarcieri
Copy link
Member Author

I enabled ASAN in this PR: #26

That seems to have "fixed" the problem. I'll leave this issue open as it probably warrants more investigation.

I've been unable to reproduce it locally.

tarcieri added a commit that referenced this issue Aug 15, 2018
@tarcieri
Copy link
Member Author

Attempted to run ristretto_gen_tables under lldb in #34. Like with ASAN, this prevents the problem from happening (i.e. heisenbug).

tarcieri added a commit that referenced this issue Aug 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
linux Linux-specific problems security Security-critical bugs or changes
Projects
None yet
Development

No branches or pull requests

1 participant