Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 71039

Summary: Crash in regcomp()
Product: [Retired] Red Hat Raw Hide Reporter: Havoc Pennington <hp>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: fweimer, rgorosito
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-08-11 22:13:21 UTC Type: ---
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:    
Bug Blocks: 67217    

Description Havoc Pennington 2002-08-08 02:48:12 UTC
The following test program will abort in free() if run with MALLOC_CHECK_=2
using glibc-2.2.90-17. I believe this is the cause of the "mcedit crashes on
startup" bug that has been reported several times.

#include <sys/types.h>
#include <regex.h>
#include <stdlib.h>

int
main (int argc, char **argv)
{
  regex_t r;

  regcomp (&r, "^@! */.*/(k|ba||pdk|z)sh", REG_EXTENDED);

  return 0;
}

Comment 1 Havoc Pennington 2002-08-08 02:53:57 UTC
Bug #66794 is the mc bug.

Comment 3 Havoc Pennington 2002-08-11 22:13:10 UTC
*** Bug 66794 has been marked as a duplicate of this bug. ***

Comment 4 Jakub Jelinek 2002-08-16 06:31:11 UTC
Should be fixed in glibc-2.2.90-19 and later.