Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1143943

Summary: glib2 segfaults in g_source_add_child_source()
Product: Red Hat Enterprise Linux 7 Reporter: Stef Walter <stefw>
Component: glib2Assignee: Colin Walters <walters>
Status: CLOSED CURRENTRELEASE QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: fdeutsch, kbsingh, lsm5, riehecky, vbenes, walters
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glib2-2.40.0-4.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-06 14:24:04 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: 1104372    
Bug Blocks: 1143927    

Description Stef Walter 2014-09-18 09:47:51 UTC
Description of problem:

glib2 segfaults in g_source_add_child_source() due to a bug in child source support. This bug is fixed upstream in glib2 2.37.4.

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



How reproducible:

# Easily.

Steps to Reproduce:
1. Building and install cockpit on RHEL7.
2. systemctl start cockpit
3. Access cockpit with https on port 9090

Actual results:

cockpit-ws crashes

Expected results:

No crash

Comment 1 Stef Walter 2014-09-18 09:55:22 UTC
[root@rh7 ~]# rpm -q glib2
glib2-2.36.3-5.el7.x86_64
[root@rh7 ~]# rpm -q glib-networking
glib-networking-2.36.2-3.el7.x86_64

Example backtrace:

#0  g_main_context_remove_poll_unlocked (context=0x0, fd=0x6d2530) at gmain.c:4159
#1  0x00007ffff754d6e4 in block_source (source=0x6d24d0) at gmain.c:2947
#2  0x00007ffff754d738 in block_source (source=0x6d2420) at gmain.c:2959
#3  0x00007ffff754f560 in g_source_add_child_source (source=0x6d9aa0, child_source=0x6d2420) at gmain.c:1427
#4  0x00007ffff2a47f87 in gnutls_source_sync (gnutls_source=gnutls_source@entry=0x6d9aa0)
    at gtlsconnection-gnutls.c:881
#5  0x00007ffff2a48084 in gnutls_source_dispatch (source=source@entry=0x6d9aa0, callback=<optimized out>, 
    user_data=<optimized out>) at gtlsconnection-gnutls.c:895
#6  0x00007ffff7550ac6 in g_main_dispatch (context=0x6cd450) at gmain.c:3058
#7  g_main_context_dispatch (context=context@entry=0x6cd450) at gmain.c:3634
#8  0x00007ffff7550e48 in g_main_context_iterate (context=0x6cd450, block=block@entry=1, dispatch=dispatch@entry=1, 
    self=<optimized out>) at gmain.c:3705
#9  0x00007ffff755125a in g_main_loop_run (loop=0x655f60) at gmain.c:3899
#10 0x000000000040965d in main (argc=1, argv=0x7fffffffe4f8) at src/ws/main.c:168

Comment 5 Stef Walter 2014-09-18 13:26:05 UTC
Removing accidentally added private flag from bug.

Comment 7 Red Hat Bugzilla 2023-09-14 02:47:50 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days