[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: appimage with 24.04


On 8/9/25 07:09, Benoît Minisini wrote:
Le 09/08/2025 à 15:15, Brian G a écrit :
On 8/9/25 00:17, Benoît Minisini wrote:
Le 08/08/2025 à 22:57, Brian G a écrit :
On 8/8/25 10:48, Benoît Minisini wrote:
Le 08/08/2025 à 19:29, Brian G a écrit :
Little more progress.

      I built the debug version of the AppRun app.
      I tracked it down specifically to gbr3->gbx3 generating the error when the version of libc6 is the one being used from the bundle.       Trying to track down if some lib path or ld path is being set incorrectly. Now if someone knows how to debug the       gbr3->gbx3 or somehow turn on debug messages, would be very very helpful!

     Ben is it possible to turn on debug messages at runtime in those apps?  would have to be very early during startup.


I don't understand what you are talking about. Can you explain?

When I try to have ltrace run the gbr3 i get this:

APPRUN_DEBUG: Execute Path:/usr/bin/ltrace .. is accessible
Couldn't determine base address of lib64/ld-linux-x86-64.so.2
ltrace: ltrace-elf.c:419: ltelf_destroy: Assertion `(&lte- >plt_relocs)-  >elt_size == sizeof(GElf_Rela)' failed.
Aborted (core dumped)


But 'gbr3' is just a symbolic link to 'gbx3'. It's the same program.

yes i know that, that is not the issue, is there some way to identify what libs are needed by gbx3 in detail at startup


Here is what 'ldd' tells me:

[benoit-desktop ~]$ ldd /usr/bin/gbx3
        linux-vdso.so.1 (0x00007efda8a3f000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007efda876a000)
        libm.so.6 => /usr/lib/libm.so.6 (0x00007efda8672000)
        libffi.so.8 => /usr/lib/libffi.so.8 (0x00007efda8666000)
        /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007efda8a41000)

The Gambas interpreter only relies of the default libraries of any program compiled with gcc, and one extra library, 'libffi'.

Regards,


How do i generate a gbx3 with debug info included?

Got this far with the debugger

Reading symbols from ./gbr3...
(No debugging symbols found in ./gbr3)

warning: core file may not match specified executable file.
[New LWP 353993]

warning: Could not load shared library symbols for lib64/ld-linux-x86-64.so.2.
Do you need "set solib-search-path" or "set sysroot"?

warning: Loadable section ".note.gnu.build-id" outside of ELF segments
  in /tmp/.mount_hello_SOeR4O/runtime/compat/usr/lib/x86_64-linux-gnu/libc.so.6 Warning: couldn't activate thread debugging using libthread_db: Cannot find new threads: generic error Warning: couldn't activate thread debugging using libthread_db: Cannot find new threads: generic error

warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available. Core was generated by `/tmp/.mount_hello_SOeR4O/usr/bin/gbr3 /tmp/.mount_hello_SOeR4O/usr/bin/hello_wo'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f0d87fba407 in ?? ()
(gdb)
.

It has been a long while since i needed to do this... lol


--
~~~~ Brian

Attachment: OpenPGP_0x78BFB26402F48419.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


Follow-Ups:
Re: appimage with 24.04Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
Re: appimage with 24.04Linus <olivier.cruilles@xxxxxxxx>
Re: appimage with 24.04Brian G <brian@xxxxxxxxxxxxxxxx>
Re: appimage with 24.04Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: appimage with 24.04Brian G <brian@xxxxxxxxxxxxxxxx>
Re: appimage with 24.04Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: appimage with 24.04Brian G <brian@xxxxxxxxxxxxxxxx>
Re: appimage with 24.04Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>