Bug 1923062

Summary: crash during deactivation
Product: Red Hat Enterprise Linux 8 Reporter: Vladimir Benes <vbenes>
Component: NetworkManagerAssignee: Beniamino Galvani <bgalvani>
Status: CLOSED CURRENTRELEASE QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4CC: acardace, atragler, bgalvani, lrintel, rkhan, sukulkar, till
Target Milestone: rcKeywords: Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: NetworkManager-1.30.0-0.9.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-02 10:37:51 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:

Description Vladimir Benes 2021-02-01 11:06:33 UTC
Description of problem:
we have a crash during deactivation in nm_platform_ethtool_set_link_settings()


(gdb) #0  0x00007f5f9298cf67 in g_logv () at /lib64/libglib-2.0.so.0
#1  0x00007f5f9298d223 in g_log () at /lib64/libglib-2.0.so.0
#2  0x00005612a0a8669f in _nm_g_return_if_fail_warning.lto_priv.98 ()
#3  0x00005612a0bbd418 in nm_platform_ethtool_set_link_settings ()
#4  0x00005612a0cb7fd1 in deactivate.lto_priv ()
#5  0x00005612a0c95047 in nm_device_cleanup ()
#6  0x00005612a0c894d8 in _set_state_full ()
#7  0x00005612a0c93e63 in nm_device_unrealize ()
#8  0x00005612a0caa97f in _platform_link_cb_idle ()
#9  0x00007f5f9298405b in g_idle_dispatch () at /lib64/libglib-2.0.so.0
#10 0x00007f5f92984f8f in g_main_context_dispatch ()
    at /lib64/libglib-2.0.so.0
#11 0x00007f5f929d84d8 in g_main_context_iterate.constprop ()
    at /lib64/libglib-2.0.so.0
#12 0x00007f5f92984673 in g_main_loop_run () at /lib64/libglib-2.0.so.0
#13 0x00005612a0a85dba in main ()
(gdb) quit
           PID: 63781 (NetworkManager)
           UID: 0 (root)
           GID: 0 (root)
        Signal: 5 (TRAP)
     Timestamp: Sun 2021-01-31 18:54:38 EST (44s ago)
  Command Line: /usr/sbin/NetworkManager --no-daemon
    Executable: /usr/sbin/NetworkManager
 Control Group: /system.slice/NetworkManager.service
          Unit: NetworkManager.service
         Slice: system.slice
       Boot ID: cd752e2743ac4c769d09e2a789a481d8
    Machine ID: a2c25aade1884a268497cdccf194ffba
      Hostname: gsm-r5s8-01.wlan.rhts.eng.bos.redhat.com
       Storage: /var/lib/systemd/coredump/core.NetworkManager.0.cd752e2743ac4c769d09e2a789a481d8.63781.1612137278000000.zst
       Message: Process 63781 (NetworkManager) of user 0 dumped core.
                
                Stack trace of thread 63781:
                #0  0x00007f5f9298cf67 g_logv (libglib-2.0.so.0 + 0x5bf67)
                #1  0x00007f5f9298d223 g_log (libglib-2.0.so.0 + 0x5c223)
                #2  0x00005612a0a8669f _nm_g_return_if_fail_warning.lto_priv.0 (NetworkManager + 0x4c69f)
                #3  0x00005612a0bbd418 nm_platform_ethtool_set_link_settings (NetworkManager + 0x183418)
                #4  0x00005612a0cb7fd1 deactivate.lto_priv.1 (NetworkManager + 0x27dfd1)
                #5  0x00005612a0c95047 nm_device_cleanup (NetworkManager + 0x25b047)
                #6  0x00005612a0c894d8 _set_state_full (NetworkManager + 0x24f4d8)
                #7  0x00005612a0c93e63 nm_device_unrealize (NetworkManager + 0x259e63)
                #8  0x00005612a0caa97f _platform_link_cb_idle (NetworkManager + 0x27097f)
                #9  0x00007f5f9298405b g_idle_dispatch (libglib-2.0.so.0 + 0x5305b)
                #10 0x00007f5f92984f8f g_main_context_dispatch (libglib-2.0.so.0 + 0x53f8f)
                #11 0x00007f5f929d84d8 g_main_context_iterate.constprop.0 (libglib-2.0.so.0 + 0xa74d8)
                #12 0x00007f5f92984673 g_main_loop_run (libglib-2.0.so.0 + 0x53673)
                #13 0x00005612a0a85dba main (NetworkManager + 0x4bdba)
                #14 0x00007f5f92745b75 __libc_start_main (libc.so.6 + 0x27b75)
                #15 0x00005612a0a863ee _start (NetworkManager + 0x4c3ee)
                
                Stack trace of thread 63782:
                #0  0x00007f5f9281462f __GI___poll (libc.so.6 + 0xf662f)
                #1  0x00007f5f929d8476 g_main_context_iterate.constprop.0 (libglib-2.0.so.0 + 0xa7476)
                #2  0x00007f5f92982343 g_main_context_iteration (libglib-2.0.so.0 + 0x51343)
                #3  0x00007f5f92983f81 glib_worker_main (libglib-2.0.so.0 + 0x52f81)
                #4  0x00007f5f929b3332 g_thread_proxy (libglib-2.0.so.0 + 0x82332)
                #5  0x00007f5f928f7269 start_thread (libpthread.so.0 + 0x9269)
                #6  0x00007f5f9281f2d3 __clone (libc.so.6 + 0x1012d3)
                
                Stack trace of thread 63783:
                #0  0x00007f5f9281462f __GI___poll (libc.so.6 + 0xf662f)
                #1  0x00007f5f929d8476 g_main_context_iterate.constprop.0 (libglib-2.0.so.0 + 0xa7476)
                #2  0x00007f5f92984673 g_main_loop_run (libglib-2.0.so.0 + 0x53673)
                #3  0x00007f5f92bd657a gdbus_shared_thread_func.lto_priv.0 (libgio-2.0.so.0 + 0x10f57a)
                #4  0x00007f5f929b3332 g_thread_proxy (libglib-2.0.so.0 + 0x82332)
                #5  0x00007f5f928f7269 start_thread (libpthread.so.0 + 0x9269)
                #6  0x00007f5f9281f2d3 __clone (libc.so.6 + 0x1012d3)



Version-Release number of selected component (if applicable):
1.30.0-0.8

How reproducible:


Steps to Reproduce:
1. nmstate test in NMCI (under F34)

Actual results:
crash

Expected results:
no crash

Additional info:

Comment 2 Vladimir Benes 2021-02-02 10:35:19 UTC
Looks good, was running nmstate test suite with NetworkManager-1.30.0-0.3.1.fc34.1.x86_64.rpm and after 10 cycles no crash. After downgrade and single execution with the old package, I saw one new crash. So this looks fixed.

Comment 3 Vladimir Benes 2021-02-02 10:37:51 UTC
we can close this as fixed currentrelease