gen2brain / cbconvert

CBconvert is a Comic Book converter
GNU General Public License v3.0
215 stars 13 forks source link

Segfault (Linux) #42

Open rexendevar opened 15 hours ago

rexendevar commented 15 hours ago
(cbconvert-gui:744103): Gdk-CRITICAL **: 22:50:41.615: ../../../../../gdk/wayland/gdkdisplay-wayland.c:1319: Truncating shared memory file failed: Invalid argument
SIGSEGV: segmentation violation
PC=0x7691f68d7e84 m=0 sigcode=1 addr=0x40
signal arrived during cgo execution

goroutine 1 gp=0xc0000061c0 m=0 mp=0x14d3b00 [syscall]:
runtime.cgocall(0x6fd278, 0xc000117eb0)
    runtime/cgocall.go:167 +0x4b fp=0xc000117e88 sp=0xc000117e50 pc=0x47df0b
github.com/gen2brain/iup-go/iup._Cfunc_IupMainLoop()
    _cgo_gotypes.go:2255 +0x47 fp=0xc000117eb0 sp=0xc000117e88 pc=0x6cf6c7
github.com/gen2brain/iup-go/iup.MainLoop(...)
    github.com/gen2brain/iup-go/iup@v0.0.0-20241106050025-0f971ac33ed4/bind_events.go:21
main.main()
    github.com/gen2brain/cbconvert/cmd/cbconvert-gui/main.go:102 +0x258 fp=0xc000117f50 sp=0xc000117eb0 pc=0x6ea6d8
runtime.main()
    runtime/proc.go:272 +0x28b fp=0xc000117fe0 sp=0xc000117f50 pc=0x4504ab
runtime.goexit({})
    runtime/asm_amd64.s:1700 +0x1 fp=0xc000117fe8 sp=0xc000117fe0 pc=0x48b081

goroutine 2 gp=0xc000006c40 m=nil [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
    runtime/proc.go:424 +0xce fp=0xc00004cfa8 sp=0xc00004cf88 pc=0x483ace
runtime.goparkunlock(...)
    runtime/proc.go:430
runtime.forcegchelper()
    runtime/proc.go:337 +0xb3 fp=0xc00004cfe0 sp=0xc00004cfa8 pc=0x4507f3
runtime.goexit({})
    runtime/asm_amd64.s:1700 +0x1 fp=0xc00004cfe8 sp=0xc00004cfe0 pc=0x48b081
created by runtime.init.7 in goroutine 1
    runtime/proc.go:325 +0x1a

goroutine 3 gp=0xc000007180 m=nil [GC sweep wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
    runtime/proc.go:424 +0xce fp=0xc00004d780 sp=0xc00004d760 pc=0x483ace
runtime.goparkunlock(...)
    runtime/proc.go:430
runtime.bgsweep(0xc00002c080)
    runtime/mgcsweep.go:277 +0x94 fp=0xc00004d7c8 sp=0xc00004d780 pc=0x43b154
runtime.gcenable.gowrap1()
    runtime/mgc.go:203 +0x25 fp=0xc00004d7e0 sp=0xc00004d7c8 pc=0x42f885
runtime.goexit({})
    runtime/asm_amd64.s:1700 +0x1 fp=0xc00004d7e8 sp=0xc00004d7e0 pc=0x48b081
created by runtime.gcenable in goroutine 1
    runtime/mgc.go:203 +0x66

goroutine 4 gp=0xc000007340 m=nil [GC scavenge wait]:
runtime.gopark(0xc00002c080?, 0xce8740?, 0x1?, 0x0?, 0xc000007340?)
    runtime/proc.go:424 +0xce fp=0xc00004df78 sp=0xc00004df58 pc=0x483ace
runtime.goparkunlock(...)
    runtime/proc.go:430
runtime.(*scavengerState).park(0x14d2d60)
    runtime/mgcscavenge.go:425 +0x49 fp=0xc00004dfa8 sp=0xc00004df78 pc=0x438b89
runtime.bgscavenge(0xc00002c080)
    runtime/mgcscavenge.go:653 +0x3c fp=0xc00004dfc8 sp=0xc00004dfa8 pc=0x4390fc
runtime.gcenable.gowrap2()
    runtime/mgc.go:204 +0x25 fp=0xc00004dfe0 sp=0xc00004dfc8 pc=0x42f825
runtime.goexit({})
    runtime/asm_amd64.s:1700 +0x1 fp=0xc00004dfe8 sp=0xc00004dfe0 pc=0x48b081
created by runtime.gcenable in goroutine 1
    runtime/mgc.go:204 +0xa5

goroutine 5 gp=0xc000007c00 m=nil [finalizer wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
    runtime/proc.go:424 +0xce fp=0xc00004e620 sp=0xc00004e600 pc=0x483ace
runtime.runfinq()
    runtime/mfinal.go:193 +0x107 fp=0xc00004e7e0 sp=0xc00004e620 pc=0x42e907
runtime.goexit({})
    runtime/asm_amd64.s:1700 +0x1 fp=0xc00004e7e8 sp=0xc00004e7e0 pc=0x48b081
created by runtime.createfing in goroutine 1
    runtime/mfinal.go:163 +0x3d

goroutine 6 gp=0xc000156000 m=nil [chan receive]:
runtime.gopark(0x7ea0d8?, 0x0?, 0xc8?, 0x5a?, 0x1285ac8?)
    runtime/proc.go:424 +0xce fp=0xc00004c718 sp=0xc00004c6f8 pc=0x483ace
runtime.chanrecv(0xc00001a310, 0x0, 0x1)
    runtime/chan.go:639 +0x41c fp=0xc00004c790 sp=0xc00004c718 pc=0x41f51c
runtime.chanrecv1(0x450640?, 0xc00004c776?)
    runtime/chan.go:489 +0x12 fp=0xc00004c7b8 sp=0xc00004c790 pc=0x41f0f2
runtime.unique_runtime_registerUniqueMapCleanup.func1(...)
    runtime/mgc.go:1732
runtime.unique_runtime_registerUniqueMapCleanup.gowrap1()
    runtime/mgc.go:1735 +0x2f fp=0xc00004c7e0 sp=0xc00004c7b8 pc=0x43288f
runtime.goexit({})
    runtime/asm_amd64.s:1700 +0x1 fp=0xc00004c7e8 sp=0xc00004c7e0 pc=0x48b081
created by unique.runtime_registerUniqueMapCleanup in goroutine 1
    runtime/mgc.go:1730 +0x96

rax    0x7691f7426ec0
rbx    0x7ffa8
rcx    0x1ffc2
rdx    0x7691f7426540
rdi    0x0
rsi    0x0
rbp    0x0
rsp    0x7ffc23e3d7f8
r8     0x7ffa8
r9     0x1ffea
r10    0x0
r11    0x293
r12    0x3431a7d0
r13    0x1ffea
r14    0x7691f7426ec0
r15    0x1ffc2
rip    0x7691f68d7e84
rflags 0x10202
cs     0x33
fs     0x0
gs     0x0

this happens regardless of install method. i'm not installing go to check if it still happens when i compile it myself

gen2brain commented 15 hours ago

Are you runinng from the VM ?

rexendevar commented 15 hours ago

no this is on bare metal. it's a really shit computer tho

gen2brain commented 15 hours ago

Run with GDK_BACKEND=xcb to workaround the issue. It segfaults in GTK/GDK code.

On Tue, Nov 19, 2024, 08:08 rexendevar @.***> wrote:

no this is on bare metal. it's a really shit computer tho

— Reply to this email directly, view it on GitHub https://github.com/gen2brain/cbconvert/issues/42#issuecomment-2484858014, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAEICVJR4IJ67NEHE24Y7D2BLPWPAVCNFSM6AAAAABSBLGUDSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBUHA2TQMBRGQ . You are receiving this because you commented.Message ID: @.***>

gen2brain commented 15 hours ago

Can you tell me the OS an the version, something old again?

rexendevar commented 15 hours ago

this is zorin os 17.2. i'm running with that variable i think, and it's not segfaulting but it's not doing anything else either. literally no terminal output.

gen2brain commented 14 hours ago

It is not expected for a GUI app to have any output. It will show warnings and errors. See CLI app if that is what you want.

On Tue, Nov 19, 2024, 08:23 rexendevar @.***> wrote:

this is zorin os 17.2. i'm running with that variable i think, and it's not segfaulting but it's not doing anything else either. literally no terminal output.

— Reply to this email directly, view it on GitHub https://github.com/gen2brain/cbconvert/issues/42#issuecomment-2484880444, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAEICX4JKBF34J3DJ6QICD2BLRORAVCNFSM6AAAAABSBLGUDSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBUHA4DANBUGQ . You are receiving this because you commented.Message ID: @.***>