Skip to content

init_generator_data crashes when constants are changed #345

@phated

Description

@phated

In #142, @suyash67 changed the constants for init_generator_data but when Noir consumed the changes, it caused tests to crash with the stack trace:

 thread #2, name = 'tests::noir_integration', stop reason = EXC_BAD_ACCESS (code=2, address=0x16fe00000)
  * frame #0: 0x00000001000ae52c prove_and_verify-5fafba34d1642f00`crypto::generators::init_generator_data() + 244
    frame #1: 0x00000001000b7814 prove_and_verify-5fafba34d1642f00`crypto::generators::get_g1_ladder(unsigned long) + 20
    frame #2: 0x000000010026d010 prove_and_verify-5fafba34d1642f00`acir_format::create_fixed_base_constraint(proof_system::plonk::UltraComposer&, acir_format::FixedBaseScalarMul const&) + 68
    frame #3: 0x000000010022a84c prove_and_verify-5fafba34d1642f00`acir_format::create_circuit(acir_format::acir_format const&, std::__1::unique_ptr<proof_system::ReferenceStringFactory, std::__1::default_delete<proof_system::ReferenceStringFactory> >&&) + 716
    frame #4: 0x000000010028bc54 prove_and_verify-5fafba34d1642f00`acir_proofs::get_total_circuit_size(unsigned char const*) + 164

We're reverting these value changes in #338 until the correct fix can be found and applied. This is the tracking issue for finding the core bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions