[LLVMbugs] [Bug 4311] New: Null-pointer dereference in Traits::getNext(NodePtr) when buildt optimized.
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Jun 3 08:57:01 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4311
Summary: Null-pointer dereference in Traits::getNext(NodePtr)
when buildt optimized.
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: SunOS
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: eocallaghan at auroraux.org
CC: llvmbugs at cs.uiuc.edu
Test Case:
-bash-3.2$ cat > example.c
#include <stdio.h>
int main() {
printf("Hi.\n");
return 0;
}
Trace:
-bash-3.2$ ./test1/bin/clang example.c
Assertion failed: Traits::getNext(NodePtr) != 0 && "Dereferencing end()!", file
/export/home2/edward/lab/TEST_BUILDS/llvm/llvm/include/llvm/ADT/ilist.h, line
197
0 clang-cc 0x09b37eee PrintStackTrace(void*) + 22
1 clang-cc 0x09e45df0 PrintStackTrace(void*) + 3202840
2 clang-cc 0000000000 PrintStackTrace(void*) + 4132208936
3 clang-cc 0x6834ec83 PrintStackTrace(void*) + 1585540523
Stack dump:
0. Program arguments:
/export/home2/edward/lab/TEST_BUILDS/llvm/test1/bin/../libexec/clang-cc -triple
i386-pc-solaris2.11 -S -disable-free -main-file-name example.c
--relocation-model static --disable-fp-elim --unwind-tables=0 --mcpu=pentium4
--fmath-errno=1 -fdiagnostics-show-option -o /tmp/cc-Uoaivy.s -x c example.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'X86 DAG->DAG Instruction Selection' on function '@main'
Configure Line:
./configure --prefix=/export/home2/edward/lab/TEST_BUILDS/llvm/test1
--enable-optimized --enable-assertions --enable-expensive-checks
--enable-pic=no
Building with, --enable-optimized=no , instead allows one to again build a
Hello world test app.
However tests still fail as can be seen in the following log:
http://pkg.auroraux.org/gmake_check_non-opti.log
Core File:
http://pkg.auroraux.org/core.7z
Anything else be sure to let me know,
Thanks for your time,
Edward O'Callaghan.
-
http://www.auroraux.org/
--
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