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 1449833 - [NMCI] g_warning() "fail: Error accepting connection: Bad file descriptor" in g_socket_service_ready() / gio/gsocketservice.c
Summary: [NMCI] g_warning() "fail: Error accepting connection: Bad file descriptor" in...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: glib2
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Colin Walters
QA Contact: Desktop QE
URL: http://faf.lab.eng.brq.redhat.com/faf...
Whiteboard:
: 1457166 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-10 20:41 UTC by Vladimir Benes
Modified: 2021-01-15 07:35 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-15 07:35:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Vladimir Benes 2017-05-10 20:41:14 UTC
This bug has been created based on an anonymous crash report requested by the package maintainer.

Report URL: http://faf.lab.eng.brq.redhat.com/faf/reports/bthash/ee907d1f7fa31e3aa8d1492708be953ba909c155/

Comment 1 Thomas Haller 2017-05-11 14:12:19 UTC
#2  0x00003fffa1e4d9ac in g_logv (log_domain=0x3fffa21af598 "GLib-GIO", log_level=G_LOG_LEVEL_WARNING, format=<optimized out>, args=<optimized out>) at gmessages.c:1318
        domain = 0x0
        data = 0x0
        depth = 1
        log_func = 0x3fffa1e4d3f0 <g_log_default_handler>
        domain_fatal_mask = <optimized out>
        masquerade_fatal = <optimized out>
        test_level = 18
        was_fatal = <optimized out>
        was_recursion = <optimized out>
        msg = 0x1002546ae00 "fail: Error accepting connection: Bad file descriptor"
        msg_alloc = 0x1002546ae00 "fail: Error accepting connection: Bad file descriptor"
        i = 4
#3  0x00003fffa1e4db00 in g_log (log_domain=<optimized out>, log_level=<optimized out>, format=<optimized out>) at gmessages.c:1359
        args = <optimized out>
#4  0x00003fffa20d42c0 in g_socket_service_ready (object=0x100253c24f0 [GThreadedSocketService], result=<optimized out>, user_data=<optimized out>) at gsocketservice.c:382
        listener = 0x100253c24f0 [GThreadedSocketService]
        service = 0x100253c24f0 [GThreadedSocketService]
        connection = 0x1002530c280 [GSocket]
        source_object = 0x0
        error = 0x10025411910



prints a g_warning() in g_socket_service_ready():


  connection = g_socket_listener_accept_finish (listener, result, &source_object, &error);
  if (error)
    { 
      if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
»···g_warning ("fail: %s", error->message);
      g_error_free (error);
    }



It is similar to bug 1255169. Reassigning to glib2.

It would be desired that glib2 doesn't issue g_criticals or g_warnings for external failures (only for bugs).

Comment 2 Colin Walters 2017-05-11 14:21:53 UTC
Can you file these types of things upstream please?

Comment 3 Colin Walters 2017-05-11 14:24:21 UTC
Hmm actually though...i would say that passing invalid FDs into glib is *program* error, and not runtime error.  Hence we're within our rights to abort(), not return a GError.

Is NM providing glib a bad socket fd?

Comment 4 Thomas Haller 2017-05-11 15:54:22 UTC
I don't understand which file descriptor causes the error. But it's not at all clear that this filedescriptor was opened by NetworkManager and passed to glib -- it could also be an internal file descriptor, like from the D-Bus socket.

Also, it's not clear that at the moment when NM passed the filedescriptor to glib, that it was already EBADFD. I would doubt that, but cannot be sure either.

IO can fail. glib should not log warnings about that, but either report the error to the user or silently ignore the failure.


Anyway, let's see whether this reproduces, maybe we can gather more information.

Comment 5 Thomas Haller 2017-06-09 10:22:06 UTC
probably the same issue is bug 1451236.
See https://bugzilla.redhat.com/show_bug.cgi?id=1451236#c7

Comment 6 Beniamino Galvani 2017-06-14 16:12:53 UTC
*** Bug 1457166 has been marked as a duplicate of this bug. ***

Comment 8 RHEL Program Management 2021-01-15 07:35:43 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


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