Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

clang: optimization changes behaviour #6113

Closed Quuxplusone closed 14 years ago

Quuxplusone commented 14 years ago
Bugzilla Link PR5636
Status RESOLVED INVALID
Importance P normal
Reported by chertus@gmail.com
Reported on 2009-11-29 10:33:15 -0800
Last modified on 2009-12-22 13:20:49 -0800
Version 2.6
Hardware Other FreeBSD
CC anton@korobeynikov.info, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments clang_bug.tar.gz (32215 bytes, application/x-gzip)
Blocks
Blocked by
See also
Created attachment 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
Quuxplusone commented 14 years ago

Attached clang_bug.tar.gz (32215 bytes, application/x-gzip): part of project sphinxbase

Quuxplusone commented 14 years ago
Almost no of LLVM developers use FreeBSD. Please:
1. Check whether the problem still exists on top of the SVN tree
2. Attach preprocessed source for the file in question (or, even better, LLVM
IR)
Quuxplusone commented 14 years ago

need more information, as requested by anton

Quuxplusone commented 14 years ago
Clang from svn didn't build for some time.
Can you print the way, I could get the information you need?