mautrix / signal

A Matrix-Signal puppeting bridge
GNU Affero General Public License v3.0
514 stars 75 forks source link

45f97de8 Explodes #570

Open olmari opened 4 hours ago

olmari commented 4 hours ago

Version https://github.com/mautrix/signal/commit/45f97de8db3f44537ec40544f57b0c4cd786f2ee

Compiling myself, maybe relates, maybe not, but new error or warning apart the old suggestions:

warning: `libsignal-bridge-types` (lib) generated 1 warning (run `cargo fix --lib -p libsignal-bridge-types` to apply 1 suggestion)
warning: `libsignal-bridge` (lib) generated 15 warnings (run `cargo fix --lib -p libsignal-bridge` to apply 15 suggestions)
   Compiling libsignal-ffi v0.62.0 (/opt/mautrix-signal/mautrix-signal/pkg/libsignalgo/libsignal/rust/bridge/ffi)
    Finished `release` profile [optimized] target(s) in 31.11s
# go.mau.fi/mautrix-signal/cmd/mautrix-signal
/usr/bin/ld: warning: 2e40c9e35e9506f4-sha256_x64.o: missing .note.GNU-stack section implies executable stack
/usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
Nov 15 19:41:43 morpheus systemd[1]: Starting mautrix-signal.service - Mautrix-Signal bridge bot...
Nov 15 19:41:43 morpheus systemd[1]: Started mautrix-signal.service - Mautrix-Signal bridge bot.
Nov 15 19:41:43 morpheus mautrix-signal[359107]: runtime/cgo: pthread_create failed: Operation not permitted
Nov 15 19:41:43 morpheus mautrix-signal[359107]: SIGABRT: abort
Nov 15 19:41:43 morpheus mautrix-signal[359107]: PC=0x7f64ec0bfebc m=0 sigcode=18446744073709551610
Nov 15 19:41:44 morpheus mautrix-signal[359107]: goroutine 0 gp=0x295f980 m=0 mp=0x2960e00 [idle]:
Nov 15 19:41:44 morpheus mautrix-signal[359107]: runtime: g 0 gp=0x295f980: unknown pc 0x7f64ec0bfebc
Nov 15 19:41:44 morpheus mautrix-signal[359107]: stack: frame={sp:0x7ffda11f90e0, fp:0x0} stack=[0x7ffda09fb000,0x7ffda11f9540)
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f8fe0:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f8ff0:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9000:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9010:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9020:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9030:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9040:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9050:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9060:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9070:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9080:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9090:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f90a0:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f90b0:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f90c0:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f90d0:  0x0000000000000000  0x00007f64ec0bfeae
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f90e0: <0x0000000000000000  0xfdfe10a58ec25900
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f90f0:  0x0000000000000006  0x00007f64ec030980
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9100:  0x00007ffda11f93b0  0x0000000000000001
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9110:  0x000000000295f980  0x00007f64ec070fb2
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9120:  0x00007f64ec208e70  0x00007f64ec05b472
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9130:  0x0000000000000020  0x0000000000000001
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9140:  0x0000000000000000  0x00007f64ec0b5fc5
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9150:  0x0000000000000000  0x00007f64ec208680
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9160:  0x00007f64ec2045e0  0x00007f64ec208703
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9170:  0x0000000000000d68  0x00007f64ec0b5380
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9180:  0x0000000000000000  0x0000000000000001
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9190:  0x000000000000000a  0x00007ffda11f93b0
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f91a0:  0x0000000000000001  0x000000000295f980
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f91b0:  0x01ffffffffffffff  0x00007f64ec0b6fd9
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f91c0:  0x00007f64ec208680  0xfdfe10a58ec25900
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f91d0:  0x00007f64ec208840  0x00007f64ec208840
Nov 15 19:41:44 morpheus mautrix-signal[359107]: runtime: g 0 gp=0x295f980: unknown pc 0x7f64ec0bfebc
Nov 15 19:41:44 morpheus mautrix-signal[359107]: stack: frame={sp:0x7ffda11f90e0, fp:0x0} stack=[0x7ffda09fb000,0x7ffda11f9540)
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f8fe0:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f8ff0:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9000:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9010:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9020:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9030:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9040:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9050:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9060:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9070:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9080:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9090:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f90a0:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f90b0:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f90c0:  0x0000000000000000  0x0000000000000000
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f90d0:  0x0000000000000000  0x00007f64ec0bfeae
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f90e0: <0x0000000000000000  0xfdfe10a58ec25900
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f90f0:  0x0000000000000006  0x00007f64ec030980
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9100:  0x00007ffda11f93b0  0x0000000000000001
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9110:  0x000000000295f980  0x00007f64ec070fb2
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9120:  0x00007f64ec208e70  0x00007f64ec05b472
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9130:  0x0000000000000020  0x0000000000000001
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9140:  0x0000000000000000  0x00007f64ec0b5fc5
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9150:  0x0000000000000000  0x00007f64ec208680
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9160:  0x00007f64ec2045e0  0x00007f64ec208703
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9170:  0x0000000000000d68  0x00007f64ec0b5380
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9180:  0x0000000000000000  0x0000000000000001
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f9190:  0x000000000000000a  0x00007ffda11f93b0
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f91a0:  0x0000000000000001  0x000000000295f980
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f91b0:  0x01ffffffffffffff  0x00007f64ec0b6fd9
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f91c0:  0x00007f64ec208680  0xfdfe10a58ec25900
Nov 15 19:41:44 morpheus mautrix-signal[359107]: 0x00007ffda11f91d0:  0x00007f64ec208840  0x00007f64ec208840
Nov 15 19:41:44 morpheus mautrix-signal[359107]: goroutine 1 gp=0xc0000061c0 m=0 mp=0x2960e00 [running]:
Nov 15 19:41:44 morpheus mautrix-signal[359107]: runtime.systemstack_switch()
Nov 15 19:41:44 morpheus mautrix-signal[359107]:         /opt/mautrix-signal/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.3.linux-amd64/src/runtime/asm_amd64.s:479 +0x8 fp=0xc00006e750 sp=0xc00006e740 pc=0x4b5ca8
Nov 15 19:41:44 morpheus mautrix-signal[359107]: runtime.main()
Nov 15 19:41:44 morpheus mautrix-signal[359107]:         /opt/mautrix-signal/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.3.linux-amd64/src/runtime/proc.go:172 +0x67 fp=0xc00006e7e0 sp=0xc00006e750 pc=0x478f87
Nov 15 19:41:44 morpheus mautrix-signal[359107]: runtime.goexit({})
Nov 15 19:41:44 morpheus mautrix-signal[359107]:         /opt/mautrix-signal/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.3.linux-amd64/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc00006e7e8 sp=0xc00006e7e0 pc=0x4b7cc1
Nov 15 19:41:44 morpheus mautrix-signal[359107]: rax    0x0
Nov 15 19:41:44 morpheus mautrix-signal[359107]: rbx    0x57ac3
Nov 15 19:41:44 morpheus mautrix-signal[359107]: rcx    0x7f64ec0bfebc
Nov 15 19:41:44 morpheus mautrix-signal[359107]: rdx    0x6
Nov 15 19:41:44 morpheus mautrix-signal[359107]: rdi    0x57ac3
Nov 15 19:41:44 morpheus mautrix-signal[359107]: rsi    0x57ac3
Nov 15 19:41:44 morpheus mautrix-signal[359107]: rbp    0x7f64ec030980
Nov 15 19:41:44 morpheus mautrix-signal[359107]: rsp    0x7ffda11f90e0
Nov 15 19:41:44 morpheus mautrix-signal[359107]: r8     0x0
Nov 15 19:41:44 morpheus mautrix-signal[359107]: r9     0x73
Nov 15 19:41:44 morpheus mautrix-signal[359107]: r10    0x8
Nov 15 19:41:44 morpheus mautrix-signal[359107]: r11    0x246
Nov 15 19:41:44 morpheus mautrix-signal[359107]: r12    0x6
Nov 15 19:41:44 morpheus mautrix-signal[359107]: r13    0x1
Nov 15 19:41:44 morpheus mautrix-signal[359107]: r14    0x295f980
Nov 15 19:41:44 morpheus mautrix-signal[359107]: r15    0x1ffffffffffffff
Nov 15 19:41:44 morpheus mautrix-signal[359107]: rip    0x7f64ec0bfebc
Nov 15 19:41:44 morpheus mautrix-signal[359107]: rflags 0x246
Nov 15 19:41:44 morpheus mautrix-signal[359107]: cs     0x33
Nov 15 19:41:44 morpheus mautrix-signal[359107]: fs     0x0
Nov 15 19:41:44 morpheus mautrix-signal[359107]: gs     0x0
Nov 15 19:41:44 morpheus systemd[1]: mautrix-signal.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Nov 15 19:41:44 morpheus systemd[1]: mautrix-signal.service: Failed with result 'exit-code'.

The very previous commit compiles and runs just fine.

olmari commented 3 hours ago

Okay the culprit ended up to be the systemd unit hardening option

MemoryDenyWriteExecute=true

When that is commented out this commit starts up too... So Maybe this should be mentioned in hardening options unless we could bring this up to the upstream library?