clang libc++ issues with exceptions and RSA

40 views
Skip to first unread message

David Irvine

unread,
Apr 28, 2012, 3:02:46 PM4/28/12
to cryptop...@googlegroups.com
I have installed libc++ in linux and  noted that I had to pass the definition -DCRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION or it segfaults. This is fair enough, but in RSA tests including cryptest.exe v it seems to hang, I have not seen it pass this yet.

I wonder if anyone else has this setup or has an idea what the issue would be.  

~/Devel/cryptopp/trunk/c5 $ clang --version
clang version 3.2 (trunk 155751)
Target: x86_64-unknown-linux-gnu
Thread model: posix

CXXFLAGS += -DCRYPTOPP_DISABLE_UNCAUGHT_EXCEPTION  -DCRYPTOPP_DISABLE_ASM -stdlib=libc++ -std=c++11 -Wno-tautological-compare -DCRYPTOPP_DISABLE_SSE2 -DCRYPTOPP_DISABLE_SSSE3

(if using clang++ for c++11 development you need libraries to be recompiled against libc++ and this is the reason for the std=c++11 and stdlib statements)

Thanks 
David

David Irvine

unread,
May 2, 2012, 7:50:36 PM5/2/12
to cryptop...@googlegroups.com
Update ! 

This is also the case in OSX with Lion installed clang / libc++ and also with the svn HEAD of each llvm/clang/libc++. Seems there is some issue with libc++.

Fraser Hutchison

unread,
May 3, 2012, 12:46:42 AM5/3/12
to David Irvine, cryptop...@googlegroups.com
Hi David,

I've filed a bug and solution at https://sourceforge.net/apps/trac/cryptopp/ticket/17 which relates to cryptest hanging when using Clang 3.2.

Cheers,

Fraser.
--
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-user...@googlegroups.com.
More information about Crypto++ and this group is available at http://www.cryptopp.com.
Reply all
Reply to author
Forward
0 new messages