!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

722 Members
For people hacking on the Nix package manager itself161 Servers

Load older messages


SenderMessageTime
17 Sep 2024
@roberthensing:matrix.orgroberth
In reply to @mightyiam:matrix.org

Hey, I just got a segfault on nix flake check on nix (Nix) 2.24.6

checking flake output 'apps'zsh: segmentation fault (core dumped)  nix flake check
can you reproduce it? perhaps run it with gdb to get a backtrace?
14:35:07
@mightyiam:matrix.orgShahar "Dawn" Or (mightyiam) Robert Hensing (roberth): I don't think I can reproduce. I have no clue as to any specific circumstance. Sorry. Is there anything else I can do? 14:37:34
@mightyiam:matrix.orgShahar "Dawn" Or (mightyiam)Happened only once.14:38:30
@lassulus:lassul.uslassulus changed their profile picture.14:38:36
@detroyejr:matrix.orgdetroyejr left the room.15:35:40
@detroyejr:matrix.orgdetroyejr joined the room.17:51:03
18 Sep 2024
@jade_:matrix.orgjade_
In reply to @mightyiam:matrix.org
Robert Hensing (roberth): I don't think I can reproduce. I have no clue as to any specific circumstance. Sorry. Is there anything else I can do?

if it happened on macOS you're just screwed. maybe there is something in Console.app, optimistically, in the crash reports, but if there is not, you are just SOL.

on linux, check coredumpctl

03:45:48
@jade_:matrix.orgjade_macOS does not believe in core dumps and so debugging anything going awry on user machines if you are not an app store app is just not a well supported use case03:46:37
@mightyiam:matrix.orgShahar "Dawn" Or (mightyiam)
Tue 2024-09-17 17:13:18 +07 2759193 1001 100 SIGSEGV present  /nix/store/a78gw7pja585dkhj512kgag1spippxl1-nix-with-workaround/bin/.nix-wrapped                       188.8M
03:49:02
@jade_:matrix.orgjade_ ah, well, in that case, coredumpctl debug 2759193 (pid taken from the second column there) 08:49:50
@jade_:matrix.orgjade_then b5t08:49:52
@jade_:matrix.orgjade_ * then bt08:49:54
@jade_:matrix.orgjade_ * then bt at the gdb prompt 08:50:00
@mightyiam:matrix.orgShahar "Dawn" Or (mightyiam)Thank you, but I won't look into this myself. Otherwise, is this valuable to anyone? I don't mind sharing.10:11:32
@roberthensing:matrix.orgroberth Shahar "Dawn" Or (mightyiam): It could be very valuable just to see which piece of code failed, and the bt command will show that 10:31:50
@roberthensing:matrix.orgroberth coredumpctl assumes gdb exists, so maybe also nix shell nixpkgs#gdb first 10:32:24
@mightyiam:matrix.orgShahar "Dawn" Or (mightyiam)

Does this suffice?

Program terminated with signal SIGSEGV, Segmentation fault.                                                                                                 18:49:24 [115/305]
#0  0x00007fe04df5156d in nix::EvalState::concatLists(nix::Value&, unsigned long, nix::Value* const*, nix::PosIdx, std::basic_string_view<char, std::char_traits<char> >) ()
   from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
[Current thread is 1 (Thread 0x7fe04b6f54c0 (LWP 2759193))]
(gdb) bt
#0  0x00007fe04df5156d in nix::EvalState::concatLists(nix::Value&, unsigned long, nix::Value* const*, nix::PosIdx, std::basic_string_view<char, std::char_traits<char> >) ()
   from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#1  0x00007fe04dfa8d64 in nix::prim_concatLists(nix::EvalState&, nix::PosIdx, nix::Value**, nix::Value&) [clone .lto_priv.0] ()
   from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#2  0x00007fe04df4e9aa in nix::EvalState::callFunction(nix::Value&, unsigned long, nix::Value**, nix::Value&, nix::PosIdx) ()
   from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#3  0x00007fe04df50f0b in nix::ExprSelect::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#4  0x00007fe04df505b9 in nix::ExprVar::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#5  0x00007fe04df4b687 in nix::ExprOpEq::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#6  0x00007fe04df4c856 in nix::EvalState::evalBool(nix::Env&, nix::Expr*, nix::PosIdx, std::basic_string_view<char, std::char_traits<char> >) ()
   from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#7  0x00007fe04df4c9d5 in nix::ExprIf::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#8  0x00007fe04df50dce in nix::ExprSelect::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#9  0x00007fe04df4e792 in nix::EvalState::callFunction(nix::Value&, unsigned long, nix::Value**, nix::Value&, nix::PosIdx) ()
   from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#10 0x00007fe04df50f0b in nix::ExprSelect::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#11 0x00007fe04dfaadf5 in nix::prim_map(nix::EvalState&, nix::PosIdx, nix::Value**, nix::Value&) [clone .lto_priv.0] ()
   from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#12 0x00007fe04df4e9aa in nix::EvalState::callFunction(nix::Value&, unsigned long, nix::Value**, nix::Value&, nix::PosIdx) ()
   from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#13 0x00007fe04df5272c in nix::ExprCall::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#14 0x00007fe04df4e792 in nix::EvalState::callFunction(nix::Value&, unsigned long, nix::Value**, nix::Value&, nix::PosIdx) ()
   from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#15 0x00007fe04df5272c in nix::ExprCall::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#16 0x00007fe04df4e792 in nix::EvalState::callFunction(nix::Value&, unsigned long, nix::Value**, nix::Value&, nix::PosIdx) ()
   from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#17 0x00007fe04df516cc in nix::EvalState::concatLists(nix::Value&, unsigned long, nix::Value* const*, nix::PosIdx, std::basic_string_view<char, std::char_traits<char> >) ()
   from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#18 0x00007fe04dfa8d64 in nix::prim_concatLists(nix::EvalState&, nix::PosIdx, nix::Value**, nix::Value&) [clone .lto_priv.0] ()
   from /nix/store/xsjggjrd33cbm5szga29c843i2vhr79j-nix-2.24.6/lib/libnixexpr.so
#19 0x00007fe04df4e9aa in nix::EvalState::callFunction(nix::Value&, unsigned long, nix::Value**, nix::Value&, nix::PosIdx) ()
11:50:40
@roberthensing:matrix.orgroberthLine numbers would be great, if you can get debug symbols to work. That could be a rabbit hole14:16:57
@subfractal:matrix.orgsubfractal changed their display name from gkze to subfractal.15:32:13
@kwaaaaarzu:matrix.org@kwaaaaarzu:matrix.org joined the room.17:25:22
@kwaaaaarzu:matrix.org@kwaaaaarzu:matrix.org changed their display name from kwaaaaarzu to kwizu.17:34:38
@qyliss:fairydust.spaceAlyssa Ross

debug="$(nix --extra-experimental-features nix-command derivation show /nix/store/a2m16avayb3kiixdcwsxgn8hw53m2cw7-nix-2.23.3/bin/nix | jq -r '.[].outputs.debug.path')"; nix-store -r "$debug"; export NIX_DEBUG_INFO_DIRS="$debug/lib/debug"; coredumpctl debug

19:37:17
@symphorien:xlumurb.eusymphoriennixseparatedebuginfod should make it transparent19:38:06
@jade_:matrix.orgjade_stack overflow?22:53:25
@artur:glasgow.social(artur 'manuel) changed their profile picture.23:00:40
@Ericson2314:matrix.orgJohn Ericson haenoe: fricklerhandwerk Robert Hensing (roberth) tomberek OK I hacked it until the manual built in nix shell in that PR 23:25:00
@Ericson2314:matrix.orgJohn Ericsonit's not pretty23:26:01
19 Sep 2024
@kwaaaaarzu:matrix.org@kwaaaaarzu:matrix.org removed their profile picture.00:59:11
@kwaaaaarzu:matrix.org@kwaaaaarzu:matrix.org removed their display name kwizu.00:59:15
@kwaaaaarzu:matrix.org@kwaaaaarzu:matrix.org left the room.00:59:22

Show newer messages


Back to Room ListRoom Version: 6