Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.5.4: test suite is core dumping when $DISPLAY is missing #105

Open
kloczek opened this issue Aug 23, 2020 · 5 comments
Open

1.5.4: test suite is core dumping when $DISPLAY is missing #105

kloczek opened this issue Aug 23, 2020 · 5 comments

Comments

@kloczek
Copy link

kloczek commented Aug 23, 2020

Looks like new test suite requires $DISPLAY.
I found hen there is not $DSPLAY it core dumps

+ /usr/bin/make -O -j48 V=1 VERBOSE=1 check
Making check in src
/usr/bin/make  test-ustring
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/ibus-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/hangul-1.0  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Os -c -o test_ustring-test-ustring.o `test -f 'test-ustring.c' || echo './'`test-ustring.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/ibus-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/hangul-1.0  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Os -c -o test_ustring-ustring.o `test -f 'ustring.c' || echo './'`ustring.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
/bin/sh ../libtool  --tag=CC   --mode=link gcc -I/usr/include/ibus-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/hangul-1.0  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Os -libus-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lhangul  -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o test-ustring test_ustring-test-ustring.o test_ustring-ustring.o -libus-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
libtool: link: gcc -I/usr/include/ibus-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/hangul-1.0 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Os -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o test-ustring test_ustring-test-ustring.o test_ustring-ustring.o  -lhangul -libus-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
/usr/bin/make  check-TESTS check-local
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
./test-ustring
# random seed: R02S698ff037fac69059a599d2b15da72d34
1..1
# Start of ibus-hangul tests
# Start of ustring tests
ok 1 /ibus-hangul/ustring/compare
# End of ustring tests
# End of ibus-hangul tests
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
PASS: test-ustring
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
============================================================================
Testsuite summary for ibus-hangul 1.5.4
============================================================================
# TOTAL: 1
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
Making check in tests
/usr/bin/make  check-TESTS
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/tests'
FAIL: ibus-hangul
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/tests'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/tests'
=============================================
   ibus-hangul 1.5.4: tests/test-suite.log
=============================================

# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: ibus-hangul
=================

# random seed: R02Sde173c2c6984f95bb328f1d291c4a14c

(././ibus-hangul:701526): Gtk-WARNING **: 13:18:44.392: cannot open display:
./runtest: line 20: 701526 Trace/breakpoint trap   (core dumped) $builddir/$tst
FAIL ibus-hangul (exit status: 133)

============================================================================
Testsuite summary for ibus-hangul 1.5.4
============================================================================
# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
Please report to https://github.com/libhangul/ibus-hangul/issues
============================================================================
make[3]: *** [Makefile:857: test-suite.log] Error 1
@kloczek
Copy link
Author

kloczek commented Aug 23, 2020

Here is back trace

[tkloczko@barrel ibus-hangul-1.5.4]$ coredumpctl gdb 439026
           PID: 439026 (ibus-hangul)
           UID: 1000 (tkloczko)
           GID: 1000 (tkloczko)
        Signal: 5 (TRAP)
     Timestamp: Sun 2020-08-23 11:32:57 BST (1h 51min ago)
  Command Line: ././ibus-hangul
    Executable: /home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/tests/ibus-hangul
 Control Group: /user.slice/user-1000.slice/session-26.scope
          Unit: session-26.scope
         Slice: user-1000.slice
       Session: 26
     Owner UID: 1000 (tkloczko)
       Boot ID: 3ff5444d8f94493fa527d814077cbace
    Machine ID: d033f66b249a4ec09acfa81ac205554f
      Hostname: barrel
       Storage: /var/lib/systemd/coredump/core.ibus-hangul.1000.3ff5444d8f94493fa527d814077cbace.439026.1598178777000000000000.zst
       Message: Process 439026 (ibus-hangul) of user 1000 dumped core.

                Stack trace of thread 439026:
                #0  0x00007f71b654510b g_log_writer_default (libglib-2.0.so.0 + 0x7b10b)
                #1  0x00007f71b64f47e4 g_log_structured_array (libglib-2.0.so.0 + 0x2a7e4)
                #2  0x00007f71b64f8e13 g_log_structured_standard (libglib-2.0.so.0 + 0x2ee13)
                #3  0x00007f71b6b28d5d gtk_init (libgtk-3.so.0 + 0x315d5d)
                #4  0x000055a54cada4ba n/a (/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/tests/ibus-hangul + 0x54ba)
                #5  0x4cadd24000007ffe n/a (n/a + 0x0)

GNU gdb (GDB) Fedora 9.0.50.20191119-2.fc32
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/tests/ibus-hangul...
[New LWP 439026]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `././ibus-hangul'.
Program terminated with signal SIGTRAP, Trace/breakpoint trap.
#0  g_log_writer_default (log_level=<optimized out>, log_level@entry=G_LOG_LEVEL_WARNING, fields=fields@entry=0x7ffe49af5f00, n_fields=n_fields@entry=6, user_data=user_data@entry=0x0)
    at ../glib/gmessages.c:554
554         G_BREAKPOINT ();
 at-spi2-atk-2.37.90-2.fc33.x86_64 at-spi2-core-2.37.90-2.fc33.x86_64 atk-2.36.0-2.fc33.x86_64 brotli-1.0.7-15.fc33.x86_64 bzip2-libs-1.0.8-3.fc33.x86_64 cairo-1.16.0-9.1.fc33.x86_64 cairo-gobject-1.16.0-9.1.fc33.x86_64 dbus-libs-1.12.20-2.fc33.x86_64 fontconfig-2.13.92-11.fc33.x86_64 freetype-2.10.2-3.fc33.x86_64 fribidi-1.0.10-2.fc33.x86_64 gdk-pixbuf2-2.40.0-3.1.fc33.x86_64 glibc-2.32.9000-1.fc34.x86_64 graphite-1.3.14-3.fc33.x86_64 gtk3-3.24.22-2.fc33.x86_64 harfbuzz-2.7.1-2.fc33.x86_64 ibus-libs-1.5.22-6.fc33.x86_64 libX11-1.6.11-2.fc33.x86_64 libXau-1.0.9-5.fc33.x86_64 libXcomposite-0.4.5-4.fc33.x86_64 libXcursor-1.2.0-4.fc33.x86_64 libXdmcp-1.1.3-5.fc33.x86_64 libXfixes-5.0.3-13.fc33.x86_64 libXi-1.7.10-5.fc33.x86_64 libXinerama-1.1.4-7.fc33.x86_64 libXrandr-1.5.2-5.fc33.x86_64 libblkid-2.36-3.fc33.x86_64 libepoxy-1.5.4-3.fc33.x86_64 libffi-3.2.1-2.3.fc32.x86_64 libhangul-0.1.0-22.fc33.x86_64 libmount-2.36-3.fc33.x86_64 libpng-1.6.37-6.fc34.x86_64 libselinux-3.0-4.fc33.x86_64 libthai-0.1.28-6.fc33.x86_64 libwayland-client-1.18.0-3.fc33.x86_64 libwayland-cursor-1.18.0-3.fc33.x86_64 libwayland-egl-1.18.0-3.fc33.x86_64 libxcb-1.14-5.fc33.x86_64 libxml2-2.9.10-7.fc33.x86_64 libzstd-1.4.5-6.fc33.x86_64 pango-1.46.1-2.fc34.x86_64 pcre-8.44-2.1.fc34.x86_64 pixman-0.40.0-3.fc34.x86_64 systemd-libs-246.2-2.fc34.x86_64 xz-libs-5.2.5-4.fc33.x86_64 zlib-1.2.11-23.fc33.x86_64
(gdb) bet full
Missing separate debuginfos, use: dnf debuginfo-installUndefined command: "bet".  Try "help".
(gdb) bt full
#0  g_log_writer_default (log_level=<optimized out>, log_level@entry=G_LOG_LEVEL_WARNING, fields=fields@entry=0x7ffe49af5f00, n_fields=n_fields@entry=6, user_data=user_data@entry=0x0)
    at ../glib/gmessages.c:554
        __func__ = "g_log_writer_default"
        initialized = 1
        stderr_is_journal = 0
#1  0x00007f71b64f47e4 in g_log_structured_array (n_fields=6, fields=0x7ffe49af5f00, log_level=G_LOG_LEVEL_WARNING) at ../glib/gmessages.c:1925
        writer_func = 0x7f71b6544f90 <g_log_writer_default>
        writer_user_data = 0x0
        recursion = 0
        depth = 1
#2  g_log_structured_array (log_level=G_LOG_LEVEL_WARNING, fields=0x7ffe49af5f00, n_fields=6) at ../glib/gmessages.c:1898
#3  0x00007f71b64f8e13 in g_log_structured_standard
    (log_domain=0x7f71b6b92211 "Gtk", log_level=G_LOG_LEVEL_WARNING, file=<optimized out>, line=<optimized out>, func=<optimized out>, message_format=<optimized out>) at ../glib/gmessages.c:1982
        fields =
            {{key = 0x7f71b656d0e4 "PRIORITY", value = 0x7f71b6570991, length = -1}, {key = 0x7f71b656d0ed "CODE_FILE", value = 0x7f71b6b93ebe, length = -1}, {key = 0x7f71b656d0f7 "CODE_LINE", value = 0x7f71b6ba5fd0, length = -1}, {key = 0x7f71b656d101 "CODE_FUNC", value = 0x7f71b6bd6d30, length = -1}, {key = 0x7f71b656d0d1 "MESSAGE", value = 0x55a54cfc8840, length = -1}, {key = 0x7f71b656d13e "GLIB_DOMAIN", value = 0x7f71b6b92211, length = -1}}
        n_fields = 6
        message_allocated = 0x55a54cfc8840 "cannot open display: "
        buffer = "E\000\000\000\000\000\000\000R\244R\266q\177\000\000\020\254\374L\245U\000\000\000\000\000\000\000\000\000\000\037\000\000\000\000\000\000\000y\334P\266q\177\000\000\020\000\000\000\000\000\000\000\240\323\373L\245U\000\000\020\254\374L\245U\000\000\000\254\374L\245U\000\000 \214\374L\000\000\000\000\206\"a\266q\177\000\000@a\257I\376\177\000\000\037\000\000\000\000\000\000\000\240\323\373L\245U\000\000\344\344P\266q\177\000\000@\237`\266q\177\000\000\240\212\374L\245U\000\000\001\212\374L\000\000\000\000\371\370\376\266q\177\000\000\020\254\374L\245U\000\000\000\000\000\000\000\000\000\000\003\000\000\000\000\000\000\000pKH\266q\177\000\000P\000\000\000\000\000\000\000"...
        args = {{gp_offset = 48, fp_offset = 48, overflow_arg_area = 0x7ffe49af6478, reg_save_area = 0x7ffe49af63a0}}
#4  0x00007f71b6b28d5d in gtk_init () at /lib64/libgtk-3.so.0
#5  0x000055a54cada4ba in main (argc=<optimized out>, argv=<optimized out>) at ibus-hangul.c:305
        test_name = <optimized out>
        test_path = <optimized out>
(gdb)

@kloczek
Copy link
Author

kloczek commented Aug 23, 2020

Even with $DISPLAY it core dumps in other place.

+ xvfb-run -a /usr/bin/make -O -j48 V=1 VERBOSE=1 check
Making check in src
/usr/bin/make  test-ustring
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/ibus-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/hangul-1.0  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Os -c -o test_ustring-test-ustring.o `test -f 'test-ustring.c' || echo './'`test-ustring.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/ibus-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/hangul-1.0  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Os -c -o test_ustring-ustring.o `test -f 'ustring.c' || echo './'`ustring.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
/bin/sh ../libtool  --tag=CC   --mode=link gcc -I/usr/include/ibus-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/hangul-1.0  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Os -libus-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lhangul  -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o test-ustring test_ustring-test-ustring.o test_ustring-ustring.o -libus-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
libtool: link: gcc -I/usr/include/ibus-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/hangul-1.0 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Os -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o test-ustring test_ustring-test-ustring.o test_ustring-ustring.o  -lhangul -libus-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
/usr/bin/make  check-TESTS check-local
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
./test-ustring
# random seed: R02S312949f583e992b21a46c5a2a0f66fdc
1..1
# Start of ibus-hangul tests
# Start of ustring tests
ok 1 /ibus-hangul/ustring/compare
# End of ustring tests
# End of ibus-hangul tests
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
PASS: test-ustring
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
============================================================================
Testsuite summary for ibus-hangul 1.5.4
============================================================================
# TOTAL: 1
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/src'
Making check in tests
/usr/bin/make  check-TESTS
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/tests'
FAIL: ibus-hangul
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/tests'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/tests'
=============================================
   ibus-hangul 1.5.4: tests/test-suite.log
=============================================

# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: ibus-hangul
=================

# random seed: R02Sb9f5154c318b80a0f82fa66a21438aea
1..1
# Start of ibus-hangul tests
# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs?
# DEBUG: ibus version detected: 1.5.22
Bail out! GLib-GIO-FATAL-ERROR: Settings schema 'org.freedesktop.ibus.engine.hangul' is not installed

(././ibus-hangul:716747): GLib-GIO-ERROR **: 13:22:53.492: Settings schema 'org.freedesktop.ibus.engine.hangul' is not installed
./runtest: line 20: 716747 Trace/breakpoint trap   (core dumped) $builddir/$tst
FAIL ibus-hangul (exit status: 133)

============================================================================
Testsuite summary for ibus-hangul 1.5.4
============================================================================
# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
Please report to https://github.com/libhangul/ibus-hangul/issues
============================================================================
make[3]: *** [Makefile:857: test-suite.log] Error 1
[tkloczko@barrel SPECS]$ coredumpctl gdb 716747
           PID: 716747 (ibus-hangul)
           UID: 1000 (tkloczko)
           GID: 1000 (tkloczko)
        Signal: 5 (TRAP)
     Timestamp: Sun 2020-08-23 13:22:53 BST (7min ago)
  Command Line: ././ibus-hangul
    Executable: /home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/tests/ibus-hangul
 Control Group: /user.slice/user-1000.slice/session-26.scope
          Unit: session-26.scope
         Slice: user-1000.slice
       Session: 26
     Owner UID: 1000 (tkloczko)
       Boot ID: 3ff5444d8f94493fa527d814077cbace
    Machine ID: d033f66b249a4ec09acfa81ac205554f
      Hostname: barrel
       Storage: /var/lib/systemd/coredump/core.ibus-hangul.1000.3ff5444d8f94493fa527d814077cbace.716747.1598185373000000000000.zst
       Message: Process 716747 (ibus-hangul) of user 1000 dumped core.

                Stack trace of thread 716747:
                #0  0x00007f7cab10b827 g_log_structured_array (libglib-2.0.so.0 + 0x2a827)
                #1  0x00007f7cab10b8f9 g_log_default_handler (libglib-2.0.so.0 + 0x2a8f9)
                #2  0x00007f7cab16bc64 gtest_default_log_handler (libglib-2.0.so.0 + 0x8ac64)
                #3  0x00007f7cab110076 g_logv (libglib-2.0.so.0 + 0x2f076)
                #4  0x00007f7cab110313 g_log (libglib-2.0.so.0 + 0x2f313)
                #5  0x00007f7cab35c507 g_settings_set_property (libgio-2.0.so.0 + 0xf5507)
                #6  0x00007f7cab249676 object_set_property (libgobject-2.0.so.0 + 0x3a676)
                #7  0x00007f7cab249a8c g_object_new_internal (libgobject-2.0.so.0 + 0x3aa8c)
                #8  0x00007f7cab24a777 g_object_new_valist (libgobject-2.0.so.0 + 0x3b777)
                #9  0x00007f7cab24aabd g_object_new (libgobject-2.0.so.0 + 0x3babd)
                #10 0x0000561a0ab6676c n/a (/home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/tests/ibus-hangul + 0x676c)

GNU gdb (GDB) Fedora 9.0.50.20191119-2.fc32
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/tkloczko/rpmbuild/BUILD/ibus-hangul-1.5.4/tests/ibus-hangul...
[New LWP 716747]
[New LWP 716750]
[New LWP 716748]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `././ibus-hangul'.
Program terminated with signal SIGTRAP, Trace/breakpoint trap.
#0  g_log_structured_array (log_level=<optimized out>, fields=0x7ffd58e89d10, n_fields=4) at ../glib/gmessages.c:554
554         G_BREAKPOINT ();
[Current thread is 1 (Thread 0x7f7ca9fd7a00 (LWP 716747))]
 at-spi2-atk-2.37.90-2.fc33.x86_64 at-spi2-core-2.37.90-2.fc33.x86_64 atk-2.36.0-2.fc33.x86_64 brotli-1.0.7-15.fc33.x86_64 bzip2-libs-1.0.8-3.fc33.x86_64 cairo-1.16.0-9.1.fc33.x86_64 cairo-gobject-1.16.0-9.1.fc33.x86_64 dbus-libs-1.12.20-2.fc33.x86_64 fontconfig-2.13.92-11.fc33.x86_64 freetype-2.10.2-3.fc33.x86_64 fribidi-1.0.10-2.fc33.x86_64 gdk-pixbuf2-2.40.0-3.1.fc33.x86_64 glibc-2.32.9000-1.fc34.x86_64 graphite-1.3.14-3.fc33.x86_64 gtk3-3.24.22-2.fc33.x86_64 harfbuzz-2.7.1-2.fc33.x86_64 ibus-libs-1.5.22-6.fc33.x86_64 libX11-1.6.11-2.fc33.x86_64 libXau-1.0.9-5.fc33.x86_64 libXcomposite-0.4.5-4.fc33.x86_64 libXcursor-1.2.0-4.fc33.x86_64 libXdmcp-1.1.3-5.fc33.x86_64 libXfixes-5.0.3-13.fc33.x86_64 libXi-1.7.10-5.fc33.x86_64 libXinerama-1.1.4-7.fc33.x86_64 libXrandr-1.5.2-5.fc33.x86_64 libblkid-2.36-3.fc33.x86_64 libepoxy-1.5.4-3.fc33.x86_64 libffi-3.2.1-2.3.fc32.x86_64 libhangul-0.1.0-22.fc33.x86_64 libmount-2.36-3.fc33.x86_64 libpng-1.6.37-6.fc34.x86_64 libselinux-3.0-4.fc33.x86_64 libthai-0.1.28-6.fc33.x86_64 libwayland-client-1.18.0-3.fc33.x86_64 libwayland-cursor-1.18.0-3.fc33.x86_64 libwayland-egl-1.18.0-3.fc33.x86_64 libxcb-1.14-5.fc33.x86_64 libxml2-2.9.10-7.fc33.x86_64 libzstd-1.4.5-6.fc33.x86_64 pango-1.46.1-2.fc34.x86_64 pcre-8.44-2.1.fc34.x86_64 pixman-0.40.0-3.fc34.x86_64 systemd-libs-246.2-2.fc34.x86_64 xz-libs-5.2.5-4.fc33.x86_64 zlib-1.2.11-23.fc33.x86_64
(gdb) bt full
Missing separate debuginfos, use: dnf debuginfo-install#0  g_log_structured_array (log_level=<optimized out>, fields=0x7ffd58e89d10, n_fields=4) at ../glib/gmessages.c:554
#1  0x00007f7cab10b8f9 in g_log_default_handler
    (log_domain=log_domain@entry=0x7f7cab3a30f8 "GLib-GIO", log_level=log_level@entry=6, message=message@entry=0x561a0afa1e80 "Settings schema 'org.freedesktop.ibus.engine.hangul' is not installed", unused_data=unused_data@entry=0x0) at ../glib/gmessages.c:3123
        fields =
            {{key = 0x7f7cab18426f "GLIB_OLD_LOG_API", value = 0x7f7cab185e04, length = -1}, {key = 0x7f7cab1840d1 "MESSAGE", value = 0x561a0afa1e80, length = -1}, {key = 0x7f7cab1840e4 "PRIORITY", value = 0x7f7cab18404d, length = -1}, {key = 0x7f7cab18413e "GLIB_DOMAIN", value = 0x7f7cab3a30f8, length = -1}}
        n_fields = <optimized out>
#2  0x00007f7cab16bc64 in gtest_default_log_handler
    (log_domain=log_domain@entry=0x7f7cab3a30f8 "GLib-GIO", log_level=log_level@entry=6, message=message@entry=0x561a0afa1e80 "Settings schema 'org.freedesktop.ibus.engine.hangul' is not installed", unused_data=unused_data@entry=0x0) at ../glib/gtestutils.c:2879
        strv =
          {0x7f7cab3a30f8 "GLib-GIO", 0x7f7cab186727 "-", 0x7f7cab18717a "FATAL-", 0x7f7cab18671c "ERROR", 0x7f7cab18746a ": ", 0x561a0afa1e80 "Settings schema 'org.freedesktop.ibus.engine.hangul' is not installed", 0x0, 0x7f7cabc07e90 <free> "\363\017\036\372H\203\354\030H\213\005I\200\023", 0x7ffd58e80043 "", 0xb5da7ea6005bd400 <error: Cannot access memory at address 0xb5da7ea6005bd400>, 0x415353454d5f434c <error: Cannot access memory at address 0x415353454d5f434c>, 0x7ffd58e89e40 "", 0x4 <error: Cannot access memory at address 0x4>, 0x561a0afa8940 "org.freedesktop.ibus.engine.hangul", 0x561a0af42eb0 "0\213\372\n\032V", 0x4 <error: Cannot access memory at address 0x4>}
        fatal = 1
        msg = 0x561a0afa0400 "GLib-GIO-FATAL-ERROR: Settings schema 'org.freedesktop.ibus.engine.hangul' is not installed"
        i = <optimized out>
#3  0x00007f7cab110076 in g_logv (log_domain=0x7f7cab3a30f8 "GLib-GIO", log_level=G_LOG_LEVEL_ERROR, format=<optimized out>, args=<optimized out>) at ../glib/gmessages.c:1350
        domain = 0x0
        data = 0x0
        depth = <optimized out>
        log_func = 0x7f7cab16bb00 <gtest_default_log_handler>
        domain_fatal_mask = <optimized out>
        masquerade_fatal = 0
        test_level = 6
        was_fatal = <optimized out>
        was_recursion = <optimized out>
        msg = 0x561a0afa1e80 "Settings schema 'org.freedesktop.ibus.engine.hangul' is not installed"
        msg_alloc = 0x561a0afa1e80 "Settings schema 'org.freedesktop.ibus.engine.hangul' is not installed"
        i = 2
#4  0x00007f7cab110313 in g_log (log_domain=<optimized out>, log_level=<optimized out>, format=<optimized out>) at ../glib/gmessages.c:1415
        args = {{gp_offset = 32, fp_offset = 48, overflow_arg_area = 0x7ffd58e8a000, reg_save_area = 0x7ffd58e89f40}}
#5  0x00007f7cab35c507 in g_settings_set_property (object=<optimized out>, prop_id=<optimized out>, value=<optimized out>, pspec=<optimized out>) at ../gio/gsettings.c:596
        schema_id = 0x561a0afa8940 "org.freedesktop.ibus.engine.hangul"
        settings = 0x561a0af42eb0 [GSettings]
#6  0x00007f7cab249676 in object_set_property (object=object@entry=0x561a0af42eb0 [GSettings], pspec=0x561a0afa6850 [GParamString], value=0x7ffd58e8a100, nqueue=nqueue@entry=0x561a0afa1240)
    at ../gobject/gobject.c:1565
        tmp_value =
              {g_type = 0x40, data = {{v_int = 184191296, v_uint = 184191296, v_long = 94669853329728, v_ulong = 94669853329728, v_int64 = 94669853329728, v_uint64 = 94669853329728, v_float = 2.4125752e-32, v_double = 4.6773122227048149e-310, v_pointer = 0x561a0afa8940}, {v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}}}
        class = 0x561a0afa8b30
        param_id = 2
        redirect = <optimized out>
#7  0x00007f7cab249a8c in g_object_new_internal (class=class@entry=0x561a0afa8b30, params=params@entry=0x7ffd58e8a1a0, n_params=1) at ../gobject/gobject.c:1973
        value = <optimized out>
        pspec = <optimized out>
        j = <optimized out>
        node = 0x561a0af4b550 = {0x561a0afa6850, 0x561a0afa5660}
        nqueue = 0x561a0afa1240
        object = 0x561a0af42eb0 [GSettings]
#8  0x00007f7cab24a777 in g_object_new_valist (object_type=<optimized out>, first_property_name=<optimized out>, var_args=var_args@entry=0x7ffd58e8a2f0) at ../gobject/gobject.c:2264
        stack_params =
            {{pspec = 0x561a0afa6850 [GParamString], value = 0x7ffd58e8a100}, {pspec = 0xffffffff, value = 0x1e0}, {pspec = 0x561a0afa1650, value = 0x7f7cabd40a00 <main_arena>}, {pspec = 0x1f0, value = 0x561a0afa1830}, {pspec = 0x0, value = 0x7f7cabc070a5 <_int_realloc+437>}, {pspec = 0x7f7cab16bb00, value = 0x561a0af7ca00}, {pspec = 0x80, value = 0x0}, {pspec = 0x1c5, value = 0x561a0aeff060}, {pspec = 0x0, value = 0x155f0}, {pspec = 0x7f7cabd40a00, value = 0x50}, {pspec = 0x561a0afaea10, value = 0x0}, {pspec = 0x561a0af05be8, value = 0x7f7cabc08675 <calloc+133>}, {pspec = 0x0, value = 0x50}, {pspec = 0x7ffd58e8a320, value = 0x0}, {pspec = 0x561a0af05ce0, value = 0x7f7cab124681 <g_malloc0+33>}, {pspec = 0x561a0afa9c00, value = 0x7f7cab2247aa <type_data_make_W+138>}}
        params = 0x7ffd58e8a1a0
        name = <optimized out>
        n_params = 1
        class = <optimized out>
--Type <RET> for more, q to quit, c to continue without paging--
        unref_class = <optimized out>
        object = <optimized out>
        __func__ = "g_object_new_valist"
#9  0x00007f7cab24aabd in g_object_new (object_type=<optimized out>, first_property_name=<optimized out>) at ../gobject/gobject.c:1782
        object = <optimized out>
        var_args = {{gp_offset = 32, fp_offset = 48, overflow_arg_area = 0x7ffd58e8a3d0, reg_save_area = 0x7ffd58e8a310}}
#10 0x0000561a0ab6676c in ibus_hangul_init (bus=<optimized out>) at engine.c:330
        value = 0x0
        flags = <optimized out>
#11 test_hangul () at ibus-hangul.c:275
        flags = <optimized out>
#12 test_hangul () at ibus-hangul.c:267
#13 0x00007f7cab16c71e in test_case_run (tc=0x561a0af7d530) at ../glib/gtestutils.c:2655
        local_error = 0x0
        test_run_timer = 0x561a0af82900
        largs = {<invalid float value>, 5.10960136691280274972e-4937, 3.45090504413699422892e-4937}
        fixture = 0x0
        old_base = 0x0
        old_free_list = 0x0
        filename_free_list = 0x0
        success = 0
        tc = 0x561a0af7d530
        n_bad = 0
        old_name = 0x561a0af828c0 "/ibus-hangul"
        iter = 0x561a0af4c300 = {0x561a0af7d530}
        __func__ = "g_test_run_suite_internal"
#14 g_test_run_suite_internal (suite=suite@entry=0x561a0af12760, path=path@entry=0x0) at ../glib/gtestutils.c:2743
        tc = 0x561a0af7d530
        n_bad = 0
        old_name = 0x561a0af828c0 "/ibus-hangul"
        iter = 0x561a0af4c300 = {0x561a0af7d530}
        __func__ = "g_test_run_suite_internal"
#15 0x00007f7cab16c51b in g_test_run_suite_internal (suite=suite@entry=0x561a0af12c20, path=path@entry=0x0) at ../glib/gtestutils.c:2755
        ts = 0x561a0af12760
        n_bad = 0
        old_name = 0x561a0af828a0 "/"
        iter = 0x561a0af4c530 = {0x561a0af12760}
        __func__ = "g_test_run_suite_internal"
#16 0x00007f7cab16cc0a in g_test_run_suite (suite=0x561a0af12c20) at ../glib/gtestutils.c:2830
        n_bad = 0
        __func__ = "g_test_run_suite"
#17 0x00007f7cab16cc25 in g_test_run () at ../glib/gtestutils.c:2064
#18 0x0000561a0ab65526 in main (argc=<optimized out>, argv=<optimized out>) at ibus-hangul.c:321
        test_name = <optimized out>
        test_path = 0x561a0af052d0 "\001"
(gdb)

@choehwanjin
Copy link
Member

@epico, @fujiwarat According to the above, DISPLAY may not be available on testing.
I don't know about fedora test environment. What is the right behavior?

@kloczek
Copy link
Author

kloczek commented Aug 31, 2020

  1. As you see I've repeated execution of the test suite running it as xvfb-run so $DISPLAY is availaibe.

  2. test suite core dumps which is clear sign that something is wrong with test unit implementation

  3. accordig to the error message glig shema org.freedesktop.ibus.engine.hangul and that shema is part of the ibus-hangul package

  4. I'm not using fedora. My system now is only consist of less than 20% of Fedora packages asm I'm progressig on cleaning messy fedora and original fedora package does not fire check tearget in the %check section.

Generally my question is: (despite that core dump) Am I using correct metjodology on performing post (automated) build process to (automatically) test some basig ibus-hangul functionalieties? That question is valid as there is no in the git any CI integration so it a bit hard to guess how it should be done :P

@epico
Copy link

epico commented Sep 1, 2020

Please try to run the following command, thanks!

make check DISABLE_GUI_TESTS="ibus-hangul"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants