Bug 1362 - update request: glibc (was: java gui applications crash immediately (glibc bug, patch in upstream report))
Summary: update request: glibc (was: java gui applications crash immediately (glibc bu...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: x86_64 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard:
Keywords: PATCH, validated_update
Depends on:
Blocks: 1446 3112 3357
  Show dependency treegraph
 
Reported: 2011-05-20 19:32 CEST by Andreas Persson
Modified: 2014-05-08 18:07 CEST (History)
17 users (show)

See Also:
Source RPM: glibc-2.12.1-11.mga1.src.rpm
CVE:
Status comment:


Attachments
openjdk error log turd dropped in my home directory (33.98 KB, text/x-log)
2011-08-20 04:24 CEST, Aaron Sosnick
Details

Description Andreas Persson 2011-05-20 19:32:39 CEST
Description of problem:

I have a Sandy Bridge Core i5 processor. It seems as I can't run any Java application with a GUI, the java process crashes immediately. This happens with the OpenJDK 1.6.0_22 64-Bit Server VM from the Mageia package, but also with a 1.6.0_25 HotSpot 64-Bit Server VM downloaded from Oracle.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f9f7e3c2670, pid=26739, tid=140322996393744
#
# JRE version: 6.0_22-b22
# Java VM: OpenJDK 64-Bit Server VM (20.0-b10 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea6 1.10
# Distribution: Mageia 1, package mageia-14.b22.5.mga1-x86_64
# Problematic frame:
# C  [ld-linux-x86-64.so.2+0x13670]  _dl_x86_64_save_sse+0x30
#

My guess is that the reason is this glibc bug:

http://sourceware.org/bugzilla/show_bug.cgi?id=12113

which is fixed in glibc 2.12.2.


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

glibc-2.12.1-11.mga1, java-1.6.0-openjdk-1.6.0.0-14.b22.5.mga1

How reproducible:

Happens every time.

Steps to Reproduce:
1. java HelloWorldSwing
Andreas Persson 2011-05-20 21:09:04 CEST

Summary: java gui applications crashes immediately => java gui applications crash immediately

Comment 1 Aaron Sosnick 2011-08-20 04:24:07 CEST
Created attachment 732 [details]
openjdk error log turd dropped in my home directory
Comment 2 Aaron Sosnick 2011-08-20 04:25:20 CEST
Oops. My problem is with Mageia 1, not Cauldron.

I can file a separate report if someone advises me that that is better.

CC: (none) => longlegged.guy
Version: Cauldron => 1

Comment 3 Aaron Sosnick 2011-08-20 04:26:36 CEST
Someone more knowledgeable than me can decide if this is the same problem.

I'm running 64 bit Mageia 1 on a core i7-2600k and find that openjdk is worthless.

With openjdk as well as icedtea-web installed and selected no java applets on any webpages work. The rest of a page will load, but the java applet part will just sit there. Meanwhile files
with names like hs_err_pid6980.log get dropped in my home directory. I attach one as an example.

The Sun Java works fine. If I have both Sun and Open java and browser plugins installed and use
$ update-alternatives --config java
to select the sun java, firefox and most programs behave fine.
Chrome however continues to use icedtea-web unless I actually uninstall icedtea-web.

Should I open a separate bug report for this?

Hope this gets some attention.
Manuel Hiebel 2011-08-20 08:47:16 CEST

CC: (none) => dmorganec

Samuel Verschelde 2011-10-01 10:46:40 CEST

Keywords: (none) => PATCH
CC: (none) => stormi

Samuel Verschelde 2011-10-01 10:48:01 CEST

Summary: java gui applications crash immediately => java gui applications crash immediately (glibc bug, patch in upstream report)

Comment 4 Chard Nelson 2011-10-08 02:39:44 CEST
I appear to be having the same issue running code on my new i7-2600 with 64-bit Mageia 1. This is my new development box, and I upgraded it from Mandriva 2010.1, where this stuff worked.

I've tried compiling with Sun/Oracle JDK 1.6_25 and _27, downloaded from Oracle, with the same result:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f713dbab670, pid=25064, tid=140124320417552
#
# JRE version: 6.0_27-b07
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.2-b06 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [ld-linux-x86-64.so.2+0x13670]  _dl_x86_64_save_sse+0x30

If this can be fixed by updating glibc, I'd love to see that package available.

CC: (none) => chard

Comment 5 Samuel Verschelde 2011-10-08 11:03:20 CEST
Adding glibc committers in CC as there is no maintainer.

Seems to be an upstream bug, there's a patch in the upstream report.

CC: (none) => arnaud.patard, mageia, misc, thierry.vignaud

Comment 7 Cédric Levasseur 2011-10-12 18:09:08 CEST
I was able to reproduce this bug with the Intel i860 graphic driver (as far as i remember). If you are in the case of a Laptop Dell E6420 (i7), you can 1)Disable "Optimus" in the graphic option of the Bios and 2) Install the nVidia GForce400s driver.

CC: (none) => cedric.levasseur

Comment 8 Manuel Hiebel 2011-10-30 01:30:53 CEST
Bug assigned to the package maintainer.

Assignee: bugsquad => tmb

Marianne Lombard 2011-11-01 09:31:52 CET

CC: (none) => marianne

andré blais 2011-11-01 11:37:22 CET

Blocks: (none) => 3112

Comment 9 bruno pinçon 2011-11-08 14:38:49 CET
  It is likely that this bug is also responsible
 of the failing of the installation of matlab 2011
 on my machine (a dell latitude E 6420, i7 dual core,
 only HD Intel 3000 GPU) which runs mageia-1.0.

  I got the same kind of error :

[root@ma096 iso]# ./install
Preparing installation files ...
Installing ...
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f30a7b48670, pid=11471, tid=139844496738064
#
# JRE version: 6.0_17-b04
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.3-b01 mixed mode linux-amd64 )
# Problematic frame:
# C  [ld-linux-x86-64.so.2+0x13670]


   So I would be happy to have an update on glibc
 for mageia-1.0. (if glibc 2.12.2 fixes the bug
 as the OP said).

CC: (none) => bruno.pincon

Thomas Backlund 2011-11-08 18:56:27 CET

Status: NEW => ASSIGNED

Comment 10 Thomas Backlund 2011-11-08 21:33:35 CET
Fix merged in svn, 
a new glibc will be available tomorrow in Core Updates Testing
Comment 11 bruno pinçon 2011-11-08 21:48:43 CET
(In reply to comment #10)
> Fix merged in svn, 
> a new glibc will be available tomorrow in Core Updates Testing

 Thanks I will test it asap.
Comment 12 Thomas Backlund 2011-11-08 23:38:14 CET
A fixed glibc-2.12.1-11.1.mga1 is now submitted and should be available on the mirrors in a few hours.
Comment 13 bruno pinçon 2011-11-09 09:20:52 CET
 I confirm that with this update on glibc
 I can now install and run matlab (R2011a)
 (btw matlab needs libXp (lib64Xp package)).

 Moreover the scilab-5.3.3 linux binary for 64
 bits arch works too (yesterday I was not
 sure this bug was the guilty for scilab
 but as the ld-linux-x86-64.so.2+0x13670
 appeared in the error trace messages I
 suspect it was potentially involved).

  So many many thanks for this update in 
 mageia 1.0.
Comment 14 Samuel Verschelde 2011-11-09 14:05:08 CET
On a 32 bits system, after updating glibc and glibc-devel and rebooting, a third party software I use (the game warsow, version 0.5.2) crashes with the following message :

====== Warsow Initialized ======
pinging broadcast...
pinging broadcast...
Connecting to 195.112.127.229:44400...
Error: Mem_Free: trashed header sentinel 1 (alloc at (null):0, free at ui.old/ui_atoms.c:1913)
********************
ERROR: Received signal 11

********************
Erreur de segmentation

I reinstalled glibc and glibc-devel from release and it came back to normal.

Any idea?
Manuel Hiebel 2011-11-10 00:51:14 CET

Blocks: (none) => 1446

Comment 15 Arnaud Pharasyn 2011-11-16 16:21:43 CET
I entered today a bug report about a crash i experienced in KDevelop after configuring a project, reproducible only on 64 bits "Sandy Bridge" based machines: bug #3357 "Crash after configuring project in KDevelop (upstream glibc bug, dynamic loader on AVX enabled CPU)".

I found that installing the glibc-2.12.1-11.1.mga1 package from Core Updates Testing as described here solved the problem.

CC: (none) => eonwir.ardamire+mageia

Manuel Hiebel 2011-11-16 17:14:54 CET

Blocks: (none) => 3357

Comment 16 Manuel Hiebel 2011-11-16 17:18:16 CET
Thomas, I see this bug is not on the QA, it's ok to reassign to the team ?
Comment 17 Thomas Backlund 2011-11-16 17:22:40 CET
Nope. as you see in comment #14 it introduced a regression, so I need some more tests.

@Samuel: Is this the game you talk about: http://www.warsow.net/ ?
Comment 18 Samuel Verschelde 2011-11-16 17:30:23 CET
(In reply to comment #17)
> Nope. as you see in comment #14 it introduced a regression, so I need some more
> tests.
> 
> @Samuel: Is this the game you talk about: http://www.warsow.net/ ?

Yes, this is it, but not their latest release (not tested here), it's version 0.5 (not 0.5.2 as I said earlier). IIRC in order to play it I had to do a little trick : link libcurl.so.3 to libcurl.so.4 so that it's happy.
You might want to download it from there: http://www.xgn.in.th/xsense/downloads.php?do=file&id=12
Comment 19 Thomas Backlund 2011-11-16 17:36:52 CET
Ok, will download and test.
Comment 20 Tomas Kindl 2011-11-16 20:04:37 CET
I confirm that update fixes Flexibee (java based accounting SW) under OpenJDK.

CC: (none) => supp

Comment 21 Thomas Backlund 2011-11-20 00:50:28 CET
There is now a glibc-2.12.1-11.2.mga1 (currently building) to validate for updates.

Besided the fix for this bug, it closes 2 CVEs and another upstream bug


Advisory:
---------
This update fixes the following CVEs:
* A flaw in John the Ripper and crypt_blowfish was reported where passwords
  with 8-bit characters were mishandled. A password containing a single 
  character with the 8th bit set have 1 to 3 characters immediately preceding
  the 8-bit character ignored (approximately 3 in 16 passwords). With more
  than one 8-bit character in the password, there may be more ignored
  characters. This can result in passwords being even easier to crack than
  expected. This is due to a char signedness bug in crypt_blowfish.
  (CVE-2011-2483)

* The addmntent function in the GNU C Library 2.13 and earlier does not report
  an error status for failed attempts to write to the /etc/mtab file, which 
  makes it easier for local users to trigger corruption of this file, as 
  demonstrated by writes from a process with a small RLIMIT_FSIZE value.
  (CVE-2011-1089)

Other fixes in this release:
* fix alignment of AVX safe area on x86-64 (GBZ #12113, mga #1362)
  (fixes java crashes on x86_64 hw supporting AVX)

* Fix handling of tail bytes of buffer in SSE2/SSSE3 x86-64 version strncmp
  (GBZ #12077)

Assignee: tmb => qa-bugs
Summary: java gui applications crash immediately (glibc bug, patch in upstream report) => update request: glibc (was: java gui applications crash immediately (glibc bug, patch in upstream report))

Comment 22 Dave Hodgins 2011-11-21 02:14:13 CET
Testing complete on i586 for the srpm
glibc-2.12.1-11.2.mga1.src.rpm

I was not able to recreate the crash, or find a POC for any of the CVE's
identified, so just testing that the system works normally, including
running java applications (specifically varsha).

CC: (none) => davidwhodgins

Comment 23 Chard Nelson 2011-11-21 09:55:26 CET
glibc-2.12.1-11.2.mga1 fixes my problem, as reported at comment #4. Thanks!
Comment 24 Samuel Verschelde 2011-11-21 14:19:17 CET
The regression mentioned in comment #14 seems fixed with the latest update candidate.
Comment 25 Arnaud Pharasyn 2011-11-21 15:06:01 CET
I have also installed and tested the glibc-2.12.1-11.2.mga1 package on both "Sandy Bridge" and older 64 bit processor, and as for previous glibc-2.12.1-11.1.mga1 package, the problem is fixed without any other apparent regressions.
See comment #15 or bug #3357 "Crash after configuring project in KDevelop (upstream glibc bug, dynamic loader on AVX enabled CPU)".
Comment 26 Andreas Persson 2011-11-21 19:16:25 CET
Original poster here. I've now been running the 2.12.11-11.1 for a week with no problems. Java works fine. Thanks!
Comment 27 Dave Hodgins 2011-11-21 22:40:15 CET
Validating the update.

Can someone from the sysadmin team push the srpm
glibc-2.12.1-11.2.mga1.src.rpm
from Core Updates Testing to Core Updates

Advisory:
This update fixes the following CVEs:
* A flaw in John the Ripper and crypt_blowfish was reported where passwords
  with 8-bit characters were mishandled. A password containing a single 
  character with the 8th bit set have 1 to 3 characters immediately preceding
  the 8-bit character ignored (approximately 3 in 16 passwords). With more
  than one 8-bit character in the password, there may be more ignored
  characters. This can result in passwords being even easier to crack than
  expected. This is due to a char signedness bug in crypt_blowfish.
  (CVE-2011-2483)

* The addmntent function in the GNU C Library 2.13 and earlier does not report
  an error status for failed attempts to write to the /etc/mtab file, which 
  makes it easier for local users to trigger corruption of this file, as 
  demonstrated by writes from a process with a small RLIMIT_FSIZE value.
  (CVE-2011-1089)

Other fixes in this release:
* fix alignment of AVX safe area on x86-64 (GBZ #12113, mga #1362)
  (fixes java crashes on x86_64 hw supporting AVX)

* Fix handling of tail bytes of buffer in SSE2/SSSE3 x86-64 version strncmp
  (GBZ #12077)

https://bugs.mageia.org/show_bug.cgi?id=1362

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 28 Thomas Backlund 2011-11-22 10:44:29 CET
Update pushed.

Status: ASSIGNED => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED

Comment 29 Anssi Hannula 2012-01-07 23:46:02 CET
FYI, AFAICS since glibc has "Requires(pre,post): dash-static", if the user doesn't have dash-static installed, this update will trigger the error of bug #2317, since dash-static is not in /updates.

("[Mageia-discuss] glibc depending on dash-static?")

CC: (none) => anssi.hannula

Comment 30 Thomas Backlund 2012-01-07 23:55:58 CET
Thanks for noticing.

dash-static is now linked in updates
Nicolas Vigier 2014-05-08 18:07:01 CEST

CC: boklm => (none)


Note You need to log in before you can comment on or make changes to this bug.