[LLVMbugs] [Bug 1881] New: llvm-ar: Segmentation fault when archiving bitcode library

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Dec 28 06:38:00 PST 2007


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

           Summary: llvm-ar: Segmentation fault when archiving bitcode
                    library
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: llvm-ar
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: shackan at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1306)
 --> (http://llvm.org/bugs/attachment.cgi?id=1306)
Bitcode files, to reproduce do `llvm-ar rcsf libcrypto_rsa.bca *.bc` in the
Debug/ directory

make[2]: Entering directory
`<toolroot>/build-x86/projects/rsa/openssl-0.9.8g/crypto/rsa'
llvm[2]: Compiling rsa_asn1.c for Debug build (bytecode)
llvm[2]: Compiling rsa_asn1.ll to rsa_asn1.bc for Debug build (bytecode)
llvm[2]: Compiling rsa_chk.c for Debug build (bytecode)
llvm[2]: Compiling rsa_chk.ll to rsa_chk.bc for Debug build (bytecode)
llvm[2]: Compiling rsa_depr.c for Debug build (bytecode)
llvm[2]: Compiling rsa_depr.ll to rsa_depr.bc for Debug build (bytecode)
llvm[2]: Compiling rsa_eay.c for Debug build (bytecode)
llvm[2]: Compiling rsa_eay.ll to rsa_eay.bc for Debug build (bytecode)
llvm[2]: Compiling rsa_err.c for Debug build (bytecode)
llvm[2]: Compiling rsa_err.ll to rsa_err.bc for Debug build (bytecode)
llvm[2]: Compiling rsa_gen.c for Debug build (bytecode)
llvm[2]: Compiling rsa_gen.ll to rsa_gen.bc for Debug build (bytecode)
llvm[2]: Compiling rsa_lib.c for Debug build (bytecode)
llvm[2]: Compiling rsa_lib.ll to rsa_lib.bc for Debug build (bytecode)
llvm[2]: Compiling rsa_none.c for Debug build (bytecode)
llvm[2]: Compiling rsa_none.ll to rsa_none.bc for Debug build (bytecode)
llvm[2]: Compiling rsa_null.c for Debug build (bytecode)
llvm[2]: Compiling rsa_null.ll to rsa_null.bc for Debug build (bytecode)
llvm[2]: Compiling rsa_oaep.c for Debug build (bytecode)
llvm[2]: Compiling rsa_oaep.ll to rsa_oaep.bc for Debug build (bytecode)
llvm[2]: Compiling rsa_pk1.c for Debug build (bytecode)
llvm[2]: Compiling rsa_pk1.ll to rsa_pk1.bc for Debug build (bytecode)
llvm[2]: Compiling rsa_pss.c for Debug build (bytecode)
llvm[2]: Compiling rsa_pss.ll to rsa_pss.bc for Debug build (bytecode)
llvm[2]: Compiling rsa_saos.c for Debug build (bytecode)
llvm[2]: Compiling rsa_saos.ll to rsa_saos.bc for Debug build (bytecode)
llvm[2]: Compiling rsa_sign.c for Debug build (bytecode)
llvm[2]: Compiling rsa_sign.ll to rsa_sign.bc for Debug build (bytecode)
llvm[2]: Compiling rsa_ssl.c for Debug build (bytecode)
llvm[2]: Compiling rsa_ssl.ll to rsa_ssl.bc for Debug build (bytecode)
llvm[2]: Compiling rsa_test.c for Debug build (bytecode)
llvm[2]: Compiling rsa_test.ll to rsa_test.bc for Debug build (bytecode)
llvm[2]: Compiling rsa_x931.c for Debug build (bytecode)
llvm[2]: Compiling rsa_x931.ll to rsa_x931.bc for Debug build (bytecode)
llvm[2]: Building Debug Bytecode Archive libcrypto_rsa.bca
<llvmroot>/build-x86/Debug/bin/llvm-ar((anonymous
namespace)::PrintStackTrace()+0x22)[0x82496c0]
<llvmroot>/build-x86/Debug/bin/llvm-ar((anonymous
namespace)::SignalHandler(int)+0x112)[0x8249986]
[0xffffe420]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::ParamAttrsList::~ParamAttrsList()+0x22)[0x81c0108]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::ParamAttrsList::dropRef()
const+0x63)[0x81c2f57]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::Function::~Function()+0x66)[0x81c0e7a]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::iplist<llvm::Function,
llvm::ilist_traits<llvm::Function>
>::erase(llvm::ilist_iterator<llvm::Function>)+0x33)[0x81c2631]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::iplist<llvm::Function,
llvm::ilist_traits<llvm::Function>
>::erase(llvm::ilist_iterator<llvm::Function>,
llvm::ilist_iterator<llvm::Function>)+0x21)[0x81de765]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::iplist<llvm::Function,
llvm::ilist_traits<llvm::Function> >::clear()+0x5c)[0x81de7f0]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::Module::~Module()+0x2a)[0x81dd710]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::ModuleProvider::~ModuleProvider()+0x2a)[0x81dea02]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::BitcodeReader::~BitcodeReader()+0xc4)[0x81810f6]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::Archive::writeMember(llvm::ArchiveMember
const&, std::basic_ofstream<char, std::char_traits<char> >&, bool, bool, bool,
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>*)+0x442)[0x81643cc]
<llvmroot>/build-x86/Debug/bin/llvm-ar(llvm::Archive::writeToDisk(bool, bool,
bool, std::basic_string<char, std::char_traits<char>, std::allocator<char>
>*)+0x344)[0x81649ee]
<llvmroot>/build-x86/Debug/bin/llvm-ar(doReplaceOrInsert(std::basic_string<char,
std::char_traits<char>, std::allocator<char> >*)+0x74d)[0x8155ddd]
<llvmroot>/build-x86/Debug/bin/llvm-ar(main+0x3be)[0x8157998]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0x40199050]
<llvmroot>/build-x86/Debug/bin/llvm-ar(__gxx_personality_v0+0x2a5)[0x81546c1]
make[2]: *** [<toolroot>/build-x86/projects/rsa/Debug/lib/libcrypto_rsa.bca]
Segmentation fault (core dumped)
make[2]: Leaving directory
`<toolroot>/build-x86/projects/rsa/openssl-0.9.8g/crypto/rsa'
make[1]: *** [all] Error 1


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