Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 90301

Summary: Programs fail at exit if compiled with gcc and cxa_atexit
Product: [Retired] Red Hat Linux Reporter: Calvin Austin <calvin.austin>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED UPSTREAM QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: drepper, fweimer
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-05-06 23:50:41 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:

Description Calvin Austin 2003-05-06 16:31:28 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.79 [en] (X11; U; Linux 2.4.18-3 i686)

Description of problem:
When running a JDK built with gcc 3.2 with the cxa_atexit option enabled for
backward compatibility, the jvm crashes on exit using the NPTL thread library.
setting LD_ASSUME_KERNEL to 2.4.1 will work.

The error message you will see is from libc_free

This bug has already been diagnosed by ulrich and due to a missing check in
unregister_atfork when freeing the dso handles. The patched unregister_atfork
does work but isn't currently available to redhat 9 users in glibc

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


How reproducible:
Always

Steps to Reproduce:
1. run a jdk demo compiled with gcc 3.2 , blackdown.org have a public gcc 3.2
version
2.exit demo
3.
    

Additional info:

Comment 1 Ulrich Drepper 2003-05-06 23:50:41 UTC
This is fixed in the upstream glibc archive and will be in the next release.  If
there is a bug fix or security update for glibc it'll be included, too.

Comment 2 Joseph Shraibman 2003-06-23 20:42:44 UTC
Does this effect redhat 8?

Comment 3 Ulrich Drepper 2003-11-04 21:44:59 UTC
If you don't see a problem in RHL8 it won't effect it.  I do not know
the details anymore.

Anyway, a test release of the RHL9 errata is at

  ftp://people.redhat.com/jakub/glibc/errata/2.3.2-27.9.4/           
                                                                    

Give it a try and let us know how it works.