Skip to content

update-index : panic: runtime error: #87

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

Closed
wjwieland opened this issue Nov 3, 2018 · 8 comments · Fixed by #91
Closed

update-index : panic: runtime error: #87

wjwieland opened this issue Nov 3, 2018 · 8 comments · Fixed by #91
Assignees

Comments

@wjwieland
Copy link

wjwieland commented Nov 3, 2018

Version: arduino-cli version 0.3.2-alpha.preview
Plafform: RPi3/RPi2B+

Note: This issue is intended to address only the RPi (arm) version. The 64bit version runs fine on Ubuntu 18.04

Results of update-index

 arduino-cli lib update-index
 0 / ? [-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------=]   0.00%panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x4 pc=0x123d4]

goroutine 18 [running]:
sync/atomic.addUint64(0x1336bed4, 0x1000, 0x0, 0x1000, 0x1000)
        /home/jenkins/go1.10.2-patched/src/sync/atomic/64bit_arm.go:31 +0x4c
github.com/arduino/arduino-cli/vendor/go.bug.st/downloader.(*Downloader).AsyncRun(0x1336bec0)
        /home/jenkins/workspace/arduino-cli/src/github.com/arduino/arduino-cli/vendor/go.bug.st/downloader/downloader.go:82 +0x17c
created by github.com/arduino/arduino-cli/vendor/go.bug.st/downloader.(*Downloader).RunAndPoll
        /home/jenkins/workspace/arduino-cli/src/github.com/arduino/arduino-cli/vendor/go.bug.st/downloader/downloader.go:61 +0x70
wjw@weatherrack3:~ $ **arduino-cli core update-index**
 0 / 233181 [---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------]   0.00%panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x4 pc=0x123d4]

goroutine 18 [running]:
sync/atomic.addUint64(0x12977184, 0xe78, 0x0, 0x1000, 0xe78)
        /home/jenkins/go1.10.2-patched/src/sync/atomic/64bit_arm.go:31 +0x4c
github.com/arduino/arduino-cli/vendor/go.bug.st/downloader.(*Downloader).AsyncRun(0x12977170)
        /home/jenkins/workspace/arduino-cli/src/github.com/arduino/arduino-cli/vendor/go.bug.st/downloader/downloader.go:82 +0x17c
created by github.com/arduino/arduino-cli/vendor/go.bug.st/downloader.(*Downloader).RunAndPoll
        /home/jenkins/workspace/arduino-cli/src/github.com/arduino/arduino-cli/vendor/go.bug.st/downloader/downloader.go:61 +0x70

@cmaglie
Copy link
Member

cmaglie commented Nov 8, 2018

Are you running the cli without any custom config file?

@wjwieland
Copy link
Author

@cmaglie
I have the standard .cli-config.hml in ~/$HOME if that is what you mean.
The contents of which are:

proxy_type: auto
sketchbook_path: /home/wjw/Arduino
arduino_data: /home/wjw/.arduino15
board_manager: null

@OBerghmans
Copy link

OBerghmans commented Nov 15, 2018

Same behaviour here on my RPi 3:

Pi3:~ $ ./arduino-cli-0.3.2-alpha.preview-linuxarm core update-index
 0 / 234288 [-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------]   0.00%panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x4 pc=0x123d4]

goroutine 32 [running]:
sync/atomic.addUint64(0x11b86074, 0xe7f, 0x0, 0x1000, 0xe7f)
        /home/jenkins/go1.10.2-patched/src/sync/atomic/64bit_arm.go:31 +0x4c
github.com/arduino/arduino-cli/vendor/go.bug.st/downloader.(*Downloader).AsyncRun(0x11b86060)
        /home/jenkins/workspace/arduino-cli/src/github.com/arduino/arduino-cli/vendor/go.bug.st/downloader/downloader.go:82 +0x17c
created by github.com/arduino/arduino-cli/vendor/go.bug.st/downloader.(*Downloader).RunAndPoll
        /home/jenkins/workspace/arduino-cli/src/github.com/arduino/arduino-cli/vendor/go.bug.st/downloader/downloader.go:61 +0x70

@cmaglie cmaglie self-assigned this Nov 16, 2018
cmaglie added a commit to cmaglie/arduino-cli that referenced this issue Nov 16, 2018
@cmaglie
Copy link
Member

cmaglie commented Nov 16, 2018

May you try this build?
#91 (comment)

@cmaglie cmaglie added this to the next alpha preview milestone Nov 16, 2018
@OBerghmans
Copy link

This seems to work a lot better:

Pi3:~ $ ./arduino-cli-25-PR91-linuxarm core update-index
Updating index: package_index.json downloaded

Will test further later today, but this specific issue is resolved for me.

cmaglie added a commit that referenced this issue Nov 16, 2018
@wjwieland
Copy link
Author

This fixes the issue on 64 bit machines.
When might this be pushed out to the 32 bit and RPi platforms?
Thanks so much for looking into this!

@OBerghmans
Copy link

For me this fixed it on the RPi platform, at least on RPi3

@wjwieland
Copy link
Author

I can confirm update-index for both core and lib on the linux 64 and linux ARM now work as expected. For some reason I get 404 - not found error when attempting to retrieve the Linux 32 tar.bz2 file from the code-coverage page 'Build completed' download link, so have not yet tested on my 32 bit system.

Thanks again for the work on this!

PS: this comment was mistakenly placed on the code coverage page and subsequently copied here. Sorry for the mess...

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

Successfully merging a pull request may close this issue.

3 participants