Re: prometheus sigbus

2023-01-13 Thread Florian Obser
This works, thanks!

On 2023-01-13 17:04 +01, Claudio Jeker  wrote:
> On Fri, Jan 13, 2023 at 03:56:10PM +0100, Florian Obser wrote:
>> gdb says this:
>> 
>> Thread 7 received signal SIGBUS, Bus error.
>> [Switching to thread 581635]
>> runtime.memmove () at /usr/local/go/src/runtime/memmove_amd64.s:151
>> 151  MOVBAX, (DI)
>> 
>
> Can you give this a try?
>
> -- 
> :wq Claudio
>
> Index: Makefile
> ===
> RCS file: /cvs/ports/sysutils/prometheus/Makefile,v
> retrieving revision 1.18
> diff -u -p -r1.18 Makefile
> --- Makefile  9 Dec 2022 14:50:55 -   1.18
> +++ Makefile  9 Dec 2022 14:51:21 -
> @@ -1,6 +1,6 @@
>  COMMENT =systems monitoring and alerting toolkit
>  
> -V =  2.37.4
> +V =  2.37.5
>  GH_ACCOUNT = prometheus
>  GH_PROJECT = prometheus
>  GH_TAGNAME = v${V}
> Index: distinfo
> ===
> RCS file: /cvs/ports/sysutils/prometheus/distinfo,v
> retrieving revision 1.8
> diff -u -p -r1.8 distinfo
> --- distinfo  9 Dec 2022 14:50:55 -   1.8
> +++ distinfo  9 Dec 2022 14:53:21 -
> @@ -1,6 +1,7 @@
> -SHA256 (prometheus-2.37.4.tar.gz) = 
> gIP1R9TjewtfeusIL9ScOyRegGSqzG6g667+bRWKpNI=
> -SHA256 (prometheus-vendor-2.37.4.tar.gz) = 
> UCoi3XIpdjwmUVrAb9wWzvDpMYj41vOXirbrIBPxk0E=
> -SHA256 (prometheus-web-ui-2.37.4.tar.gz) = 
> TA/pT8Q0b46eVUrqrgG4omZ84EKZm5vEG/7VKd2nzDQ=
> -SIZE (prometheus-2.37.4.tar.gz) = 6048871
> -SIZE (prometheus-vendor-2.37.4.tar.gz) = 11625254
> -SIZE (prometheus-web-ui-2.37.4.tar.gz) = 4332951
> +SHA256 (prometheus-2.37.5.tar.gz) = 
> aCh6OeQy/3QP55KYg7WAsgp1SUgopX1FVxmfUNDXJDw=
> +
> +SHA256 (prometheus-vendor-2.37.5.tar.gz) = 
> wd+Sdfp/EPvTRbdtqNqLC/zYTV49Vu+uJKaXW8efrwE=
> +SHA256 (prometheus-web-ui-2.37.5.tar.gz) = 
> G/zuXX/m4xuPLV1xBHMkKk8sDq6+uUYiYL5fCskspVY=
> +SIZE (prometheus-2.37.5.tar.gz) = 6048663
> +SIZE (prometheus-vendor-2.37.5.tar.gz) = 11745105
> +SIZE (prometheus-web-ui-2.37.5.tar.gz) = 4331652
>

-- 
I'm not entirely sure you are real.



Re: prometheus sigbus

2023-01-13 Thread Claudio Jeker
On Fri, Jan 13, 2023 at 03:56:10PM +0100, Florian Obser wrote:
> gdb says this:
> 
> Thread 7 received signal SIGBUS, Bus error.
> [Switching to thread 581635]
> runtime.memmove () at /usr/local/go/src/runtime/memmove_amd64.s:151
> 151   MOVBAX, (DI)
> 

Can you give this a try?

-- 
:wq Claudio

Index: Makefile
===
RCS file: /cvs/ports/sysutils/prometheus/Makefile,v
retrieving revision 1.18
diff -u -p -r1.18 Makefile
--- Makefile9 Dec 2022 14:50:55 -   1.18
+++ Makefile9 Dec 2022 14:51:21 -
@@ -1,6 +1,6 @@
 COMMENT =  systems monitoring and alerting toolkit
 
-V =2.37.4
+V =2.37.5
 GH_ACCOUNT =   prometheus
 GH_PROJECT =   prometheus
 GH_TAGNAME =   v${V}
Index: distinfo
===
RCS file: /cvs/ports/sysutils/prometheus/distinfo,v
retrieving revision 1.8
diff -u -p -r1.8 distinfo
--- distinfo9 Dec 2022 14:50:55 -   1.8
+++ distinfo9 Dec 2022 14:53:21 -
@@ -1,6 +1,7 @@
-SHA256 (prometheus-2.37.4.tar.gz) = 
gIP1R9TjewtfeusIL9ScOyRegGSqzG6g667+bRWKpNI=
-SHA256 (prometheus-vendor-2.37.4.tar.gz) = 
UCoi3XIpdjwmUVrAb9wWzvDpMYj41vOXirbrIBPxk0E=
-SHA256 (prometheus-web-ui-2.37.4.tar.gz) = 
TA/pT8Q0b46eVUrqrgG4omZ84EKZm5vEG/7VKd2nzDQ=
-SIZE (prometheus-2.37.4.tar.gz) = 6048871
-SIZE (prometheus-vendor-2.37.4.tar.gz) = 11625254
-SIZE (prometheus-web-ui-2.37.4.tar.gz) = 4332951
+SHA256 (prometheus-2.37.5.tar.gz) = 
aCh6OeQy/3QP55KYg7WAsgp1SUgopX1FVxmfUNDXJDw=
+
+SHA256 (prometheus-vendor-2.37.5.tar.gz) = 
wd+Sdfp/EPvTRbdtqNqLC/zYTV49Vu+uJKaXW8efrwE=
+SHA256 (prometheus-web-ui-2.37.5.tar.gz) = 
G/zuXX/m4xuPLV1xBHMkKk8sDq6+uUYiYL5fCskspVY=
+SIZE (prometheus-2.37.5.tar.gz) = 6048663
+SIZE (prometheus-vendor-2.37.5.tar.gz) = 11745105
+SIZE (prometheus-web-ui-2.37.5.tar.gz) = 4331652



Re: prometheus sigbus

2023-01-13 Thread Florian Obser
gdb says this:

Thread 7 received signal SIGBUS, Bus error.
[Switching to thread 581635]
runtime.memmove () at /usr/local/go/src/runtime/memmove_amd64.s:151
151 MOVBAX, (DI)


ktrace: https://vultr.tlakh.xyz/pub/ktrace.txt

On 2023-01-13 15:35 +01, Florian Obser  wrote:
> This is
> $ pkg_info prometheus
> Information for inst:prometheus-2.37.4
>
> on
> kern.version=OpenBSD 7.2-current (GENERIC.MP) #938: Thu Jan 12 23:53:42 MST 
> 2023
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>
> # rcctl -d start prometheus
> doing _rc_parse_conf
> prometheus_flags empty, using default >--config.file 
> /etc/prometheus/prometheus.yml --storage.tsdb.path '/var/prometheus'<
> doing rc_check
> prometheus
> doing rc_start
> doing _rc_wait_for_start
> doing rc_check
> No home directory /nonexistent!
> Logging in with home = "/".
> prometheus[37800]: ts=2023-01-13T14:29:17.619Z caller=main.go:491 level=info 
> msg="No time or size retention was set so using the default time retention" 
> duration=15d
> prometheus[37800]: ts=2023-01-13T14:29:17.619Z caller=main.go:535 level=info 
> msg="Starting Prometheus Server" mode=server version="(version=, branch=, 
> revision=)"
> prometheus[37800]: ts=2023-01-13T14:29:17.619Z caller=main.go:540 level=info 
> build_context="(go=go1.19.4, user=, date=)"
> prometheus[37800]: ts=2023-01-13T14:29:17.619Z caller=main.go:541 level=info 
> host_details=(openbsd)
> prometheus[37800]: ts=2023-01-13T14:29:17.619Z caller=main.go:542 level=info 
> fd_limits="(soft=1024, hard=1024)"
> prometheus[37800]: ts=2023-01-13T14:29:17.619Z caller=main.go:543 level=info 
> vm_limits="(soft=4294967296b, hard=4294967296b)"
> prometheus[37800]: unexpected fault address 0x239126950
> prometheus[37800]: fatal error: fault
> prometheus[37800]: [signal SIGBUS: bus error code=0x3 addr=0x239126950 
> pc=0x46d9c2]
> prometheus[37800]:
> prometheus[37800]: goroutine 1 [running]:
> prometheus[37800]: runtime.throw({0x3059866?, 0x1e?})
> prometheus[37800]:/usr/local/go/src/runtime/panic.go:1047 +0x5d 
> fp=0xc000a7f050 sp=0xc000a7f020 pc=0x438b7d
> prometheus[37800]: runtime.sigpanic()
> prometheus[37800]:/usr/local/go/src/runtime/signal_unix.go:832 +0x1ac 
> fp=0xc000a7f0a0 sp=0xc000a7f050 pc=0x44ed8c
> prometheus[37800]: runtime.memmove()
> prometheus[37800]:/usr/local/go/src/runtime/memmove_amd64.s:151 +0x102 
> fp=0xc000a7f0a8 sp=0xc000a7f0a0 pc=0x46d9c2
> prometheus[37800]: 
> github.com/prometheus/prometheus/tsdb/fileutil.(*MmapWriter).Write(0xca6940,
>  {0xc000a7f147, 0x1, 0x39ead80?})
> prometheus[37800]:
> /usr/obj/ports/prometheus-2.37.4/go/src/github.com/prometheus/prometheus/tsdb/fileutil/writer.go:132
>  +0x165 fp=0xc000a7f118 sp=0xc000a7f0a8 pc=0x235da65
> prometheus[37800]: 
> github.com/prometheus/prometheus/promql.NewActiveQueryTracker({0x7f7dc123,
>  0xf}, 0x14, {0x39ead80, 0xc514a0})
> prometheus[37800]:
> /usr/obj/ports/prometheus-2.37.4/go/src/github.com/prometheus/prometheus/promql/query_logger.go:118
>  +0x20e fp=0xc000a7f230 sp=0xc000a7f118 pc=0x243592e
> prometheus[37800]: main.main()
> prometheus[37800]:
> /usr/obj/ports/prometheus-2.37.4/go/src/github.com/prometheus/prometheus/cmd/prometheus/main.go:597
>  +0x66f3 fp=0xc000a7ff80 sp=0xc000a7f230 pc=0x25614f3
> prometheus[37800]: runtime.main()
> prometheus[37800]:/usr/local/go/src/runtime/proc.go:250 +0x1f8 
> fp=0xc000a7ffe0 sp=0xc000a7ff80 pc=0x43b378
> prometheus[37800]: runtime.goexit()
> prometheus[37800]:/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 
> fp=0xc000a7ffe8 sp=0xc000a7ffe0 pc=0x46ca01
> prometheus[37800]:
> prometheus[37800]: goroutine 2 [force gc (idle)]:
> prometheus[37800]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
> prometheus[37800]:/usr/local/go/src/runtime/proc.go:363 +0xd6 
> fp=0xc6efb0 sp=0xc6ef90 pc=0x43b736
> prometheus[37800]: runtime.goparkunlock(...)
> prometheus[37800]:/usr/local/go/src/runtime/proc.go:369
> prometheus[37800]: runtime.forcegchelper()
> prometheus[37800]:/usr/local/go/src/runtime/proc.go:302 +0xa5 
> fp=0xc6efe0 sp=0xc6efb0 pc=0x43b5c5
> prometheus[37800]: runtime.goexit()
> prometheus[37800]:/usr/local/go/src/runtime/asm_amd64.s:1594 +0x1 
> fp=0xc6efe8 sp=0xc6efe0 pc=0x46ca01
> prometheus[37800]: created by runtime.init.6
> prometheus[37800]:/usr/local/go/src/runtime/proc.go:290 +0x25
> prometheus[37800]:
> prometheus[37800]: goroutine 3 [GC sweep wait]:
> prometheus[37800]: runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?)
> prometheus[37800]:/usr/local/go/src/runtime/proc.go:363 +0xd6 
> fp=0xc6f790 sp=0xc6f770 pc=0x43b736
> prometheus[37800]: runtime.goparkunlock(...)
> prometheus[37800]:/usr/local/go/src/runtime/proc.go:369
> prometheus[37800]: runtime.bgsweep(0x0?)
> prometheus[37800]:/usr/local/go/src/runtime/mgcsweep.go:297 +0xd7 
> fp=0xc6f7c8 sp=0xc6f790 pc=0x426717
> prometheus[37800]: runtime.gcenable.func1()
>