xen0n / loongson-overlay

Support overlay for Gentoo/Loongson users
21 stars 11 forks source link

x11-apps/xprop: /usr/lib/portage/python3.9/phase-functions.sh: line 940: 231190 Segmentation fault (core dumped) "$PORTAGE_BIN_PATH"/ebuild-ipc exit $? #14

Open HougeLangley opened 2 years ago

HougeLangley commented 2 years ago
>>> Jobs: 34 of 194 complete, 1 failed              Load avg: 1.51, 1.70, 1.90
 * Package:    x11-apps/xprop-1.2.5
 * Repository: gentoo
 * Maintainer: x11@gentoo.org
 * USE:        elibc_glibc kernel_linux loong userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking xprop-1.2.5.tar.bz2 to /var/tmp/portage/x11-apps/xprop-1.2.5/work
>>> Source unpacked in /var/tmp/portage/x11-apps/xprop-1.2.5/work
>>> Preparing source in /var/tmp/portage/x11-apps/xprop-1.2.5/work/xprop-1.2.5 ...
 * Running elibtoolize in: xprop-1.2.5/
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-apps/xprop-1.2.5/work/xprop-1.2.5 ...
 * econf: updating xprop-1.2.5/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating xprop-1.2.5/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=loongarch64-unknown-linux-gnu --host=loongarch64-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/xprop-1.2.5 --htmldir=/usr/share/doc/xprop-1.2.5/html --libdir=/usr/lib64 --disable-selective-werror
checking for a BSD-compatible install... /usr/lib/portage/python3.9/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports the include directive... yes (GNU style)
checking for loongarch64-unknown-linux-gnu-gcc... loongarch64-unknown-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether loongarch64-unknown-linux-gnu-gcc accepts -g... yes
checking for loongarch64-unknown-linux-gnu-gcc option to accept ISO C89... none needed
checking whether loongarch64-unknown-linux-gnu-gcc understands -c and -o together... yes
checking dependency style of loongarch64-unknown-linux-gnu-gcc... none
checking for loongarch64-unknown-linux-gnu-gcc option to accept ISO C99... none needed
checking how to run the C preprocessor... loongarch64-unknown-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether __clang__ is declared... no
checking whether __INTEL_COMPILER is declared... no
checking whether __SUNPRO_C is declared... no
checking for loongarch64-unknown-linux-gnu-pkg-config... /usr/bin/loongarch64-unknown-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking build system type... loongarch64-unknown-linux-gnu
checking host system type... loongarch64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking if loongarch64-unknown-linux-gnu-gcc supports -Werror=unknown-warning-option... no
checking if loongarch64-unknown-linux-gnu-gcc supports -Werror=unused-command-line-argument... no
checking if loongarch64-unknown-linux-gnu-gcc supports -Wall... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wpointer-arith... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wmissing-declarations... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wformat=2... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wstrict-prototypes... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wmissing-prototypes... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wnested-externs... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wbad-function-cast... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wold-style-definition... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wdeclaration-after-statement... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wunused... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wuninitialized... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wshadow... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wmissing-noreturn... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wmissing-format-attribute... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wredundant-decls... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wlogical-op... yes
configure: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at https://gitlab.freedesktop.org/xorg/app/xprop/issues
checking if loongarch64-unknown-linux-gnu-gcc supports -Wimplicit... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wnonnull... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Winit-self... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wmain... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wmissing-braces... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wsequence-point... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wreturn-type... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wtrigraphs... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Warray-bounds... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wwrite-strings... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Waddress... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wint-to-pointer-cast... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Wpointer-to-int-cast... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -pedantic... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Werror... yes
checking if loongarch64-unknown-linux-gnu-gcc supports -Werror=attributes... yes
checking whether make supports nested variables... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking for XPROP... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating man/Makefile
config.status: creating config.h
config.status: executing depfiles commands
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-apps/xprop-1.2.5/work/xprop-1.2.5 ...
make -j4 
make  all-recursive
make[1]: Entering directory '/var/tmp/portage/x11-apps/xprop-1.2.5/work/xprop-1.2.5'
Making all in man
make[2]: Entering directory '/var/tmp/portage/x11-apps/xprop-1.2.5/work/xprop-1.2.5/man'
/bin/sed -e 's|__vendorversion__|"xprop 1.2.5" "X Version 11"|'     -e 's|__xorgversion__|"xprop 1.2.5" "X Version 11"|'    -e 's|__xservername__|Xorg|g'   -e 's|__xconfigfile__|xorg.conf|g'  -e 's|__projectroot__|/usr|g'   -e 's|__apploaddir__||g'    -e 's|__appmansuffix__|1|g'     -e 's|__drivermansuffix__|4|g'  -e 's|__adminmansuffix__|8|g'   -e 's|__libmansuffix__|3|g'     -e 's|__miscmansuffix__|7|g'    -e 's|__filemansuffix__|5|g' < xprop.man > xprop.1
make[2]: Leaving directory '/var/tmp/portage/x11-apps/xprop-1.2.5/work/xprop-1.2.5/man'
make[2]: Entering directory '/var/tmp/portage/x11-apps/xprop-1.2.5/work/xprop-1.2.5'
loongarch64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Wimplicit -Wnonnull -Winit-self -Wmain -Wmissing-braces -Wsequence-point -Wreturn-type -Wtrigraphs -Warray-bounds -Wwrite-strings -Waddress -Wint-to-pointer-cast -Wpointer-to-int-cast -fno-strict-aliasing  -O2 -pipe -c -o dsimple.o dsimple.c
loongarch64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Wimplicit -Wnonnull -Winit-self -Wmain -Wmissing-braces -Wsequence-point -Wreturn-type -Wtrigraphs -Warray-bounds -Wwrite-strings -Waddress -Wint-to-pointer-cast -Wpointer-to-int-cast -fno-strict-aliasing  -O2 -pipe -c -o clientwin.o clientwin.c
loongarch64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Wimplicit -Wnonnull -Winit-self -Wmain -Wmissing-braces -Wsequence-point -Wreturn-type -Wtrigraphs -Warray-bounds -Wwrite-strings -Waddress -Wint-to-pointer-cast -Wpointer-to-int-cast -fno-strict-aliasing  -O2 -pipe -c -o xprop.o xprop.c
dsimple.c: In function 'Select_Window':
dsimple.c:250:31: warning: declaration of 'dpy' shadows a global declaration [-Wshadow]
  250 | Window Select_Window(Display *dpy, int descend)
      |                      ~~~~~~~~~^~~
dsimple.c:58:10: note: shadowed declaration is here
   58 | Display *dpy = NULL;
      |          ^~~
dsimple.c: In function 'Window_With_Name':
dsimple.c:306:14: warning: declaration of 'dpy' shadows a global declaration [-Wshadow]
  306 |     Display *dpy,
      |     ~~~~~~~~~^~~
dsimple.c:58:10: note: shadowed declaration is here
   58 | Display *dpy = NULL;
      |          ^~~
xprop.c: In function 'ignore_errors':
xprop.c:599:25: warning: declaration of 'dpy' shadows a global declaration [-Wshadow]
  599 | ignore_errors (Display *dpy, XErrorEvent *ev)
      |                ~~~~~~~~~^~~
In file included from xprop.c:57:
dsimple.h:53:17: note: shadowed declaration is here
   53 | extern Display *dpy;                         /* The current display */
      |                 ^~~
xprop.c: In function 'Remove_Property':
xprop.c:1624:27: warning: declaration of 'dpy' shadows a global declaration [-Wshadow]
 1624 | Remove_Property (Display *dpy, Window w, const char *propname)
      |                  ~~~~~~~~~^~~
dsimple.h:53:17: note: shadowed declaration is here
   53 | extern Display *dpy;                         /* The current display */
      |                 ^~~
xprop.c: In function 'Set_Property':
xprop.c:1637:24: warning: declaration of 'dpy' shadows a global declaration [-Wshadow]
 1637 | Set_Property (Display *dpy, Window w, const char *propname, const char *value)
      |               ~~~~~~~~~^~~
dsimple.h:53:17: note: shadowed declaration is here
   53 | extern Display *dpy;                         /* The current display */
      |                 ^~~
xprop.c: At top level:
xprop.c:1818:1: warning: no previous prototype for 'print_help' [-Wmissing-prototypes]
 1818 | print_help (void)
      | ^~~~~~~~~~
xprop.c:1848:6: warning: no previous prototype for 'help' [-Wmissing-prototypes]
 1848 | void help (void) {
      |      ^~~~
xprop.c: In function 'spy_error_handler':
xprop.c:1920:39: warning: declaration of 'dpy' shadows a global declaration [-Wshadow]
 1920 | static int spy_error_handler(Display *dpy, XErrorEvent *ev)
      |                              ~~~~~~~~~^~~
dsimple.h:53:17: note: shadowed declaration is here
   53 | extern Display *dpy;                         /* The current display */
      |                 ^~~
xprop.c: In function 'help':
xprop.c:1848:6: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn]
 1848 | void help (void) {
      |      ^~~~
loongarch64-unknown-linux-gnu-gcc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Wimplicit -Wnonnull -Winit-self -Wmain -Wmissing-braces -Wsequence-point -Wreturn-type -Wtrigraphs -Warray-bounds -Wwrite-strings -Waddress -Wint-to-pointer-cast -Wpointer-to-int-cast -fno-strict-aliasing  -O2 -pipe  -Wl,-O1 -Wl,--as-needed -o xprop dsimple.o clientwin.o xprop.o -lX11  
make[2]: Leaving directory '/var/tmp/portage/x11-apps/xprop-1.2.5/work/xprop-1.2.5'
make[1]: Leaving directory '/var/tmp/portage/x11-apps/xprop-1.2.5/work/xprop-1.2.5'
>>> Source compiled.
/usr/lib/portage/python3.9/phase-functions.sh: line 940: 231190 Segmentation fault      (core dumped) "$PORTAGE_BIN_PATH"/ebuild-ipc exit $?
 * The ebuild phase 'compile' has exited unexpectedly. This type of
 * behavior is known to be triggered by things such as failed variable
 * assignments (bug #190128) or bad substitution errors (bug #200313).
 * Normally, before exiting, bash should have displayed an error message
 * above. If bash did not produce an error message above, it's possible
 * that the ebuild has called `exit` when it should have called `die`
 * instead. This behavior may also be triggered by a corrupt bash binary or
 * a hardware problem such as memory or cpu malfunction. If the problem is
 * not reproducible or it appears to occur randomly, then it is likely to
 * be triggered by a hardware problem. If you suspect a hardware problem
 * then you should try some basic hardware diagnostics such as memtest.
 * Please do not report this as a bug unless it is consistently
 * reproducible and you are sure that your bash binary and hardware are
 * functioning properly.
HougeLangley commented 2 years ago

dmesg log


[ 2868.229393] era = 00007ffff13eec04 in ld-linux-loongarch-lp64d.so.1[7ffff13dc000+28000]
[ 2868.229402] ra  = 00007ffff11f832c in libpython3.9.so.1.0[7ffff0ff4000+350000]
HougeLangley commented 2 years ago

First build failed, second successed.

thesamesam commented 2 years ago

Making Python segfault isn't good: https://wiki.gentoo.org/wiki/Debugging.