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 1136304

Summary: Devhelp causes segmentation fault
Product: Red Hat Enterprise Linux 6 Reporter: Ladislav Kolacek <lkolacek>
Component: devhelpAssignee: Matthew Barnes <mbarnes>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.6CC: lkolacek, tlavigne, tpelka
Target Milestone: rcKeywords: Regression, TestBlocker
Target Release: ---   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: devhelp-2.28.1-6.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 08:06:15 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:
Attachments:
Description Flags
Output from gdb none

Description Ladislav Kolacek 2014-09-02 10:03:59 UTC
Created attachment 933674 [details]
Output from gdb

Description of problem:

Version-Release number of selected component (if applicable):
webkitgtk-1.4.3-4.el6
devhelp-2.28.1-5.el6

How reproducible:
always

Steps to Reproduce:
1. Run devhelp 

Actual results: Segmentation fault

Expected results: Application should run correctly.

Additional info: More information is in attachment. (file devhelp.bt)

Comment 2 Matthew Barnes 2014-09-05 15:32:19 UTC
The GCompletion API was already deprecated at this time.  Devhelp is building with G_DISABLE_DEPRECATED but not -Werror-implicit-function-declaration as shown in the build log:

dh-search.c: In function 'search_finalize':
dh-search.c:95: warning: implicit declaration of function 'g_completion_free'
dh-search.c: In function 'dh_search_init':
dh-search.c:128: warning: implicit declaration of function 'g_completion_new'
dh-search.c:129: warning: assignment makes pointer from integer without a cast
dh-search.c: In function 'search_complete_idle':
dh-search.c:394: warning: implicit declaration of function 'g_completion_complete'
dh-search.c:394: warning: assignment makes pointer from integer without a cast
dh-search.c: In function 'dh_search_new':
dh-search.c:654: warning: implicit declaration of function 'g_completion_add_items'

gcc assumes an integer return type for these undeclared functions, some of which return a pointer.  The pointer value is likely getting truncated to sizeof(int).

Comment 3 Matthew Barnes 2014-09-05 17:45:45 UTC
I removed the "*_DISABLE_DEPRECATED" flags from Devhelp's build files since apps should not be shipping with those flags in the first place.

Rolled a new devhelp package for that.

Ray Strode also suggested we back out new GLib symbol deprecations picked up from the rebases so other apps don't suffer similar problems.  I can slip that in under bug #1101398.

Comment 7 errata-xmlrpc 2014-10-14 08:06:15 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.

http://rhn.redhat.com/errata/RHBA-2014-1573.html