Summary: | sys-apps/memtest86 and sys-apps/memtest86+ both fail when built with gcc-4.2 but work with gcc-4.1 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | J.Taimr <tai> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caster, gengor, michal.terepeta, ole+gentoo, spock |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Fixed patch replacing -Os with -O1 |
Description
J.Taimr
2008-04-11 18:49:26 UTC
Could you please try to download a precompiled binary from http://www.memtest.org/download/2.01/memtest86+-2.01.bin.gz to see whether it behaves in the same way as the one you're using now? (In reply to comment #1) > Could you please try to download a precompiled binary from > http://www.memtest.org/download/2.01/memtest86+-2.01.bin.gz to see whether it > behaves in the same way as the one you're using now? Solved. The distributed binary works as expected. Ditto memtest86+ compiled by gcc-4.1.2. So, it seems, gc-4.2.3 does not produce correct code in the case of memtest86+ (and likely this version of gcc should be blocked in the ebuild, if there are similar cases). Thx a lot for fast reply. Reassigning to base-system since the bug affects two packages. Looks like I've hit the same problem today, with gcc-4.3. memtest86 repeatedly ended with "unexpected interrupt" shortly after starting first test (always in 20%), memtest86+ first reported thousands of memory errors and then also dumped and locked. Now it runs downloaded precompiled memtest86 without such problems. First I thought I've produced bad binary because of the memory I try to test and is probably bad, but then I saw this bug... (In reply to comment #4) > Looks like I've hit the same problem today, with gcc-4.3. memtest86 repeatedly > ended with "unexpected interrupt" shortly after starting first test (always in > 20%), memtest86+ first reported thousands of memory errors and then also dumped > and locked. Now it runs downloaded precompiled memtest86 without such problems. I had almost the same problem with both memtest86 and memtest86+ when compiled with gcc 4.3.1-r1. Both reporting thousands of errors and freezing. The precompiled versions work just fine. Created attachment 166360 [details, diff] Fixed patch replacing -Os with -O1 Replacing -Os with -O1 fixes the problem for me. I'm running x86_64 with 4G memory. Looks like using -O1 fixes the problem for others as well: https://bugs.launchpad.net/ubuntu/+source/memtest86+/+bug/246412 I fixed the attached patch to replace -Os with -O1 Thanks for the patch. Both memtest86 and memtest86+ should now be fixed in CVS. |