Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 497298

Summary: sys-devel/llvm-3.4 miscompiles code with varargs
Product: Gentoo Linux Reporter: Holger Hoffstätte <holger>
Component: [OLD] DevelopmentAssignee: Bernard Cafarelli <voyageur>
Status: RESOLVED FIXED    
Severity: normal CC: mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://llvm.org/bugs/show_bug.cgi?id=18346
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 915000    
Attachments: r197503 1/4
r197503 2/4
r197503 3/4
r197503 4/4
r197505
r197520

Description Holger Hoffstätte 2014-01-06 18:16:56 UTC
See URL; basically a pretty bad bug that didn't make it for 3.4, as described in: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20131216/199116.html

Adding those patches (r197503, r197505, r197520) from upstream would prevent a lot of upfront pain. They are small and will be in future releases.

Reproducible: Always

Steps to Reproduce:
see $URL

Actual Results:  
see $URL


Expected Results:  
see $URL
Comment 2 Holger Hoffstätte 2014-01-06 22:46:29 UTC
Created attachment 367222 [details, diff]
r197503 1/4
Comment 3 Holger Hoffstätte 2014-01-06 22:46:49 UTC
Created attachment 367224 [details, diff]
r197503 2/4
Comment 4 Holger Hoffstätte 2014-01-06 22:47:12 UTC
Created attachment 367226 [details]
r197503 3/4
Comment 5 Holger Hoffstätte 2014-01-06 22:47:33 UTC
Created attachment 367228 [details]
r197503 4/4
Comment 6 Holger Hoffstätte 2014-01-06 22:47:59 UTC
Created attachment 367230 [details, diff]
r197505
Comment 7 Holger Hoffstätte 2014-01-06 22:48:20 UTC
Created attachment 367232 [details, diff]
r197520
Comment 8 Holger Hoffstätte 2014-01-06 22:49:29 UTC
(In reply to Holger Hoffstätte from comment #1)

I've extracted and attached the patches with meaningful (ordered) names so you don't have to. Hope this helps.
Comment 9 Bernard Cafarelli gentoo-dev 2014-01-08 13:32:18 UTC
Hmm that's a nasty bug, thanks for the report and patch hunting! I added the patch to current (masked) 3.4 ebuild, tests still run fine