Files
lix/tests/functional/repl_characterization/data/regression_l592.test
T
Rebecca Turner c263070d37 Fix crash in debugger mode using with
Fixes this crash (#592):

    $ nix repl --debugger
    Lix 2.92.0-dev-pre20241120-66f6dbd debugger
    Type :? for help.
    nix-repl> let x = 4; in __seq x (with x; (x: builtins.break x) 1)
    info: breakpoint reached

    [1]    949722 segmentation fault (core dumped)  nix repl --debugger

Change-Id: I13c72941dc325ff984dcce2a84c01c89b1c552af
2025-02-03 15:22:50 -08:00

22 lines
639 B
Plaintext

@args --debugger
breakpoint reached
nix-repl> :quit
error:
… while evaluating the file '$TEST_DATA/regression_l592.nix':
… while calling the 'seq' builtin
at $TEST_DATA/regression_l592.nix:1:15:
1| let x = 4; in __seq x (with x; (x: builtins.break x) 1)
| ^
2|
… while calling the 'break' builtin
at $TEST_DATA/regression_l592.nix:1:36:
1| let x = 4; in __seq x (with x; (x: builtins.break x) 1)
| ^
2|
error: breakpoint reached