Segfaults in network-monitor-race
Happened in a build machine (LXC container) since 2.56.2:
/network-monitor/create-in-thread: **
GLib-GIO:ERROR:network-monitor-race.c:78:test_network_monitor: child process (/network-monitor/create-in-thread [23887]) failed unexpectedly
Abandon (core dumped)
Here backtrace:
(gdb) thread apply all bt full
Thread 2 (Thread 0x7ffff6d27700 (LWP 24254)):
#0 0x00007ffff7c08bb1 in poll () from /usr/lib/libc.so.6
No symbol table info available.
#1 0x00007ffff7d4bf60 in g_main_context_poll (priority=<optimized out>, n_fds=1,
fds=0x5555555679e0, timeout=<optimized out>, context=0x55555558be40) at gmain.c:4203
ret = <optimized out>
errsv = <optimized out>
poll_func = 0x7ffff7d5b890 <g_poll>
poll_func = <optimized out>
ret = <optimized out>
errsv = <optimized out>
#2 g_main_context_iterate (context=context@entry=0x55555558be40, block=block@entry=1,
dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3897
max_priority = 2147483647
timeout = -1
some_ready = <optimized out>
nfds = 1
allocated_nfds = 1
fds = 0x5555555679e0
#3 0x00007ffff7d4c08e in g_main_context_iteration (context=0x55555558be40,
may_block=may_block@entry=1) at gmain.c:3963
retval = <optimized out>
#4 0x00007ffff7d4c0e2 in glib_worker_main (data=<optimized out>) at gmain.c:5772
No locals.
#5 0x00007ffff7d7447a in g_thread_proxy (data=0x55555558c000) at gthread.c:784
thread = 0x55555558c000
__func__ = "g_thread_proxy"
_g_boolean_var_ = <optimized out>
#6 0x00007ffff7aa1a9d in start_thread () from /usr/lib/libpthread.so.0
No symbol table info available.
#7 0x00007ffff7c13a43 in clone () from /usr/lib/libc.so.6
No symbol table info available.
Thread 1 (Thread 0x7ffff6d28780 (LWP 24249)):
#0 0x00007ffff7b4fd7f in raise () from /usr/lib/libc.so.6
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#1 0x00007ffff7b3a672 in abort () from /usr/lib/libc.so.6
No symbol table info available.
#2 0x00007ffff7d1a048 in g_assertion_message (domain=0x555555556022 "GLib-GIO",
file=0x55555555600b "network-monitor-race.c", line=78,
func=0x555555556090 <__func__.25800> "test_network_monitor",
message=0x55555558d8e0 "child process (/network-monitor/create-in-thread [25604]) failed unexpectedly") at gtestutils.c:2532
lstr = "78\000\000\000\000\000\000\260\322XUUU\000\000\260\334XUUU\000\000\000\000\000\000\000\000\000"
s = 0x555555567560 "\340\332XUUU"
#3 0x00007ffff7d74133 in g_test_trap_assertions (domain=0x555555556022 "GLib-GIO",
file=0x55555555600b "network-monitor-race.c", line=78,
func=0x555555556090 <__func__.25800> "test_network_monitor",
assertion_flags=<optimized out>, pattern=<optimized out>) at gtestutils.c:3273
msg = 0x55555558d8e0 "child process (/network-monitor/create-in-thread [25604]) failed unexpectedly"
must_pass = <optimized out>
must_fail = <optimized out>
match_result = 1
logged_child_output = <optimized out>
stdout_pattern = 0x0
stderr_pattern = 0x0
match_error = 0x7ffff7da4d3b "failed to match"
process_id = 0x55555558d2b0 "/network-monitor/create-in-thread [25604]"
#4 0x000055555555524e in test_network_monitor () at network-monitor-race.c:78
ii = 332
__func__ = "test_network_monitor"
main_loop = <optimized out>
#5 0x00007ffff7d73133 in test_case_run (tc=0x555555568000) at gtestutils.c:2255
test_run_timer = 0x555555567e00
largs = {<invalid float value>, 0, 3.4201081805737869171e-4937}
fixture = 0x0
old_base = 0x555555568ff0 "https://bugzilla.gnome.org/show_bug.cgi?id="
old_free_list = 0x0
filename_free_list = 0x0
success = 0
old_base = <optimized out>
---Type <return> to continue, or q <return> to quit---
old_free_list = <optimized out>
filename_free_list = <optimized out>
success = <optimized out>
test_run_timer = <optimized out>
largs = <optimized out>
fixture = <optimized out>
_pp = <optimized out>
_p = <optimized out>
_destroy = <optimized out>
dentry = <optimized out>
_pp = <optimized out>
_p = <optimized out>
_destroy = <optimized out>
#6 g_test_run_suite_internal (suite=suite@entry=0x555555566e40, path=path@entry=0x0)
at gtestutils.c:2339
tc = 0x555555568000
n_bad = 0
old_name = 0x555555568f70 "/network-monitor"
iter = 0x555555563480
__func__ = "g_test_run_suite_internal"
#7 0x00007ffff7d72fe5 in g_test_run_suite_internal (suite=suite@entry=0x555555566e20,
path=path@entry=0x0) at gtestutils.c:2351
ts = 0x555555566e40
n_bad = 0
old_name = 0x555555567e20 "/"
iter = 0x555555563470
__func__ = "g_test_run_suite_internal"
#8 0x00007ffff7d733f2 in g_test_run_suite (suite=0x555555566e20) at gtestutils.c:2426
n_bad = 0
__func__ = "g_test_run_suite"
_g_boolean_var_ = <optimized out>
iter = <optimized out>
#9 0x00007ffff7d73413 in g_test_run () at gtestutils.c:1692
No locals.
#10 0x0000555555555065 in main (argc=<optimized out>, argv=<optimized out>)
at network-monitor-race.c:91
No locals.
Edited by Cédric Bellegarde