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

panic: runtime error: invalid memory address or nil pointer dereference #671

Open
JosephShering opened this issue Feb 13, 2018 · 7 comments

Comments

@JosephShering
Copy link

When going through the readme on MAC OS X running the command

fn apps create myapp

throws a

panic: runtime error: invalid memory address or nil pointer dereference

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x158c628]

goroutine 1 [running]:
github.com/iron-io/functions/fn/commands.(*appsCmd).create(0xc42051c090, 0xc4200ddb80, 0x1, 0x16e49ff)
	/home/ubuntu/go/src/github.com/iron-io/functions/fn/commands/apps.go:144 +0x2a8
github.com/iron-io/functions/fn/commands.(*appsCmd).(github.com/iron-io/functions/fn/commands.create)-fm(0xc4200ddb80, 0x0, 0xc420413e00)
	/home/ubuntu/go/src/github.com/iron-io/functions/fn/commands/apps.go:36 +0x34
github.com/iron-io/functions/vendor/github.com/urfave/cli.HandleAction(0x1613380, 0xc4204135f0, 0xc4200ddb80, 0x1, 0x0)
	/home/ubuntu/go/src/github.com/iron-io/functions/vendor/github.com/urfave/cli/app.go:485 +0xd4
github.com/iron-io/functions/fn/app.prepareCmdArgsValidation.func1(0xc4200ddb80, 0x0, 0xc4200ddb80)
	/home/ubuntu/go/src/github.com/iron-io/functions/fn/app/app.go:120 +0x357
github.com/iron-io/functions/vendor/github.com/urfave/cli.HandleAction(0x1613380, 0xc4203e28c0, 0xc4200ddb80, 0xc420071300, 0x0)
	/home/ubuntu/go/src/github.com/iron-io/functions/vendor/github.com/urfave/cli/app.go:485 +0xd4
github.com/iron-io/functions/vendor/github.com/urfave/cli.Command.Run(0x16e624f, 0x6, 0x0, 0x0, 0xc420413670, 0x1, 0x1, 0x16f0083, 0x10, 0x0, ...)
	/home/ubuntu/go/src/github.com/iron-io/functions/vendor/github.com/urfave/cli/command.go:193 +0xb72
github.com/iron-io/functions/vendor/github.com/urfave/cli.(*App).RunAsSubcommand(0xc4200f9860, 0xc4200dd900, 0x0, 0x0)
	/home/ubuntu/go/src/github.com/iron-io/functions/vendor/github.com/urfave/cli/app.go:374 +0xacc
github.com/iron-io/functions/vendor/github.com/urfave/cli.Command.startApp(0x16e406e, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x16f2b57, 0x13, 0x0, ...)
	/home/ubuntu/go/src/github.com/iron-io/functions/vendor/github.com/urfave/cli/command.go:280 +0x824
github.com/iron-io/functions/vendor/github.com/urfave/cli.Command.Run(0x16e406e, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x16f2b57, 0x13, 0x0, ...)
	/home/ubuntu/go/src/github.com/iron-io/functions/vendor/github.com/urfave/cli/command.go:79 +0x14c7
github.com/iron-io/functions/vendor/github.com/urfave/cli.(*App).Run(0xc4200f96c0, 0xc42000e280, 0x4, 0x4, 0x0, 0x0)
	/home/ubuntu/go/src/github.com/iron-io/functions/vendor/github.com/urfave/cli/app.go:250 +0x7d0
main.main()
	/home/ubuntu/go/src/github.com/iron-io/functions/fn/main.go:10 +0x53
@c0ze
Copy link
Contributor

c0ze commented Feb 14, 2018

thanks for the report !

If possible can you please provide your fn tool version, and if its not latest (0.2.72) can you please try updating it ?

@sss0350
Copy link

sss0350 commented Feb 14, 2018

Looks like the same issue I ask before , check it out:
#665

@JosephShering
Copy link
Author

It's similar sure, but I tried to change the API_URL with no avail. I get a parse error for 127.0.0.1:8082

@c0ze
Copy link
Contributor

c0ze commented Feb 20, 2018

@JosephShering

can you try API_URL=http://127.0.0.1:8082 fn
(yeah http protocol prefix is necessary.)

Also, have you checked your version ? fn version ?

@raky35
Copy link

raky35 commented May 2, 2018

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x46a74b0]

goroutine 120 [running]:
github.com/ethereum/go-ethereum/eth/filters.(*EventSystem).eventLoop(0xc42186ac80)
/Users/travis/gopath/src/github.com/ethereum/go-ethereum/eth/filters/filter_system.go:434 +0x330

@c0ze
Copy link
Contributor

c0ze commented May 7, 2018

@raky35 can you please provide little bit more information ? Your system, fn tool version, your application context etc ? (which command you run when you get the message etc ? what are API_URL env variables if passed ?)

As a side note, ethereum source is not referenced anywhere in the IF code base. I think your problem is not related to iron functions.

@sekullbe
Copy link

sekullbe commented Mar 6, 2019

This is an old issue, but I found it googling for a solution to a panic crash while running 'fn apps create myapp' as well. I had the container running on a different port and specifying a correct API_URL fixed the problem.
Just hoping to help the next person who comes along :)

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

No branches or pull requests

5 participants