Skip to content
Snippets Groups Projects
Closed (moved) Division by zero: undefined behaviour in circuitpadding/circuitpadding_sample_distribution test
  • View options
  • Division by zero: undefined behaviour in circuitpadding/circuitpadding_sample_distribution test

  • View options
  • Closed (moved) Issue created by teor

    When running the tor unit tests on macOS with --enable-expensive-hardening, I get the following error:

    circuitpadding/circuitpadding_sample_distribution: [forking] ../src/lib/math/prob_distr.c:1311:17: runtime error: division by zero
    SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/lib/math/prob_distr.c:1311:17 in 
    ../src/lib/math/prob_distr.c:1219:49: runtime error: division by zero
    SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/lib/math/prob_distr.c:1219:49 in 
    OK

    My full configure command-line is:

    configure --disable-asciidoc --with-libevent-dir=/usr/local --with-openssl-dir=/usr/local/opt/openssl --enable-lzma --enable-zstd --enable-libscrypt CC=clang --enable-gcc-warnings --enable-expensive-hardening PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading