lgi-devs / lgi-devs/lgi

tests/gireg.lua fails with 32bits and lua5-1: 7:type_uint32 / 74:enum

Open
#353 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
491
Forks
81
PR merge metrics
No merged PRs in 30d

Description

Hi,

The testsuite (snapshot a1308b23b07a787d21fad86157b0b60eb3079f64) fails with 32bits / lua5-1:

 * lua5-1: running lua_src_test
 * Starting Xvfb ...
 * Xvfb started on DISPLAY=:0
meson test --print-errorlogs --num-processes 16
ninja: Entering directory `/var/tmp/portage/dev-lua/lgi-0.9.2_p20251219/work/lgi-a1308b23b07a787d21fad86157b0b60eb3079f64-lua5-1-meson'
ninja: Jobserver mode detected: -j16 -l16 --jobserver-auth=fifo:/dev/steve
ninja: no work to do.
1/2 lgi:multiple states OK              0.04s
2/2 lgi:regress         FAIL            0.85s   exit status 1
>>> MALLOC_PERTURB_=84 MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 GI_TYPELIB_PATH=/var/tmp/portage/dev-lua/lgi-0.9.2_p20251219/work/lgi-a1308b23b07a787d21fad86157b0b60eb3079f64-lua5-1-meson/tests UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 MESON_TEST_ITERATION=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 LD_LIBRARY_PATH=/var/tmp/portage/dev-lua/lgi-0.9.2_p20251219/work/lgi-a1308b23b07a787d21fad86157b0b60eb3079f64-lua5-1-meson/tests LUA_CPATH='/var/tmp/portage/dev-lua/lgi-0.9.2_p20251219/work/lgi-a1308b23b07a787d21fad86157b0b60eb3079f64-lua5-1-meson/?.so;/var/tmp/portage/dev-lua/lgi-0.9.2_p20251219/work/lgi-a1308b23b07a787d21fad86157b0b60eb3079f64-lua5-1-meson/?.dll' LUA_PATH='/var/tmp/portage/dev-lua/lgi-0.9.2_p20251219/work/lgi-a1308b23b07a787d21fad86157b0b60eb3079f64-lua5-1/?.lua;/var/tmp/portage/dev-lua/lgi-0.9.2_p20251219/work/lgi-a1308b23b07a787d21fad86157b0b60eb3079f64-lua5-1-meson/?.lua' /usr/bin/dbus-run-session /usr/bin/lua5.1 /var/tmp/portage/dev-lua/lgi-0.9.2_p20251219/work/lgi-a1308b23b07a787d21fad86157b0b60eb3079f64-lua5-1-meson/../lgi-a1308b23b07a787d21fad86157b0b60eb3079f64-lua5-1/tests/test.lua
――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
stdout:
SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
gireg   :  7:type_uint32                        FAIL
             ...a787d21fad86157b0b60eb3079f64-lua5-1/tests/gireg.lua:146: got value `-1', expected `4294967295'
stack traceback:
        [C]: in function 'error'
        ...7a787d21fad86157b0b60eb3079f64-lua5-1/tests/test.lua:88: in function 'fail'
        ...7a787d21fad86157b0b60eb3079f64-lua5-1/tests/test.lua:91: in function 'check'
        ...7a787d21fad86157b0b60eb3079f64-lua5-1/tests/test.lua:101: in function 'checkv'
        ...a787d21fad86157b0b60eb3079f64-lua5-1/tests/gireg.lua:146: in function <...a787d21fad86157b0b60eb3079f64-lua5-1/tests/gireg.lua:139>
        [C]: in function 'xpcall'
        ...7a787d21fad86157b0b60eb3079f64-lua5-1/tests/test.lua:50: in function 'runfunc'
        ...7a787d21fad86157b0b60eb3079f64-lua5-1/tests/test.lua:73: in function 'run'
        ...7a787d21fad86157b0b60eb3079f64-lua5-1/tests/test.lua:142: in main chunk
        [C]: ?
gireg   : 74:enum                               FAIL
             ...a787d21fad86157b0b60eb3079f64-lua5-1/tests/gireg.lua:818: failure
stack traceback:
        [C]: in function 'error'
        ...7a787d21fad86157b0b60eb3079f64-lua5-1/tests/test.lua:88: in function 'fail'
        ...7a787d21fad86157b0b60eb3079f64-lua5-1/tests/test.lua:91: in function 'check'
        ...a787d21fad86157b0b60eb3079f64-lua5-1/tests/gireg.lua:818: in function <...a787d21fad86157b0b60eb3079f64-lua5-1/tests/gireg.lua:804>
        [C]: in function 'xpcall'
        ...7a787d21fad86157b0b60eb3079f64-lua5-1/tests/test.lua:50: in function 'runfunc'
        ...7a787d21fad86157b0b60eb3079f64-lua5-1/tests/test.lua:73: in function 'run'
        ...7a787d21fad86157b0b60eb3079f64-lua5-1/tests/test.lua:142: in main chunk
        [C]: ?
gireg   : FAILED 2 of 114 tests
marshal : all 1 tests passed.
corocbk : all 3 tests passed.
record  : all 1 tests passed.
gobject : all 17 tests passed.
glib    : all 6 tests passed.
variant : all 16 tests passed.
dbus    : all 3 tests passed.
gtk     : all 22 tests passed.
cairo   : all 15 tests passed.
pango   : all 1 tests passed.
gio     : all 2 tests passed.
progress: all 1 tests passed.
stderr:
dbus-daemon[77]: [session uid=250 pid=77 pidfd=5] Activating service name='org.a11y.Bus' requested by ':1.0' (uid=250 pid=79 comm="/usr/bin/lua5.1 /var/tmp/portage/dev-lua/lgi-0.9.2" label="unconfined")
dbus-daemon[77]: [session uid=250 pid=77 pidfd=5] Successfully activated service 'org.a11y.Bus'

(lua5.1:79): Lgi-WARNING **: 07:13:45.631: Error raised while calling 'lgi.cbk (number): Regress': attempt to call a number value

(lua5.1:79): Lgi-WARNING **: 07:13:45.631: Error raised while calling 'lgi.cbk (string): Regress': attempt to call a string value

(lua5.1:79): Lgi-WARNING **: 07:13:45.631: Error raised while calling 'lgi.cbk (table: 0x58798ae0): Regress': attempt to call a table value

(lua5.1:79): Lgi-WARNING **: 07:13:45.631: Error raised while calling 'lgi.cbk (table: 0x587cf4b0): Regress': attempt to call a table value
dbus-daemon[89]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=250 pid=79 comm="/usr/bin/lua5.1 /var/tmp/portage/dev-lua/lgi-0.9.2" label="unconfined")
dbus-daemon[89]: Successfully activated service 'org.a11y.atspi.Registry'

(lua5.1:79): Gtk-WARNING **: 07:13:46.280: ../gtk-3.24.51/gtk/gtktreemodel.c:657: Invalid path set_sort_func passed to gtk_tree_path_new_from_string
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――


Summary of Failures:

2/2 lgi:regress         FAIL            0.85s   exit status 1

Ok:                1   
Fail:              1   

Full log written to /var/tmp/portage/dev-lua/lgi-0.9.2_p20251219/work/lgi-a1308b23b07a787d21fad86157b0b60eb3079f64-lua5-1-meson/meson-logs/testlog.txt

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failures with the gireg tests in tests/gireg.lua under 32-bit Lua 5.1, using the reported Meson test command. Inspect the checks at lines 146 and 818 and the surrounding type_uint32 and enum cases. Done means both cases pass and the lgi:regress suite reports no failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.