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 2218620

Summary: glibc: segmentation fault with char array of large sizes
Product: Red Hat Enterprise Linux 8 Reporter: Tim Zielke <tim.zielke>
Component: glibcAssignee: glibc team <glibc-bugzilla>
Status: CLOSED NOTABUG QA Contact: qe-baseos-tools-bugs
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.8CC: ashankar, codonell, cww, dj, fweimer, pfrankli, sipoyare
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-14 13:29:19 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:

Description Tim Zielke 2023-06-29 17:00:28 UTC
Description of problem:

I had a C executable that was using a char array of a size around 104857600. For example,

#define BUFFERMAX 104857600
   char     buffer[BUFFERMAX+1];   /* message buffer                */

The C executable ran fine on RHEL 7 Linux x86_64 machines. However, when we ported over to a RHEL 8 server, the program would just throw a "segmentation fault" when you tried to execute it. I recompiled the program with a lower value for the BUFFERMAX (i.e. 4194304), and now it runs fine on RHEL 8. I am fine with this workaround, but wanted to report the potential bug here for RHEL 8.

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

Issue happened on the following:

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.8
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.8"
Red Hat Enterprise Linux release 8.8 (Ootpa)


How reproducible:

Write a C program that has char array of around 104857600. See if it can run on both RHEL 7 and RHEL 8.


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Carlos O'Donell 2023-06-30 13:24:46 UTC
If you are a Red Hat customer with an active subscription, please visit the Red Hat Customer Portal [1] for assistance with your issue.

[1] http://access.redhat.com/

Comment 5 Carlos O'Donell 2023-07-14 13:29:19 UTC
I'm marking this CLOSED/NOTABUG because there doesn't seem to be any direct issue with glibc, but rather a `ulimit -d` issue.

If you are a Red Hat customer with an active subscription, please reach out to your support representative.

Comment 6 Red Hat Bugzilla 2023-11-12 04:25:05 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days