[LLVMbugs] [Bug 5636] New: clang: optimization changes behaviour

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Nov 29 08:33:15 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=5636

           Summary: clang: optimization changes behaviour
           Product: clang
           Version: 2.6
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: chertus at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=3886)
 --> (http://llvm.org/bugs/attachment.cgi?id=3886)
part of project sphinxbase

# Steps to Reproduce:
# Get attachment and build (with -O0 and -O1)

> mkdir _b && cd _b
> cmake -DCMAKE_C_FLAGS="-O0" ../ && make && make test

...
[100%] Built target test_ad_read
Running tests...
Start processing tests
Test project /home/42/src/clang_bug/_b
1/  1 Testing unit_ad_read                  Passed                              

100% tests passed, 0 tests failed out of 1

> rm * || cmake -DCMAKE_C_FLAGS="-O1" ../ && make && make test

...
[100%] Built target test_ad_read
Running tests...
Start processing tests
Test project /home/42/src/clang_bug/_b
1/  1 Testing unit_ad_read                  ***Exception: Other

0% tests passed, 1 tests failed out of 1

The following tests FAILED:
                1 - unit_ad_read (OTHER_FAULT)
Errors while running CTest
*** Error code 8

# Show log

> cat Testing/Temporary/LastTest.log

...
Assertion failed: ((len >= 0) && (len < r->spf)), function
cont_ad_read_internal, <...>/src/cont_ad_base.c, line 606.
...

# Versions

> clang -v
clang version 1.0 (https://llvm.org/svn/llvm-project/cfe/branches/release_26 )

> uname -srm
FreeBSD 8.0-PRERELEASE amd64

# Product: part of sphinxbase:
# svn co
https://cmusphinx.svn.sourceforge.net/svnroot/cmusphinx/trunk/sphinxbase


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list