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

Map without return panics #62

odino opened this Issue Dec 21, 2018 · 0 comments


None yet
1 participant
Copy link

odino commented Dec 21, 2018

⧐  str = ""
⧐   ["a"].map(f(x){ str = str + x })
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x4a7f03]

goroutine 1 [running]:
abs/object.(*Array).Inspect(0xc4202421a0, 0xc4202420e0, 0xc4200103d0)
	/go/src/abs/object/object.go:152 +0xc3
abs/repl.Run(0xc420244000, 0x21, 0x101)
	/go/src/abs/repl/repl.go:109 +0x109
abs/repl.executor(0xc420244000, 0x21)
	/go/src/abs/repl/repl.go:90 +0x7c*Prompt).Run(0xc4200c8000)
	/go/src/ +0x7b5
abs/repl.Start(0x566a20, 0xc42000e010, 0x566a40, 0xc42000e018)
	/go/src/abs/repl/repl.go:60 +0xec
	/go/src/abs/main.go:25 +0x11f
exit status 2
Makefile:11: recipe for target 'repl' failed
make: *** [repl] Error 1

@odino odino added the bug label Dec 21, 2018

@odino odino added this to the preview-1 milestone Dec 21, 2018

@odino odino changed the title Attempting to modify a var outside of enclosed env panics Map without return panics Dec 21, 2018

@odino odino modified the milestones: preview-1, future, cauldron, preview-3 Dec 21, 2018

@odino odino closed this in fa0c459 Dec 27, 2018

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