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

Core dump #8

Closed
paulmona opened this Issue Feb 14, 2019 · 18 comments

Comments

Projects
None yet
5 participants
@paulmona
Copy link

paulmona commented Feb 14, 2019

Seem to error with a core dump on start.

GB_DEBUG = true
Segmentation fault (core dumped)

@samccauley

This comment has been minimized.

Copy link
Owner

samccauley commented Feb 15, 2019

Does it only happen when you set GB_DEBUG to true? What platform are you using? And, which architecture is it: armhf, amd64, or aarch64? I'm able to test the armhf build on my Raspberry Pi; and I can test amd64 and aarch64 builds on my Windows 10 laptop.

@paulmona

This comment has been minimized.

Copy link
Author

paulmona commented Feb 15, 2019

@samccauley

This comment has been minimized.

Copy link
Owner

samccauley commented Feb 15, 2019

I'm using Raspberry Pi 3B also. Perhaps you should try removing and re-installing the add-on?

@legolas0802

This comment has been minimized.

Copy link

legolas0802 commented Feb 15, 2019

I have the same problem too and I have already tried to uninstall and reinstall the addon

@samccauley

This comment has been minimized.

Copy link
Owner

samccauley commented Feb 15, 2019

What version of Hass.io Supervisor and what version of HassOS are you running? Both can be found on Hass.io -> System screen. Also what version of Home Assistant?

I'm running:
Hass.io Supervisor 143
HassOS 1.10
Home Assistant 0.87.1

@legolas0802

This comment has been minimized.

Copy link

legolas0802 commented Feb 15, 2019

the only difference is that they are on hassos 2.8

@paulmona

This comment has been minimized.

Copy link
Author

paulmona commented Feb 15, 2019

@campbellr

This comment has been minimized.

Copy link

campbellr commented Feb 18, 2019

This seems to be the same issue as https://bugs.alpinelinux.org/issues/9981

I used docker run to run the container manually so that i could use gdb to figure out why it was segfaulting. Unfortunately just like in the linked issue gdb also segfaults.

It sounds like alpine 3.8 works fine though.

@campbellr

This comment has been minimized.

Copy link

campbellr commented Feb 18, 2019

Confirmed python3 seems to work fine using an alpine 3.8 image instead of 3.9:

$ docker run -it --rm alpine:3.8
Unable to find image 'alpine:3.8' locally
3.8: Pulling from library/alpine
e3c488b39803: Already exists
05a63128803b: Already exists
Digest: sha256:dad671370a148e9d9573e3e10a9f8cc26ce937bea78f3da80b570c2442364406
Status: Downloaded newer image for alpine:3.8
/ # apk add python3
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/aarch64/APKINDEX.tar.gz
(1/11) Installing libbz2 (1.0.6-r6)
(2/11) Installing expat (2.2.5-r0)
(3/11) Installing libffi (3.2.1-r4)
(4/11) Installing gdbm (1.13-r1)
(5/11) Installing xz-libs (5.2.4-r0)
(6/11) Installing ncurses-terminfo-base (6.1_p20180818-r1)
(7/11) Installing ncurses-terminfo (6.1_p20180818-r1)
(8/11) Installing ncurses-libs (6.1_p20180818-r1)
(9/11) Installing readline (7.0.003-r0)
(10/11) Installing sqlite-libs (3.25.3-r0)
(11/11) Installing python3 (3.6.6-r0)
Executing busybox-1.28.4-r2.trigger
OK: 66 MiB in 24 packages
/ # python3
Python 3.6.6 (default, Aug 23 2018, 14:48:49)
[GCC 6.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
@samccauley

This comment has been minimized.

Copy link
Owner

samccauley commented Feb 18, 2019

I created a new version, 1.5.0, using the latest build scripts from hassio. I've been unable to reproduce this problem, so I'm just hoping this will fix it for you. Please give it a try.

@campbellr

This comment has been minimized.

Copy link

campbellr commented Feb 18, 2019

@samccauley thanks, but unfortunately it doesn't work.

I spent some time trying to figure out where BUILD_FROM in the Dockerfile actually comes from (looks like it's actually homeassistant/aarch64-homeassistant-base:latest for aarch64).

It looks like the latest version (20190212) upgraded to alpine 3.9.

I'm not sure, but it looks like you can override the value of BUILD_FROM in your build.json

Maybe adding this, to force it to use the older (but working) image, would work?

  "build_from": {
    "aarch64": "homeassistant/aarch64-homeassistant-base:20181114"
  },
@samccauley

This comment has been minimized.

Copy link
Owner

samccauley commented Feb 18, 2019

@campbellr - aarch64? What hardware are you running on? I use the armhf build on my Raspberry pi 3B. I use the amd64 when I test in my Windows laptop. The aarch64 is the one build that I don't know how to test. I can take a stab at doing what you suggest when I get a little time. In the meantime, I'm curious what HW you run it on. Honestly, I don't know this space very well. 😀

@campbellr

This comment has been minimized.

Copy link

campbellr commented Feb 18, 2019

I'm just using a rpi 3 (B+) too.

Looking back at the hassio install docs it has both 32bit and 64bit images for the pi3 although it does say the 32bit version is recommended. Maybe i should have heeded that 😛

@paulmona

This comment has been minimized.

Copy link
Author

paulmona commented Feb 19, 2019

@caiosweet

This comment has been minimized.

Copy link

caiosweet commented Feb 22, 2019

Same problem.
I'm running
Hass.io supervisor 145
System | HassOS 2.10
Home Assistant 0.88.1 (but not work from before version 87.1) (64bit)
on Raspberry 3b+

@paulmona

This comment has been minimized.

Copy link
Author

paulmona commented Feb 22, 2019

@caiosweet

This comment has been minimized.

Copy link

caiosweet commented Feb 22, 2019

Are you running 64 bit or 32?

On Fri, Feb 22, 2019, 12:36 PM caiosweet ***@***.***> wrote: Same problem. I'm running Hass.io supervisor 145 System | HassOS 2.10 Home Assistant 0.88.1 (but not work from before version 87.1) (64bit) on Raspberry 3b+ — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#8 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AQmkxyG4A8vsCQsUlzUu2X5vkiOPwh9Wks5vQCq4gaJpZM4a8iVU .

64 bit.

campbellr added a commit to campbellr/addon-hassiogooglebackup that referenced this issue Feb 23, 2019

Use old base image for aarch64
The latest image is based on Alpine 3.9, which has issues with python3
segfaulting.

This fixes samccauley#8

campbellr added a commit to campbellr/addon-hassiogooglebackup that referenced this issue Feb 27, 2019

Switch to homeassistant/{arch}-python-base image
This makes the Dockerfile simpler and also conveniently fixes samccauley#8.
@paulmona

This comment has been minimized.

Copy link
Author

paulmona commented Feb 28, 2019

The latest update resolved this for me.

@paulmona paulmona closed this Feb 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.