
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?lebarjack wrote:1. https://www.enlightenment.org/contrib/e ... t-debug.md
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though
Code: Select all
The program is not being run.Code: Select all
gdb enlightenment $(pidof enlightenment)Code: Select all
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: Select all
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
Code: Select all
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:996Code: Select all
$ cat /etc/portage/env/dev-libs/efl
CFLAGS="${CFLAGS} -fsanitize=address"
CXXFLAGS="${CXXFLAGS} -fsanitize=address"
LDFLAGS="${LDFLAGS} -fsanitize=address"
Code: Select all
>>> 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
Code: Select all
$ 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"
Code: Select all
FEATURES="-sandbox -usersandbox"
CFLAGS="${CFLAGS} -fsanitize=address"
CXXFLAGS="${CXXFLAGS} -fsanitize=address"
LDFLAGS="${LDFLAGS} -fsanitize=address"
Code: Select all
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.
Code: Select all
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.
Code: Select all
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.
Code: Select all
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"