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

Getting segmentation fault on :latest #2172

Closed
sunbeam60 opened this issue Mar 20, 2024 · 5 comments
Closed

Getting segmentation fault on :latest #2172

sunbeam60 opened this issue Mar 20, 2024 · 5 comments

Comments

@sunbeam60
Copy link

sunbeam60 commented Mar 20, 2024

Is this urgent?

No

Host OS

Ubuntu 22.04 Server

CPU arch

x86_64

VPN service provider

Private Internet Access

What are you using to run the container

docker-compose

What is the version of Gluetun

What's the problem 🤔

When running :latest, I receive a segmentation fault on start-up. This happens before the Gluetun version is printed in the logs, but it's happened overnight, so I presume it's associated with the docker container pushed on the March 19th, 2024.

Fixing to v3.37 removes the issue.

Share your logs (at least 10 lines)

2024-03-20T12:45:29Z INFO [dns] using plaintext DNS at address 1.1.1.1 
2024-03-20T12:45:29Z INFO [http server] http server listening on [::]:8000
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x78e831]
2024-03-20T12:45:29.530342146Z
goroutine 113 [running]:
github.com/qdm12/gluetun/internal/storage.filterServer({{0xc000bcd6a0, 0x7}, {0x0, 0x0}, {0xc000bcd660, 0xb}, {0x0, 0x0}, {0x0, 0x0}, ...}, ...)                                                                                      
github.com/qdm12/gluetun/internal/storage/filter.go:77 +0x1b1
github.com/qdm12/gluetun/internal/storage.(*Storage).FilterServers(_, {_, _}, {{0xc000012029, 0x7}, {{0x0, 0xffff00000000}, 0xc0000bc000}, {0x0, 0x0, ...}, ...})                                                                   github.com/qdm12/gluetun/internal/storage/filter.go:33 +0x2fb
github.com/qdm12/gluetun/internal/provider/utils.GetConnection({_, _}, {_, _}, {{0xc000012029, 0x7}, {{0x0, 0xffff00000000}, 0xc0000bc000}, {0x0, ...}, ...}, ...)                                                                 github.com/qdm12/gluetun/internal/provider/utils/connection.go:39 +0xad 
github.com/qdm12/gluetun/internal/provider/privateinternetaccess.(*Provider).GetConnection(_, {{0xc000012029, 0x7}, {{0x0, 0xffff00000000}, 0xc0000bc000}, {0x0, 0x0, 0x0}, {0xc000332300, ...}, ...}, ...)
github.com/qdm12/gluetun/internal/provider/privateinternetaccess/connection.go:23 +0x185
github.com/qdm12/gluetun/internal/vpn.setupOpenVPN({_, _}, {_, _}, {_, _}, {_, _}, {{0xc000012029, 0x7}, ...}, ...)                                                                                                                github.com/qdm12/gluetun/internal/vpn/openvpn.go:19 +0xbe
github.com/qdm12/gluetun/internal/vpn.(*Loop).Run(0xc00026f340, {0x109d840, 0xc00028cfa0}, 0xc000150f00?)
github.com/qdm12/gluetun/internal/vpn/run.go:36 +0x405
created by main._main in goroutine 66
./main.go:427 +0x385a

Share your configuration

version: "3.8"
networks:
  arr-fixed-network:
    external: true

services:
  gluetun:
    container_name: gluetun
    #mage: qmcgaw/gluetun:v3.37
    image: qmcgaw/gluetun:latest
    networks:
      - arr-fixed-network
    cap_add:
      - NET_ADMIN
    volumes:
      - /home/[REPLACED]/docker/arr/gluetun/:/gluetun #The location of our config files
    environment:
      - VPN_SERVICE_PROVIDER=pia
      - OPENVPN_USER=
      - OPENVPN_PASSWORD=
      - SERVER_REGIONS=
      - FIREWALL_OUTBOUND_SUBNETS=192.168.1.0/24
      - TZ=Europe/London
    ports: #the port below allow the WebUI of any application connecting through the VPN to remain accessible locally
      - 9696:9696 # port for prowlarr
      - 7878:7878 # port for radarr
      - 8989:8989 # port for sonarr
      - 9090:8080 # port for qbittorrent
    restart: unless-stopped
@qdm12
Copy link
Owner

qdm12 commented Mar 20, 2024

What's the commit hash logged at the top of your container logs? That should had been fixed with commit 62158a1 (introduced with bad PR #2070)

@sunbeam60
Copy link
Author

Running version latest built on 2024-03-18T17:49:37.003Z (commit 3d16798)

@qdm12
Copy link
Owner

qdm12 commented Mar 20, 2024

Re-pull the latest image, you have the broken one. The 'fixed' latest image is

latest built on 2024-03-19T15:23:06.936Z (commit 62158a1)

@qdm12 qdm12 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 20, 2024
Copy link
Contributor

Closed issues are NOT monitored, so commenting here is likely to be not seen.
If you think this is still unresolved and have more information to bring, please create another issue.

This is an automated comment setup because @qdm12 is the sole maintainer of this project
which became too popular to monitor issues closed.

@sunbeam60
Copy link
Author

🤯

Thank you.

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

2 participants