Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Direnv crashes after update #1265

Open
Tony-Klink opened this issue Apr 5, 2024 · 3 comments
Open

Direnv crashes after update #1265

Tony-Klink opened this issue Apr 5, 2024 · 3 comments
Labels

Comments

@Tony-Klink
Copy link

Describe the bug
Direnv crashes with stacktrace inside a directory

To Reproduce
Steps to reproduce the behavior:
In terminal enter directory with flake.nix and .envrc with "use flake" inside.
Write direnv allow
I get stacktrace and error as a result

Expected behavior
Working development environment

Environment

  • OS: Nixos 24.05 unstable
  • Shell: zsh
  • Direnv version: 2.34.0

Additional context
Stack trace:

project git:(master) ✗ direnv allow
direnv: loading ~/Documents/project/.envrc                                                                                                                                    
direnv: using flake
direnv: nix-direnv: using cached dev shell
runtime/cgo: pthread_create failed: Invalid argument
SIGABRT: abort
PC=0x7f823746607c m=0 sigcode=18446744073709551610

goroutine 0 gp=0xad7b80 m=0 mp=0xad8380 [idle]:
runtime: g 0 gp=0xad7b80: unknown pc 0x7f823746607c
stack: frame={sp:0x7ffd06a94870, fp:0x0} stack=[0x7ffd0629c000,0x7ffd06a94cd0)
0x00007ffd06a94770:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94780:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94790:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a947a0:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a947b0:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a947c0:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a947d0:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a947e0:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a947f0:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94800:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94810:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94820:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94830:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94840:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94850:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94860:  0x0000000000000000  0x00007f823746606e 
0x00007ffd06a94870: <0x0000000000000000  0xcd421902d395fe00 
0x00007ffd06a94880:  0x0000000000000006  0x00007f82373d8040 
0x00007ffd06a94890:  0x00007ffd06a94b40  0x0000000000000000 
0x00007ffd06a948a0:  0x0000000000ad7b80  0x00007f8237416e06 
0x00007ffd06a948b0:  0x00007f82375b4b50  0x00007f82373ff8f5 
0x00007ffd06a948c0:  0x0000000000000020  0x0000000000000000 
0x00007ffd06a948d0:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a948e0:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a948f0:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94900:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94910:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94920:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94930:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94940:  0x0000000000ad7b80  0x00007f823745b849 
0x00007ffd06a94950:  0x00007f82375b44e0  0xcd421902d395fe00 
0x00007ffd06a94960:  0x00007f82375b46a0  0x00007f82375b46a0 
runtime: g 0 gp=0xad7b80: unknown pc 0x7f823746607c
stack: frame={sp:0x7ffd06a94870, fp:0x0} stack=[0x7ffd0629c000,0x7ffd06a94cd0)
0x00007ffd06a94770:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94780:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94790:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a947a0:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a947b0:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a947c0:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a947d0:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a947e0:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a947f0:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94800:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94810:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94820:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94830:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94840:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94850:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94860:  0x0000000000000000  0x00007f823746606e 
0x00007ffd06a94870: <0x0000000000000000  0xcd421902d395fe00 
0x00007ffd06a94880:  0x0000000000000006  0x00007f82373d8040 
0x00007ffd06a94890:  0x00007ffd06a94b40  0x0000000000000000 
0x00007ffd06a948a0:  0x0000000000ad7b80  0x00007f8237416e06 
0x00007ffd06a948b0:  0x00007f82375b4b50  0x00007f82373ff8f5 
0x00007ffd06a948c0:  0x0000000000000020  0x0000000000000000 
0x00007ffd06a948d0:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a948e0:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a948f0:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94900:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94910:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94920:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94930:  0x0000000000000000  0x0000000000000000 
0x00007ffd06a94940:  0x0000000000ad7b80  0x00007f823745b849 
0x00007ffd06a94950:  0x00007f82375b44e0  0xcd421902d395fe00 
0x00007ffd06a94960:  0x00007f82375b46a0  0x00007f82375b46a0 

goroutine 1 gp=0xc0000061c0 m=0 mp=0xad8380 [running]:
runtime.systemstack_switch()
	runtime/asm_amd64.s:474 +0x8 fp=0xc0000b0750 sp=0xc0000b0740 pc=0x470b08
runtime.main()
	runtime/proc.go:171 +0x67 fp=0xc0000b07e0 sp=0xc0000b0750 pc=0x43fba7
runtime.goexit({})
	runtime/asm_amd64.s:1695 +0x1 fp=0xc0000b07e8 sp=0xc0000b07e0 pc=0x472b21

rax    0x0
rbx    0x10cf
rcx    0x7f823746607c
rdx    0x6
rdi    0x10cf
rsi    0x10cf
rbp    0x7f82373d8040
rsp    0x7ffd06a94870
r8     0x0
r9     0x1
r10    0x8
r11    0x246
r12    0x7ffd06a94b40
r13    0x6
r14    0xad7b80
r15    0x1ffffffffffffff
rip    0x7f823746607c
rflags 0x246
cs     0x33
fs     0x0
gs     0x0
@Tony-Klink Tony-Klink added the Bug label Apr 5, 2024
@stellar-novas
Copy link

+1 I'm getting the exact same issue, did you ever find a fix?

For reference, here's the repo I'm getting the issue on https://github.com/space-wizards/space-station-14

@Tony-Klink
Copy link
Author

No, I plan my next update on Friday, maybe it will be fixed by itself

@bbbbbailey
Copy link

Same problem, rolling back to 23.11 fixes this. Rolling back as in pulling direnv from 23.11 and running nixos-unstable for the rest of my system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants