vmihalko / t2_polkit

Other
0 stars 0 forks source link

Spidermonkey 91 #154

Closed vmihalko closed 1 year ago

vmihalko commented 3 years ago

In GitLab by @xry111 on Aug 10, 2021, 11:50

Firefox 91 (which will be a new ESR) is released now, we should begin to port javascript authority to use it.

Simply changing mozjs-78 to mozjs-91 in configure.ac is enough to make compilation fine. Unfortunately, the test suite fails because in the destruction of global gHelperThreadLock in mozjs-91, it calls pthread_mutex_destroy on a locked mutex, which is an undefined behavior and leads to crash.

I'm not sure how to fix this problem.

vmihalko commented 3 years ago

In GitLab by @xry111 on Aug 10, 2021, 11:54

Test log with js91:

# random seed: R02S580084a025b63044ab6d0eff91e5149e
1..28
# Start of PolkitBackendJsAuthority tests
# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ?gio-vfs?
17:53:32.892: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:32.892: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:32.893: Finished loading, compiling and executing 4 rules
17:53:32.911: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:32.911: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:32.911: Finished loading, compiling and executing 4 rules
17:53:32.929: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:32.929: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:32.929: Finished loading, compiling and executing 4 rules
17:53:32.946: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:32.946: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:32.946: Finished loading, compiling and executing 4 rules
ok 1 /PolkitBackendJsAuthority/get_admin_identities
17:53:32.966: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:32.966: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:32.967: Finished loading, compiling and executing 4 rules
ok 2 /PolkitBackendJsAuthority/rules_basic0
17:53:32.980: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:32.980: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:32.980: Finished loading, compiling and executing 4 rules
ok 3 /PolkitBackendJsAuthority/rules_basic1
17:53:32.992: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:32.992: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:32.993: Finished loading, compiling and executing 4 rules
ok 4 /PolkitBackendJsAuthority/rules_basic2
17:53:33.010: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:33.010: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:33.011: Finished loading, compiling and executing 4 rules
ok 5 /PolkitBackendJsAuthority/rules_order0
17:53:33.026: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:33.026: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:33.026: Finished loading, compiling and executing 4 rules
ok 6 /PolkitBackendJsAuthority/rules_order1
17:53:33.039: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:33.039: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:33.039: Finished loading, compiling and executing 4 rules
ok 7 /PolkitBackendJsAuthority/rules_order2
17:53:33.051: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:33.051: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:33.052: Finished loading, compiling and executing 4 rules
ok 8 /PolkitBackendJsAuthority/rules_variables1
17:53:33.067: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:33.068: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:33.068: Finished loading, compiling and executing 4 rules
ok 9 /PolkitBackendJsAuthority/rules_variables2
17:53:33.083: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:33.084: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:33.084: Finished loading, compiling and executing 4 rules
ok 10 /PolkitBackendJsAuthority/rules_variables3
17:53:33.100: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:33.100: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:33.100: Finished loading, compiling and executing 4 rules
ok 11 /PolkitBackendJsAuthority/rules_group_membership_with_member
17:53:33.117: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:33.117: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:33.117: Finished loading, compiling and executing 4 rules
ok 12 /PolkitBackendJsAuthority/rules_group_membership_with_non_member
17:53:33.129: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:33.129: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:33.130: Finished loading, compiling and executing 4 rules
ok 13 /PolkitBackendJsAuthority/rules_netgroup_membership_with_member
17:53:33.142: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:33.142: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:33.142: Finished loading, compiling and executing 4 rules
ok 14 /PolkitBackendJsAuthority/rules_netgroup_membership_with_non_member
17:53:33.158: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:33.158: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:33.158: Finished loading, compiling and executing 4 rules
ok 15 /PolkitBackendJsAuthority/rules_spawning_non_existing_helper
17:53:33.172: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:33.172: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:33.173: Finished loading, compiling and executing 4 rules
ok 16 /PolkitBackendJsAuthority/rules_spawning_successful_helper
17:53:33.190: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:33.190: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:33.191: Finished loading, compiling and executing 4 rules
ok 17 /PolkitBackendJsAuthority/rules_spawning_failing_helper
17:53:33.209: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:33.209: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:33.210: Finished loading, compiling and executing 4 rules
ok 18 /PolkitBackendJsAuthority/rules_spawning_helper_with_output
17:53:33.224: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:33.224: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:33.224: Finished loading, compiling and executing 4 rules
ok 19 /PolkitBackendJsAuthority/rules_spawning_helper_timeout
17:53:43.254: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:43.255: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:43.255: Finished loading, compiling and executing 4 rules
17:53:58.234: Terminating runaway script
17:53:58.234: ../data/etc/polkit-1/rules.d/10-testing.rules:188: Script terminated by timeout at:
@../data/etc/polkit-1/rules.d/10-testing.rules:188:20
polkit._runRules@:71:28

ok 20 /PolkitBackendJsAuthority/rules_runaway_script
17:53:58.247: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:58.247: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:58.247: Finished loading, compiling and executing 4 rules
ok 21 /PolkitBackendJsAuthority/rules_group_membership_with_non_member(highuid22)
17:53:58.260: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:58.260: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:58.260: Finished loading, compiling and executing 4 rules
ok 22 /PolkitBackendJsAuthority/rules_group_membership_with_non_member(highuid21)
17:53:58.277: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:58.277: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:58.277: Finished loading, compiling and executing 4 rules
ok 23 /PolkitBackendJsAuthority/rules_group_membership_with_non_member(highuid24)
17:53:58.290: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:58.290: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:58.290: Finished loading, compiling and executing 4 rules
ok 24 /PolkitBackendJsAuthority/rules_group_membership_with_non_member(highuid23)
17:53:58.305: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:58.305: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:58.306: Finished loading, compiling and executing 4 rules
ok 25 /PolkitBackendJsAuthority/rules_john_action
17:53:58.318: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:58.318: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:58.319: Finished loading, compiling and executing 4 rules
ok 26 /PolkitBackendJsAuthority/rules_jane_action
17:53:58.336: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:58.336: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:58.336: Finished loading, compiling and executing 4 rules
ok 27 /PolkitBackendJsAuthority/rules_highuid2_action
17:53:58.349: Loading rules from directory ../data/etc/polkit-1/rules.d
17:53:58.349: Loading rules from directory ../data/usr/share/polkit-1/rules.d
17:53:58.349: Finished loading, compiling and executing 4 rules
ok 28 /PolkitBackendJsAuthority/rules_highuid1_action
# End of PolkitBackendJsAuthority tests
mozilla::detail::MutexImpl::~MutexImpl: pthread_mutex_destroy failed: Device or resource busy
[1]    1583834 segmentation fault (core dumped)