[LLVMbugs] [Bug 15116] New: SingleSource/Regression/C++/ofstream_ctor segfaults

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 29 15:21:49 PST 2013


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

             Bug #: 15116
           Summary: SingleSource/Regression/C++/ofstream_ctor segfaults
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ahatanak at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


This test in llvm's test suite segfaults when it is compiled with option
"-static":

$ clang++ -static test-suite/SingleSource/Regression/C++/ofstream_ctor.cpp -O3
-o f1
$ ./f1
Segmentation fault

The executable g++ generates terminates normally:

$ $ g++ -static test-suite/SingleSource/Regression/C++/ofstream_ctor.cpp -O3 -o
f2
$ ./f2

It looks like, after r173514 and r173515, clang started emitting
std::basic_ofstream<char, std::char_traits<char> >'s vtable. However, its VTT
is not emitted, and I think that is causing the linker to generate wrong
relocation values.

-- 
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