Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-58107

Crash on nm_utils_buf_utf8safe_escape_strv

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.6
    • NetworkManager
    • No
    • None
    • rhel-sst-network-management
    • ssg_networking
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      Run nmstate tier 1 test and noticed NetworkManager crash on `test_dns_edit_nameserver_with_static_gateway` test.

      What is the impact of this issue to you?

      NM crash

      Please provide the package NVR for which the bug is seen:

      NetworkManager-1.51.0-33482.copr.e779c25690.el9

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. Run nmstate tier1 test

      Expected results

      CI pass

      Actual results

      NM crash with

      (gdb) bt
      #0  0x00007f5714d5d13d in __strlen_avx2 () at /lib64/libc.so.6
      #1  0x00007f5715063688 in g_strdup () at /lib64/libglib-2.0.so.0
      #2  0x0000561c7256b21d in _nm_strv_dup_full
          (strv=strv@entry=0x561c74236dc0, len=len@entry=46, preserve_empty=preserve_empty@entry=0, deep_copied=1) at src/libnm-glib-aux/nm-shared-utils.c:3872
      #3  0x0000561c7264de55 in nm_utils_buf_utf8safe_escape_strv
          (strv_len=-1, flags=(NM_UTILS_STR_UTF8_SAFE_FLAG_ESCAPE_CTRL | NM_UTILS_STR_UTF8_SAFE_FLAG_ESCAPE_NON_ASCII), out_to_free=<synthetic pointer>, strv=0x561c74236dc0)
          at src/libnm-glib-aux/nm-shared-utils.c:3056
      #4  get_property_ip
          (object=<optimized out>, prop_id=<optimized out>, value=0x7ffcdda37c40, pspec=<optimized out>) at src/core/nm-ip-config.c:198
      #5  0x00007f5715151751 in g_object_get_property () at /lib64/libgobject-2.0.so.0
      #6  0x0000561c7256a0d4 in nm_dbus_utils_get_property
          (property_name=0x561c7287b99c "searches", signature=0x561c7289575c "as", obj=0x561c741f4440)
          at src/core/nm-dbus-utils.c:95
      #7  _obj_get_property (reg_data=0x561c7421c800, property_idx=8, refetch=<optimized out>)
          at src/core/nm-dbus-manager.c:880
      #8  0x0000561c7259bf77 in _nm_dbus_manager_obj_notify
          (pspecs=0x7ffcdda37e40, n_pspecs=4, obj=0x561c741f4440) at src/core/nm-dbus-manager.c:1201
      #9  dispatch_properties_changed (object=0x561c741f4440, n_pspecs=4, pspecs=0x7ffcdda37e40)
          at src/core/nm-dbus-object.c:253
      #10 0x00007f57151402ba in g_object_notify_queue_thaw.lto_priv () at /lib64/libgobject-2.0.so.0
      #11 0x00007f571514ce4b in g_object_thaw_notify () at /lib64/libgobject-2.0.so.0
      #12 0x0000561c7266a67f in _handle_l3cd_changed (l3cd=<optimized out>, self=0x561c741f4440)
          at src/core/nm-ip-config.c:837
      #13 _l3cfg_notify_cb
      

              nm-team Network Management Team
              fge@redhat.com Gris Ge
              Network Management Team Network Management Team
              Vladimir Benes Vladimir Benes
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: