segfault in bench_bitcoin if configured using --with-libs=no #14842

issue fanquake opened this issue on November 29, 2018
  1. fanquake commented at 12:50 PM on November 29, 2018: member

    Using master at 743c2f4:

    ./autogen.sh
    ./configure --with-libs=no
    make -j6
    lldb src/bench/bench_bitcoin -- -filter=VerifyScriptBench
    
    # Benchmark, evals, iterations, total, min, max, median
    bench_bitcoin was compiled with optimization - stepping may behave oddly; variables may not be available.
    Process 54788 stopped
    * thread [#1](/bitcoin-bitcoin/1/), queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
        frame [#0](/bitcoin-bitcoin/0/): 0x00000001001b6ef2 bench_bitcoin`secp256k1_ecdsa_verify [inlined] secp256k1_ecmult_context_is_built at ecmult_impl.h:217 [opt]
       214 	}
       215 	
       216 	static int secp256k1_ecmult_context_is_built(const secp256k1_ecmult_context *ctx) {
    -> 217 	    return ctx->pre_g != NULL;
       218 	}
       219 	
       220 	static void secp256k1_ecmult_context_clear(secp256k1_ecmult_context *ctx) {
    Target 0: (bench_bitcoin) stopped.
    (lldb) bt
    * thread [#1](/bitcoin-bitcoin/1/), queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
      * frame [#0](/bitcoin-bitcoin/0/): 0x00000001001b6ef2 bench_bitcoin`secp256k1_ecdsa_verify [inlined] secp256k1_ecmult_context_is_built at ecmult_impl.h:217 [opt]
        frame [#1](/bitcoin-bitcoin/1/): 0x00000001001b6ef2 bench_bitcoin`secp256k1_ecdsa_verify(ctx=0x0000000000000000, sig=0x00007ffeefbfecd8, msg32="u\x04?\x97\x1ans?s??O\n?\x16?(?&???H??f\x8c??\x04y?f~?ܻ?U?b\x95·\v\a\x02\x9b??-?(?Y?[?\x17\x98H:?w&??e]???\x0e\x11\b??\x17?H?\x85T\x19\x9cGЏ?\x10Ը!Ii?, pubkey=0x00007ffeefbfed18) at secp256k1.c:298 [opt]
        frame [#2](/bitcoin-bitcoin/2/): 0x0000000100145782 bench_bitcoin`CPubKey::Verify(this=<unavailable>, hash=0x00007ffeefbfedb8, vchSig=<unavailable>) const at pubkey.cpp:183 [opt]
        frame [#3](/bitcoin-bitcoin/3/): 0x000000010014e742 bench_bitcoin`GenericTransactionSignatureChecker<CMutableTransaction>::CheckSig(this=0x00007ffeefbff380, vchSigIn=<unavailable>, vchPubKey=<unavailable>, scriptCode=0x00007ffeefbfef90, sigversion=WITNESS_V0) const at interpreter.cpp:1325 [opt]
        frame [#4](/bitcoin-bitcoin/4/): 0x0000000100147655 bench_bitcoin`EvalScript(stack=<unavailable>, script=<unavailable>, flags=2049, checker=<unavailable>, sigversion=<unavailable>, serror=0x00007ffeefbff378) at interpreter.cpp:938 [opt]
        frame [#5](/bitcoin-bitcoin/5/): 0x00000001001508b5 bench_bitcoin`VerifyWitnessProgram(witness=0x0000000100b06518, witversion=<unavailable>, program=<unavailable>, flags=2049, checker=0x00007ffeefbff380, serror=0x0000000100b05ac2) at interpreter.cpp:1460 [opt]
        frame [#6](/bitcoin-bitcoin/6/): 0x000000010014f9f7 bench_bitcoin`VerifyScript(scriptSig=<unavailable>, scriptPubKey=0x0000000100b05aa8, witness=0x0000000100b06518, flags=2049, checker=0x00007ffeefbff380, serror=0x00007ffeefbff378) at interpreter.cpp:1510 [opt]
        frame [#7](/bitcoin-bitcoin/7/): 0x0000000100037492 bench_bitcoin`VerifyScriptBench(state=0x00007ffeefbff600) at verify_script.cpp:86 [opt]
    
  2. fanquake added the label Build system on Nov 29, 2018
  3. fanquake added the label Tests on Nov 29, 2018
  4. fanquake commented at 6:50 PM on November 25, 2019: member

    Can no longer recreate this.

  5. fanquake closed this on Nov 25, 2019

  6. MarcoFalke locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me