View previous topic :: View next topic |
Author |
Message |
lebarjack n00b
Joined: 11 Jun 2003 Posts: 47 Location: Lille - France
|
Posted: Fri Dec 02, 2022 5:15 pm Post subject: [SOLVED] Debugging enlightenment (with ASAN) |
|
|
Hi everybody,
I encounter frequent crashes of enlightenment when interacting with discord (I suspect).
I would like to provide a useful stack trace or core dump and enlightenment has some safeguard which permit this [1].
I have read the gentoo wiki and applied what was suggested [2].
Enlightenment and efl are compiled with debugsyms and installsources but still, when a crash occurs, the enlightenment safeguard tells it is not able to launch gdb.
Anybody knows how to install efl & enlightenment with portage so that I obtain useful debugging information?
1. https://www.enlightenment.org/contrib/enlightenment-debug.md
2. https://wiki.gentoo.org/wiki/Debugging
Last edited by lebarjack on Fri Feb 03, 2023 2:28 pm; edited 1 time in total |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1531 Location: South America
|
Posted: Fri Dec 02, 2022 9:29 pm Post subject: Re: Debugging enlightenment |
|
|
Do the instructions not work? Doesn't the the enlightenment-start process display the "Enlightenment Error" pop-up after a segfault? Does attaching GDB to the enlightenment process fail? How exactly? _________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
lebarjack n00b
Joined: 11 Jun 2003 Posts: 47 Location: Lille - France
|
Posted: Sat Dec 03, 2022 9:48 am Post subject: |
|
|
The instructions seem to work if I send a SIGSEGV, but when the real crash occurs, I get the guru meditation which says that it couldn't run gdb to get a backtrace.
.e-crashdump.txt read:
Code: | The program is not being run. |
I was to quick to cancel the dialog, but I will try to attach to the process with Code: | gdb enlightenment $(pidof enlightenment) | the next time enlightenment crash. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Sat Dec 03, 2022 4:17 pm Post subject: |
|
|
You could attach gdb prior to the crash, and it will automatically trap when the signal occurs. |
|
Back to top |
|
|
lebarjack n00b
Joined: 11 Jun 2003 Posts: 47 Location: Lille - France
|
Posted: Thu Dec 08, 2022 8:17 am Post subject: |
|
|
It seems I cannot attach gdb to the process. It's already monitored by enlightenment_start
I tried to get rid of the "ptrace: Operation not permitted." but I have no hardened kernel, nor have I any yama directory in my /proc
Code: |
gdb $(pidof enlightenment)
...
Reading symbols from enlightenment...
Reading symbols from /usr/lib/debug//usr/bin/enlightenment.debug...
Attaching to program: /usr/bin/enlightenment, process 76106
warning: process 76106 is already traced by process 540
ptrace: Operation not permitted.
/home/lebarjack/76106: No such file or directory.
(gdb)
|
Code: |
540 ? S 0:00 \_ /usr/bin/enlightenment_start
76106 ? Sl 0:05 \_ /usr/bin/enlightenment
76117 ? SNl 0:00 \_ /usr/lib64/enlightenment/utils/enlightenment_system
76181 ? SN 0:00 \_ /usr/lib64/enlightenment/utils/enlightenment_fm
|
|
|
Back to top |
|
|
lebarjack n00b
Joined: 11 Jun 2003 Posts: 47 Location: Lille - France
|
Posted: Sun Dec 11, 2022 5:39 am Post subject: |
|
|
Hi,
I got the crash to reproduce and got some information in enlightenment's crashdump file.
Yet, the guru meditation dialog announce that it couldn't launch a gdb session.
At this point, I think I will contact upstream.
If someone is interested, I published some information here:
https://pastebin.com/13XUNNru
Thanks a lot for your time and your help. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Sun Dec 11, 2022 4:37 pm Post subject: |
|
|
I find it weird and a bit concerning that upstream rigged their own ptrace monitor to manage this constantly. That seems like a lot of effort for a stable program that should not need monitoring, which suggests they think it is not stable.
The backtrace would be more useful if libc had symbols, but I think this is the guilty part: Code: | Thread 1 (Thread 0x7f05125ee280 (LWP 76106) "enlightenment"):
...
#11 0x00007f0513779bd2 in raise () from /usr/lib64/libc.so.6
No symbol table info available.
#12 0x00007f0513764471 in abort () from /usr/lib64/libc.so.6
No symbol table info available.
#13 0x00007f05137b9d78 in ?? () from /usr/lib64/libc.so.6
No symbol table info available.
#14 0x00007f05137cf62a in ?? () from /usr/lib64/libc.so.6
No symbol table info available.
#15 0x00007f05137cfffc in ?? () from /usr/lib64/libc.so.6
No symbol table info available.
#16 0x00007f05137d264c in ?? () from /usr/lib64/libc.so.6
No symbol table info available.
#17 0x00007f05137d373a in malloc () from /usr/lib64/libc.so.6
No symbol table info available.
#18 0x00005590dccdd2df in _e_comp_shapes_update_job (d=<optimized out>) at ../enlightenment-0.25.4/src/bin/e_comp.c:996 | If I had to guess, the heap is corrupted, the call to malloc detected that corruption, and led to a call to abort. If so, running under a heap debugger might yield more information. Valgrind is very good at that, but also quite slow. |
|
Back to top |
|
|
lebarjack n00b
Joined: 11 Jun 2003 Posts: 47 Location: Lille - France
|
Posted: Thu Dec 15, 2022 2:19 am Post subject: |
|
|
I was told to build efl and enlightenment with ASan to produce a better crash dump.
I naively thought I would just add some -fsanitize to my CFLAGS, but this does not work...
Meson quickly spits some error
Here is my efl env file
Code: |
$ cat /etc/portage/env/dev-libs/efl
CFLAGS="${CFLAGS} -fsanitize=address"
CXXFLAGS="${CXXFLAGS} -fsanitize=address"
LDFLAGS="${LDFLAGS} -fsanitize=address"
|
in short, it stops here
Code: |
>>> Configuring source in /var/tmp/portage/dev-libs/efl-1.26.3/work/efl-1.26.3 ...
meson setup --libdir lib64 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /var/tmp/portage/dev-libs/efl-1.26.3/temp/python3.11/pkgconfig:/usr/share/pkgconfig --pkg-config-path /var/tmp/portage/dev-libs/efl-1.26.3/temp/python3.11/pkgconfig:/usr/share/pkgconfig --native-file /var/tmp/portage/dev-libs/efl-1.26.3/temp/meson.x86_64-pc-linux-gnu.amd64.ini -Db_pch=false -Dwerror=false --buildtype plain --buildtype=plain -D buffer=false -D build-tests=false -D cocoa=false -D drm-deprecated=false -D g-mainloop=false -D mono-beta=false -D dotnet=false -D pixman=false -D wl-deprecated=false -D dotnet-stylecop-severity=Warning -D edje-sound-and-video=true -D eeze=true -D input=true -D install-eo-files=true -D libmount=true -D native-arch-optimization=true -D xinput2=true -D xinput22=true -Dx11=true -Ddebug-threads=true -Ddrm=false -Dbuild-examples=false -Dfb=false -Dfontconfig=true -Dfribidi=true -Dglib=false -Dgstreamer=true -Dharfbuzz=false -Dhyphen=false -Delua=false -Dnls=true -Dphysics=true -Dpulseaudio=true -Dsdl=true -Daudio=true -Dtslib=false -Dv4l2=false -Dvnc-server=false -Dwl=false -Dxpresent=false -Davahi=false -Dembedded-lz4=false -D systemd=true -D opengl=full -D crypto=openssl -D network-backend=none -D evas-loaders-disabler=avif,bmp,wbmp,dds,heif,ico,json,pmaps,ps,psd,raw,tga,tgv,webp,xcf -D ecore-imf-loaders-disabler=ibus -D bindings=cxx -D lua-interpreter=lua /var/tmp/portage/dev-libs/efl-1.26.3/work/efl-1.26.3 /var/tmp/portage/dev-libs/efl-1.26.3/work/efl-1.26.3-build
The Meson build system
Version: 0.63.3
Source dir: /var/tmp/portage/dev-libs/efl-1.26.3/work/efl-1.26.3
Build dir: /var/tmp/portage/dev-libs/efl-1.26.3/work/efl-1.26.3-build
Build type: native build
Project name: efl
Project version: 1.26.3
==121==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
meson.build:1:0: ERROR: Executables created by c compiler x86_64-pc-linux-gnu-gcc are not runnable.
A full log can be found at /var/tmp/portage/dev-libs/efl-1.26.3/work/efl-1.26.3-build/meson-logs/meson-log.txt
|
Here is the output of emerge -pqv '=dev-libs/efl-1.26.3::gentoo'
Code: |
$ emerge -pqv '=dev-libs/efl-1.26.3::gentoo'
[ebuild R ] dev-libs/efl-1.26.3 USE="X debug doc eet fontconfig fribidi gstreamer jpeg2k nls opengl pdf physics pulseaudio scim sdl sound svg system-lz4 systemd tiff xim xpm -avif -bmp -connman -dds -drm (-efl-one) (-elogind) -examples -fbcon -gif -glib -gnutls -harfbuzz -heif -hyphen -ibus -ico -json (-mono) -pmaps -postscript -psd -raw -tga -tgv -tslib -unwind -v4l -vnc -wayland -webp -xcf -xpresent -zeroconf" LUA_SINGLE_TARGET="lua5-1 -luajit"
|
Here are the other relevant output:
output of `emerge --info '=dev-libs/efl-1.26.3::gentoo'`: https://pastebin.com/Xr9pM941
build log: https://pastebin.com/8HATMPwk
meson log: https://pastebin.com/mAibGskw |
|
Back to top |
|
|
lebarjack n00b
Joined: 11 Jun 2003 Posts: 47 Location: Lille - France
|
Posted: Mon Dec 19, 2022 3:54 am Post subject: |
|
|
I seems I have problem emerging any package with ASAN as long as it uses meson building tools.
I will open a new thread concerning this subject on portage & programming. |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1678
|
Posted: Fri Jan 27, 2023 9:19 am Post subject: |
|
|
Try FEATURES="-sandbox -usersandbox" emerge -v1 ...
This is required because both ASAN and sandbox use LD_PRELOAD. I'll document this on the wiki later. |
|
Back to top |
|
|
lebarjack n00b
Joined: 11 Jun 2003 Posts: 47 Location: Lille - France
|
Posted: Thu Feb 02, 2023 8:21 am Post subject: |
|
|
Here is my /etc/portage/env/dev-libs/efl:
Code: |
FEATURES="-sandbox -usersandbox"
CFLAGS="${CFLAGS} -fsanitize=address"
CXXFLAGS="${CXXFLAGS} -fsanitize=address"
LDFLAGS="${LDFLAGS} -fsanitize=address"
|
I got those errors:
Code: |
The Meson build system
Version: 0.64.1
Source dir: /var/tmp/portage/dev-libs/efl-1.26.3-r1/work/efl-1.26.3
Build dir: /var/tmp/portage/dev-libs/efl-1.26.3-r1/work/efl-1.26.3-build
Build type: native build
Project name: efl
Project version: 1.26.3
meson.build:1:0: ERROR: Executables created by c compiler x86_64-pc-linux-gnu-gcc are not runnable.
|
Here is the relevant log:
Code: |
Sanity testing C compiler: x86_64-pc-linux-gnu-gcc
Is cross compiler: False.
Sanity check compiler command line: x86_64-pc-linux-gnu-gcc sanitycheckc.c -o sanitycheckc.exe -O2 -pipe -ggdb3 -fsanitize=address -fsanitize=address -fsanitize=address -fsanitize=address -D_FILE_OFFSET_BITS=64 -Wl,-O1 -Wl,--as-needed
Sanity check compile stdout:
-----
Sanity check compile stderr:
-----
Running test binary command: /var/tmp/portage/dev-libs/efl-1.26.3-r1/work/efl-1.26.3-build/meson-private/sanitycheckc.exe
meson.build:1:0: ERROR: Executables created by c compiler x86_64-pc-linux-gnu-gcc are not runnable.
|
|
|
Back to top |
|
|
lebarjack n00b
Joined: 11 Jun 2003 Posts: 47 Location: Lille - France
|
Posted: Thu Feb 02, 2023 8:35 am Post subject: |
|
|
Quote: | Enabling ASan is done by passing the -Db_sanitize=address option to the meson build system, |
I found this while googling the problem.
I will try that later. |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1678
|
Posted: Fri Feb 03, 2023 11:24 am Post subject: |
|
|
Could you maybe share the meson log in full? Also, is USE=sanitize enabled on gcc? |
|
Back to top |
|
|
lebarjack n00b
Joined: 11 Jun 2003 Posts: 47 Location: Lille - France
|
Posted: Fri Feb 03, 2023 11:57 am Post subject: |
|
|
Yes, gcc is installed with the use sanitize
Here is the full meson-log.txt
Code: | Build started at 2023-02-03T12:46:23.405882
Main binary: /usr/bin/python3.10
Build Options: -Db_pch=false -Dwerror=false -Dbuffer=false -Dbuild-tests=false -Dcocoa=false -Ddrm-deprecated=false -Dg-mainloop=false -Dmono-beta=false -Ddotnet=false -Dpixman=false -Dwl-deprecated=false -Ddotnet-stylecop-severity=Warning -Dedje-sound-and-video=true -Deeze=true -Dinput=true -Dinstall-eo-files=true -Dlibmount=true -Dnative-arch-optimization=true -Dxinput2=true -Dxinput22=true -Dx11=true -Ddebug-threads=true -Ddrm=false -Dbuild-examples=false -Dfb=false -Dfontconfig=true -Dfribidi=true -Dglib=false -Dgstreamer=true -Dharfbuzz=false -Dhyphen=false -Delua=false -Dnls=true -Dphysics=true -Dpulseaudio=true -Dsdl=true -Daudio=true -Dtslib=false -Dv4l2=false -Dvnc-server=false -Dwl=false -Dxpresent=false -Davahi=false -Dembedded-lz4=false -Dsystemd=true -Dopengl=full -Dcrypto=openssl -Dnetwork-backend=none -Devas-loaders-disabler=avif,bmp,wbmp,dds,heif,ico,json,pmaps,ps,psd,raw,tga,tgv,webp,xcf -Decore-imf-loaders-disabler=ibus -Dbindings=cxx -Dlua-interpreter=lua -Dprefix=/usr -Dlibdir=lib64 -Dlocalstatedir=/var/lib -Dsysconfdir=/etc -Dbuildtype=plain -Dwrap_mode=nodownload -Dbuild.pkg_config_path=/var/tmp/portage/dev-libs/efl-1.26.3-r1/temp/python3.11/pkgconfig:/usr/share/pkgconfig -Dpkg_config_path=/var/tmp/portage/dev-libs/efl-1.26.3-r1/temp/python3.11/pkgconfig:/usr/share/pkgconfig --native-file=/var/tmp/portage/dev-libs/efl-1.26.3-r1/temp/meson.x86_64-pc-linux-gnu.amd64.ini
Python system: Linux
The Meson build system
Version: 0.64.1
Source dir: /var/tmp/portage/dev-libs/efl-1.26.3-r1/work/efl-1.26.3
Build dir: /var/tmp/portage/dev-libs/efl-1.26.3-r1/work/efl-1.26.3-build
Build type: native build
Project name: efl
Project version: 1.26.3
-----
Detecting compiler via: x86_64-pc-linux-gnu-gcc --version
compiler returned <Popen: returncode: 0 args: ['x86_64-pc-linux-gnu-gcc', '--version']>
compiler stdout:
x86_64-pc-linux-gnu-gcc (Gentoo 12.2.1_p20230121-r1 p10) 12.2.1 20230121
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
compiler stderr:
Running command: x86_64-pc-linux-gnu-gcc -E -dM -
-----
Detecting linker via: x86_64-pc-linux-gnu-gcc -Wl,--version -O2 -pipe -ggdb3 -fsanitize=address -fsanitize=address -fsanitize=address -fsanitize=address -Wl,-O1 -Wl,--as-needed -fsanitize=address -fsanitize=address -fsanitize=address -fsanitize=address
linker returned <Popen: returncode: 0 args: ['x86_64-pc-linux-gnu-gcc', '-Wl,--version', '-O...>
linker stdout:
GNU ld (Gentoo 2.39 p5) 2.39.0
Copyright (C) 2022 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
linker stderr:
collect2 version 12.2.1 20230121
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld -plugin /usr/libexec/gcc/x86_64-pc-linux-gnu/12/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-pc-linux-gnu/12/lto-wrapper -plugin-opt=-fresolution=/var/tmp/portage/dev-libs/efl-1.26.3-r1/temp/ccDb3f4v.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/12/crtbeginS.o -L/usr/lib/gcc/x86_64-pc-linux-gnu/12 -L/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../.. /usr/lib/gcc/x86_64-pc-linux-gnu/12/libasan_preinit.o -lasan --version -O1 --as-needed -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-pc-linux-gnu/12/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../lib64/crtn.o
Sanity testing C compiler: x86_64-pc-linux-gnu-gcc
Is cross compiler: False.
Sanity check compiler command line: x86_64-pc-linux-gnu-gcc sanitycheckc.c -o sanitycheckc.exe -O2 -pipe -ggdb3 -fsanitize=address -fsanitize=address -fsanitize=address -fsanitize=address -D_FILE_OFFSET_BITS=64 -Wl,-O1 -Wl,--as-needed
Sanity check compile stdout:
-----
Sanity check compile stderr:
-----
Running test binary command: /var/tmp/portage/dev-libs/efl-1.26.3-r1/work/efl-1.26.3-build/meson-private/sanitycheckc.exe
meson.build:1:0: ERROR: Executables created by c compiler x86_64-pc-linux-gnu-gcc are not runnable.
|
Here is the emerge info:
Code: | Portage 3.0.43 (python 3.10.9-final-0, default/linux/amd64/17.1/systemd/merged-usr, gcc-12, glibc-2.36-r5, 5.15.88-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-5.15.88-gentoo-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.36
KiB Mem: 16348352 total, 1615704 free
KiB Swap: 7999484 total, 7993540 free
Timestamp of repository gentoo: Fri, 03 Feb 2023 07:30:01 +0000
Head commit of repository gentoo: 6c5804da72e083a7ed0c6425a23f6fb9a245da0d
Timestamp of repository steam-overlay: Mon, 30 Jan 2023 17:48:24 +0000
Head commit of repository steam-overlay: cb2e509008f4686631582637696f9f98d10588d6
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
app-misc/pax-utils: 1.3.5::gentoo
app-shells/bash: 5.1_p16-r2::gentoo
dev-java/java-config: 2.3.1::gentoo
dev-lang/perl: 5.36.0-r1::gentoo
dev-lang/python: 3.10.9-r1::gentoo, 3.11.1-r1::gentoo
dev-lang/rust-bin: 1.66.1::gentoo
dev-util/cmake: 3.24.3::gentoo
dev-util/meson: 0.64.1::gentoo
sys-apps/baselayout: 2.9::gentoo
sys-apps/sandbox: 2.29::gentoo
sys-apps/systemd: 252.4-r1::gentoo
sys-devel/autoconf: 2.71-r5::gentoo
sys-devel/automake: 1.16.5::gentoo
sys-devel/binutils: 2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang: 15.0.7-r1::gentoo
sys-devel/gcc: 12.2.1_p20230121-r1::gentoo
sys-devel/gcc-config: 2.8::gentoo
sys-devel/libtool: 2.4.7-r1::gentoo
sys-devel/llvm: 15.0.7::gentoo
sys-devel/make: 4.3::gentoo
sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc: 2.36-r5::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: True
sync-rsync-verify-jobs: 1
sync-rsync-extra-opts:
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-max-age: 24
local
location: /usr/local/portage
masters: gentoo
volatile: True
steam-overlay
location: /var/db/repos/steam-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
masters: gentoo
volatile: True
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf /usr/share/sddm/scripts/Xsetup"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/fpm-php7.4/ext-active/ /etc/php/phpdbg-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X acl acpi alsa amd64 appindicator bluetooth bzip2 cairo cli crypt cups curl dbus dri flac fontconfig gdbm gstreamer iconv icu introspection ipv6 jpeg jpeg2k lame libglvnd libnotify libtirpc mmx modemmanager mp3 multilib ncurses nls nptl offensive ogg openal opengl openmp pam pcre pcre16 pdf perl png policykit pulseaudio python qt5 readline sdl seccomp sse sse2 ssl svg systemd test-rust theora tiff truetype udev unicode vdpau vim-syntax vorbis vulkan xattr xcb xcomposite xinerama xkb xrandr xvid zlib" ABI_X86="32 64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
=================================================================
Package Settings
=================================================================
dev-libs/efl-1.26.3-r1::gentoo was built with the following:
USE="X debug doc eet fontconfig fribidi gstreamer jpeg2k nls opengl pdf physics pulseaudio scim sdl sound svg system-lz4 systemd tiff xim xpm -avif -bmp -connman -dds -drm (-efl-one) (-elogind) -examples -fbcon -gif -glib -gnutls -harfbuzz -heif -hyphen -ibus -ico -json (-mono) -pmaps -postscript -psd -raw -tga -tgv -tslib -unwind -v4l -vnc -wayland -webp -xcf -xpresent -zeroconf" ABI_X86="(64)" LUA_SINGLE_TARGET="lua5-1 -luajit"
CFLAGS="-O2 -pipe -ggdb3"
CXXFLAGS="-O2 -pipe -ggdb3"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
|
|
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1678
|
Posted: Fri Feb 03, 2023 11:58 am Post subject: |
|
|
Thanks! Could you try the settings at https://wiki.gentoo.org/wiki/AddressSanitizer#Per-package?
Note that you may need to comment out the *FLAGS bits and only set MYMESONARGS for a Meson package (because it'll handle putting the flags in the right place for you). |
|
Back to top |
|
|
lebarjack n00b
Joined: 11 Jun 2003 Posts: 47 Location: Lille - France
|
Posted: Fri Feb 03, 2023 2:27 pm Post subject: |
|
|
Thanks a lot! It works ok.
And thanks for updating the wiki. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|