Bug 1847868

Summary: Wireless configuration: Anaconda crashes when changing wifi SSID
Product: Red Hat Enterprise Linux 8 Reporter: Jan Stodola <jstodola>
Component: NetworkManagerAssignee: NetworkManager Development Team <nm-team>
Status: CLOSED DUPLICATE QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.3CC: acardace, atragler, bgalvani, lrintel, rkhan, rvykydal, sukulkar, thaller, till
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-04 13:54:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1812825    
Attachments:
Description Flags
Screenshot with traceback
none
Screenshot of the crash
none
Journal for crash in comment #9 with NM logging level set to TRACE
none
Screenshot of the crash none

Description Jan Stodola 2020-06-17 09:09:23 UTC
Description of problem:
An attempt to change the wifi network in anaconda GUI leads to an anaconda crash and a black screen.


Version-Release number of selected component (if applicable):
RHEL-8.3.0-20200616.0
anaconda-33.16.3.6-1.el8
NetworkManager-1.26.0-0.1.el8
Lenovo T450s

How reproducible:
Always

Steps to Reproduce:
1. Start a graphical installation
2. Proceed to the main hub
3. Enter the "Network & Host Name" spoke
4. Select the wifi network device
5. Select a wifi network from the "Network Name" list, enter the password when prompted
6. Wait until the network device is configured
7. Select a different wifi network from the "Network Name" list

Actual results:
anaconda crashes

Expected results:
wifi network can be changed

Comment 1 Jan Stodola 2020-06-17 09:26:50 UTC
Created attachment 1697770 [details]
Screenshot with traceback

Comment 7 Jan Stodola 2020-08-28 16:02:17 UTC
Another similar crash when configuring wifi devices: bug 1873561

Comment 9 Radek Vykydal 2020-10-14 09:12:47 UTC
Created attachment 1721430 [details]
Screenshot of the crash

Crash reproduced with RHEL-8.4.0-20201012.n.0 with some updates for bug 1847681.

The traceback looks the same as the one in comment #1

Using addr2info and elfread in RHEL machine installed from
http://download.eng.brq.redhat.com/nightly/rhel-8/RHEL-8/RHEL-8.4.0-20201012.n.0/compose/BaseOS/x86_64/os/
with installation and debug repo added and debuginfos installed I get these source code references:

sync_signal_handler at isys.c:104
__restore_rt at sigaction.c:?
nm_client_dbus_set_property at /usr/src/debug/NetworkManager-1.28.0-0.1.el8.x86_64/libnm/nm-client.c:1997
nm_client_get_context_busy_watcher at /usr/src/debug/NetworkManager-1.28.0-0.1.el8.x86_64/libnm/nm-client.c:2074
nm_object_get_type at /usr/src/debug/NetworkManager-1.28.0-0.1.el8.x86_64/libnm/nm-object.c:190
nm_client_get_context_busy_watcher at /usr/src/debug/NetworkManager-1.28.0-0.1.el8.x86_64/libnm/nm-client.c:2810
nm_client_get_context_busy_watcher at /usr/src/debug/NetworkManager-1.28.0-0.1.el8.x86_64/libnm/nm-client.c:2893
g_dbus_error_encode_gerror at /usr/src/debug/glib2-2.56.4-8.el8.x86_64/gio/gdbusconnection.c:3720
g_list_sort_with_data at /usr/src/debug/glib2-2.56.4-8.el8.x86_64/glib/gmain.c:5536
/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x15d)
  ...g_main_context_dispatch at /usr/src/debug/glib2-2.56.4-8.el8.x86_64/glib/gmain.c:3177
nm_vpn_plugin_info_new_with_data at /usr/src/debug/NetworkManager-1.28.0-0.1.el8.x86_64/shared/nm-glib-aux/nm-shared-utils.c:5068
/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x15d)
  ...g_main_context_dispatch at /usr/src/debug/glib2-2.56.4-8.el8.x86_64/glib/gmain.c:3177
g_main_context_dispatch at /usr/src/debug/glib2-2.56.4-8.el8.x86_64/glib/gmain.c:3902
/lib64/libglib-2.0.so.0(g_main_loop_run+0xc2)
   ...g_main_loop_run at /usr/src/debug/glib2-2.56.4-8.el8.x86_64/glib/gmain.c:4097
/lib64/libgtk-3.so.0(gtk_main+0x7d)
   ...gtk_main at /usr/src/debug/gtk3-3.22.30-6.el8.x86_64/gtk/gtkmain.c:1324
/lib64/libffi.so.6(ffi_call_unix64+0x4c)
   ...ffi_call_unix64 at /usr/src/debug/libffi-3.1-22.el8.x86_64/x86_64-redhat-linux-gnu/../src/x86/unix64.S:79
/lib64/libffi.so.6(ffi_call+0x36f)
   ...ffi_call at /usr/src/debug/libffi-3.1-22.el8.x86_64/x86_64-redhat-linux-gnu/../src/x86/ffi64.c:527
PyInit__gi at pygi-invoke.c:696
pygi_function_cache_invoke at pygi-cache.c:865
/lib64/libpython3.6m.so.1.0(PyObject_Call+0x4b)
   ...PyObject_Call at /usr/src/debug/python3-3.6.8-31.el8.x86_64/Objects/abstract.c:2263

Core file backtrace obtained on the machine:

[rvykydal@localhost 4trace]$ gdb /usr/libexec/platform-python anaconda.core.1905
GNU gdb (GDB) Red Hat Enterprise Linux 8.2-12.el8
Copyright (C) 2018 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 /usr/libexec/platform-python...Reading symbols from /usr/lib/debug/usr/libexec/platform-python3.6-3.6.8-31.el8.x86_64.debug...done.
done.

warning: core file may not match specified executable file.
[New LWP 1905]
[New LWP 1933]
[New LWP 1934]
[New LWP 2130]
[New LWP 2131]
[New LWP 2132]
[New LWP 2133]
[New LWP 2470]

warning: Could not load shared library symbols for 4 libraries, e.g. /tmp/updates/pyanaconda/_isys.so.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/libexec/platform-python'.
#0  0x00007f6c8c21e4b2 in __waitpid (pid=2471, stat_loc=0x7ffec147c8bc, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
30        return SYSCALL_CANCEL (wait4, pid, stat_loc, options, NULL);
[Current thread is 1 (Thread 0x7f6c8d06cb80 (LWP 1905))]
(gdb) thread apply all bt
Thread 8 (Thread 0x7f6c4cb79700 (LWP 2470)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007f6c7ba41ade in g_cond_wait_until (cond=cond@entry=0x55cced095428, mutex=mutex@entry=0x55cced095420, end_time=end_time@entry=152083785) at gthread-posix.c:1449
#2  0x00007f6c7b9cd031 in g_async_queue_pop_intern_unlocked (queue=queue@entry=0x55cced095420, wait=wait@entry=1, end_time=end_time@entry=152083785) at gasyncqueue.c:422
#3  0x00007f6c7b9cd620 in g_async_queue_timeout_pop (queue=0x55cced095420, timeout=timeout@entry=15000000) at gasyncqueue.c:543
#4  0x00007f6c7ba237f1 in g_thread_pool_wait_for_new_pool () at gthreadpool.c:167
#5  g_thread_pool_thread_proxy (data=<optimized out>) at gthreadpool.c:364
#6  0x00007f6c7ba22d4a in g_thread_proxy (data=0x55ccfefb34f0) at gthread.c:784
#7  0x00007f6c8c21415a in start_thread (arg=<optimized out>) at pthread_create.c:479
#8  0x00007f6c8b7bbf33 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f6c50811700 (LWP 2133)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55ccedd96ea8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55ccedd96e58, cond=0x55ccedd96e80) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=cond@entry=0x55ccedd96e80, mutex=mutex@entry=0x55ccedd96e58) at pthread_cond_wait.c:655
#3  0x00007f6c5715b10b in cnd_wait (mtx=0x55ccedd96e58, cond=0x55ccedd96e80) at ../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x55ccedd97ae0) at ../src/util/u_queue.c:275
#5  0x00007f6c5715ad2b in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#6  0x00007f6c8c21415a in start_thread (arg=<optimized out>) at pthread_create.c:479
#7  0x00007f6c8b7bbf33 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f6c51012700 (LWP 2132)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55ccedd96ea8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55ccedd96e58, cond=0x55ccedd96e80) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=cond@entry=0x55ccedd96e80, mutex=mutex@entry=0x55ccedd96e58) at pthread_cond_wait.c:655
#3  0x00007f6c5715b10b in cnd_wait (mtx=0x55ccedd96e58, cond=0x55ccedd96e80) at ../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x55ccedd97aa0) at ../src/util/u_queue.c:275
#5  0x00007f6c5715ad2b in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#6  0x00007f6c8c21415a in start_thread (arg=<optimized out>) at pthread_create.c:479
#7  0x00007f6c8b7bbf33 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f6c51813700 (LWP 2131)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55ccedd96ea8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55ccedd96e58, cond=0x55ccedd96e80) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=cond@entry=0x55ccedd96e80, mutex=mutex@entry=0x55ccedd96e58) at pthread_cond_wait.c:655
#3  0x00007f6c5715b10b in cnd_wait (mtx=0x55ccedd96e58, cond=0x55ccedd96e80) at ../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x55ccedd97ae0) at ../src/util/u_queue.c:275
#5  0x00007f6c5715ad2b in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#6  0x00007f6c8c21415a in start_thread (arg=<optimized out>) at pthread_create.c:479
#7  0x00007f6c8b7bbf33 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f6c5f9e2700 (LWP 2130)):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55ccedd96ea8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55ccedd96e58, cond=0x55ccedd96e80) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=cond@entry=0x55ccedd96e80, mutex=mutex@entry=0x55ccedd96e58) at pthread_cond_wait.c:655
#3  0x00007f6c5715b10b in cnd_wait (mtx=0x55ccedd96e58, cond=0x55ccedd96e80) at ../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x55ccedd97aa0) at ../src/util/u_queue.c:275
#5  0x00007f6c5715ad2b in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#6  0x00007f6c8c21415a in start_thread (arg=<optimized out>) at pthread_create.c:479
#7  0x00007f6c8b7bbf33 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f6c65de3700 (LWP 1934)):
#0  0x00007f6c8b7b0cb1 in __GI___poll (fds=0x55ccefb651a0, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f6c7b9fa9b6 in g_main_context_poll (priority=<optimized out>, n_fds=3, fds=0x55ccefb651a0, timeout=<optimized out>, context=0x55cced259060) at gmain.c:4203
#2  g_main_context_iterate (context=0x55cced259060, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3897
#3  0x00007f6c7b9fad72 in g_main_loop_run (loop=0x55cced259150) at gmain.c:4098
#4  0x00007f6c7b2ce55a in gdbus_shared_thread_func (user_data=0x55ccecfd4650) at gdbusprivate.c:275
#5  0x00007f6c7ba22d4a in g_thread_proxy (data=0x55cced9a18f0) at gthread.c:784
#6  0x00007f6c8c21415a in start_thread (arg=<optimized out>) at pthread_create.c:479
#7  0x00007f6c8b7bbf33 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f6c665e4700 (LWP 1933)):
#0  0x00007f6c8b7b0cb1 in __GI___poll (fds=0x55ccecfd3650, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f6c7b9fa9b6 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x55ccecfd3650, timeout=<optimized out>, context=0x55cced3d5dc0) at gmain.c:4203
#2  g_main_context_iterate (context=context@entry=0x55cced3d5dc0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3897
#3  0x00007f6c7b9faae0 in g_main_context_iteration (context=0x55cced3d5dc0, may_block=may_block@entry=1) at gmain.c:3963
#4  0x00007f6c7b9fab31 in glib_worker_main (data=<optimized out>) at gmain.c:5772
#5  0x00007f6c7ba22d4a in g_thread_proxy (data=0x55cced9a1850) at gthread.c:784
#6  0x00007f6c8c21415a in start_thread (arg=<optimized out>) at pthread_create.c:479
#7  0x00007f6c8b7bbf33 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f6c8d06cb80 (LWP 1905)):
#0  0x00007f6c8c21e4b2 in __waitpid (pid=2471, stat_loc=0x7ffec147c8bc, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1  0x00007f6c6f73935f in ?? ()
#2  0x000055ccfee55cf0 in ?? ()
#3  0x00007f6c7ba3e8b8 in g_variant_type_info_query (info=0x5, alignment=0x0, fixed_size=0x55ccef932bc0) at gvarianttypeinfo.c:245
#4  0x0000000000000000 in ?? ()

Comment 10 Radek Vykydal 2020-10-14 09:14:04 UTC
Created attachment 1721431 [details]
Journal for crash in comment #9 with NM logging level set to TRACE

Comment 11 Radek Vykydal 2020-10-14 09:18:21 UTC
Created attachment 1721432 [details]
Screenshot of the crash

(In reply to Radek Vykydal from comment #9)
> Created attachment 1721430 [details]
> Screenshot of the crash

Attaching the right file

Comment 12 Thomas Haller 2020-12-09 17:09:56 UTC
possible fix: https://github.com/rhinstaller/anaconda/pull/3045

Comment 13 Radek Vykydal 2021-01-04 13:54:52 UTC
Marking as duplicate of bug 1873561 per comment https://bugzilla.redhat.com/show_bug.cgi?id=1873561#c22 .

*** This bug has been marked as a duplicate of bug 1873561 ***