gophone icon indicating copy to clipboard operation
gophone copied to clipboard

crash with linux amd64 binary

Open vtolstov opened this issue 8 months ago • 6 comments

gophone -h Illegal instruction (core dumped)

file gophone gophone: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, no section header

uname -r 6.5.12-100.fc37.x86_64

vtolstov avatar Mar 26 '25 17:03 vtolstov

I have working locally. Higher kernel version. Maybe share coredump. Check latest version as well, sometimes I have wrong build

emiago avatar Mar 26 '25 22:03 emiago

(gdb) run answer -l 0.0.0.0:5060
Starting program: /home/vtolstov/bin/gophone answer -l 0.0.0.0:5060

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.fedoraproject.org/>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.

Program received signal SIGILL, Illegal instruction.
0x000000000040c1f4 in ?? ()
(gdb) 

vtolstov avatar Mar 31 '25 10:03 vtolstov

i'm update my fedora to latest stable release, but nothing changed

vtolstov avatar Mar 31 '25 10:03 vtolstov

I am sending you build. Using fedora as well. https://github.com/emiago/gophone/releases/download/v1.7.0/gophone

This one is clean go build, no compression.

If this still breaks, send me ldd gophone output.

We can take a build without C deps and see does it work from there.

emiago avatar Mar 31 '25 22:03 emiago

ldd gophone 
        linux-vdso.so.1 (0x00007f7641d0c000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f7641ce5000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f7641bff000)
        libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f7641800000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f7641bd0000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f764160d000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f7641d0e000)

gophone answer -l 0.0.0.0:5060
Illegal instruction (core dumped)

vtolstov avatar May 05 '25 19:05 vtolstov

Hi @vtolstov . I believe there could be some CPU requirement here. Maybe from whisper. You have now docker build emiago/gophone. This one is stripped, and I believe you should be able to run this.

You can send me lshw -c cpu To check your capabilities.

emiago avatar May 05 '25 20:05 emiago