RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1642625 - Crash in libnm when cancelling GCancellable from within activate-connect-async callback
Summary: Crash in libnm when cancelling GCancellable from within activate-connect-asyn...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: NetworkManager
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Thomas Haller
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: 1643085
TreeView+ depends on / blocked
 
Reported: 2018-10-24 20:33 UTC by Edward Haas
Modified: 2019-08-06 13:16 UTC (History)
10 users (show)

Fixed In Version: NetworkManager-1.16.2-0.1.20190328git8ec0954570.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1643085 (view as bug list)
Environment:
Docker
Last Closed: 2019-08-06 13:16:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Core from the pytest run (7.98 MB, application/x-compress)
2018-10-24 20:33 UTC, Edward Haas
no flags Details
backtrace (140.67 KB, text/plain)
2018-10-25 08:22 UTC, Thomas Haller
no flags Details
another backtrace (53.02 KB, application/x-gzip)
2018-10-25 12:48 UTC, Thomas Haller
no flags Details
[patch v1] libnm: fix crash in activate_info_complete() (1.58 KB, patch)
2018-10-25 12:57 UTC, Thomas Haller
no flags Details | Diff
Reproducer script. (900 bytes, text/x-python)
2018-12-06 12:22 UTC, Gris Ge
no flags Details
Reproducer script. (988 bytes, text/x-python)
2018-12-10 07:57 UTC, Gris Ge
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:2302 0 None None None 2019-08-06 13:16:45 UTC

Description Edward Haas 2018-10-24 20:33:05 UTC
Created attachment 1497216 [details]
Core from the pytest run

Description of problem:
While running integration tests on nmstate with a container, the run crashed and created a core.
Tested with various mtu values on a veth interface inside a container.

Version-Release number of selected component (if applicable):
NetworkManager version 1.10.2-16.el7_5
uname -a: Linux 3c5fbee79551 3.10.0-693.21.1.el7.x86_64 #1 SMP Fri Feb 23 18:54:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

How reproducible:
Use https://github.com/nmstate/nmstate to run the integration tests.
./automation/run-integration-tests.sh

The failing tests: https://github.com/nmstate/nmstate/pull/113
(I suspect the invalid mtu values (10,000 , 0, -1, 40)

Reproduced 80% of the times.

Actual results:
Segmentation fault with a core.

Expected results:


Additional info:

Comment 2 Edward Haas 2018-10-24 20:34:15 UTC
The test which sets mtu=10000 is suspected.

Comment 3 Thomas Haller 2018-10-25 08:22:22 UTC
Created attachment 1497364 [details]
backtrace

Comment 4 Thomas Haller 2018-10-25 12:48:43 UTC
Created attachment 1497443 [details]
another backtrace

in this backtrace I patched 1:1.10.2-16.el7_5 to assert if activate_info_complete() is called recursively. And (as expected) it is...

Comment 5 Thomas Haller 2018-10-25 12:57:12 UTC
Created attachment 1497450 [details]
[patch v1] libnm: fix crash in activate_info_complete()

Comment 6 Beniamino Galvani 2018-10-25 13:06:55 UTC
(In reply to Thomas Haller from comment #5)
> Created attachment 1497450 [details]
> [patch v1] libnm: fix crash in activate_info_complete()

LGTM

Comment 8 Edward Haas 2018-10-27 11:13:33 UTC
Tested on my environment and no segmentations are seen any more. Thanks!

Comment 9 Thomas Haller 2018-10-28 18:40:43 UTC
btw, I think this is entirely unrelated to MTU settings... Updated title.

Comment 10 Gris Ge 2018-12-06 12:22:24 UTC
Created attachment 1512095 [details]
Reproducer script.

Reproducer attached.

```
sudo python ./nm_cancle_in_callback.py
```

Comment 11 Gris Ge 2018-12-10 07:57:12 UTC
Created attachment 1512954 [details]
Reproducer script.

Comment 17 errata-xmlrpc 2019-08-06 13:16:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2302


Note You need to log in before you can comment on or make changes to this bug.