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

Re: gambas3 ide 3.19.1 - gbx3 [2993]: warning: 2 allocation(s) non freed.


Le 20/03/2024 à 01:11, munix9 a écrit :

found this:

$ LIBPATH="/usr/lib64" GB_GUI=gb.qt5 gambas3
gbx3 [32019]: warning: 2 allocation(s) non freed.

This is a general problem in the gambas-ide:

Welcome/FSystemInfo.class searches only in /lib and /usr/lib
In x86_64 systems, at least openSUSE and possibly Fedora and others, most libs are located in /lib64 and /usr/lib64.

Where /lib and /lib64 are respective links to /usr/lib and /usr/lib64

The search for the libs should therefore be:
on 32-bit systems search in /lib (if it is not a link) and /usr/lib
on 64-bit systems search in /lib64 (if it is not a link) and /usr/lib64 (and perhaps also under /lib and /usr/lib)

The rootfs on openSUSE Tumbleweed x86_64 looks like this:

$ ls -l /
lrwxrwxrwx   1 root root     7  2. Feb 17:16 bin -> usr/bin
dr-xr-xr-x   4 root root  4096 15. Mär 06:35 boot
drwxr-xr-x  20 root root  4680 20. Mär 00:30 dev
drwxr-xr-x 182 root root 12288 20. Mär 00:30 etc
dr-xr-xr-x   3 root root  4096 25. Mär 2023  home
lrwxrwxrwx   1 root root     7  2. Feb 17:16 lib -> usr/lib
lrwxrwxrwx   1 root root     9  2. Feb 17:16 lib64 -> usr/lib64
dr-xr-xr-x   2 root root  4096 25. Mär 2023  mnt
dr-xr-xr-x   8 root root  4096  2. Feb 10:15 opt
dr-xr-xr-x 433 root root     0 20. Mär 00:30 proc
drwx------  13 root root  4096 20. Mär 00:31 root
drwxr-xr-x  58 root root  1580 20. Mär 00:32 run
lrwxrwxrwx   1 root root     8  2. Feb 17:16 sbin -> usr/sbin
dr-xr-xr-x   5 root root  4096 25. Mär 2023  srv
dr-xr-xr-x  13 root root     0 20. Mär 00:57 sys
drwxrwxrwt  22 root root   520 20. Mär 01:00 tmp
drwxr-xr-x  13 root root  4096  2. Feb 17:16 usr
drwxr-xr-x  10 root root  4096  5. Feb 22:34 var



Thanks, I will fix that. But it does not explain the memory leak...

--
Benoît Minisini.