pocoproject / poco

The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.
https://pocoproject.org
Other
8.32k stars 2.15k forks source link

can not run Crypto sample code #4639

Open edidadaoutlook opened 1 month ago

edidadaoutlook commented 1 month ago

can not run Crypto sample code

https://github.com/pocoproject/poco/blob/main/Crypto/samples/genrsakey/src/genrsakey.cpp

error: libc++abi: terminating with uncaught exception of type Poco::Crypto::CryptoException: Crypto Exception

aleks-f commented 1 month ago

@matejk I can reproduce this, apparently something on destruction because files are produced ok

matejk commented 1 month ago

Which OS?

matejk commented 1 month ago

@aleks-f , @edidadaoutlook On which OS is this problem reproducible?

Works properly on macOS (Apple Silicon), compiled with clang.

aleks-f commented 2 weeks ago

@aleks-f , @edidadaoutlook On which OS is this problem reproducible?

Works properly on macOS (Apple Silicon), compiled with clang.

@matejk I was able to reproduce the problem on Linux/g++

matejk commented 2 weeks ago

Poco (current main (pre 1.14)) is built with CMake.

genrsakey -f new-key runs just fine in Debug and RelWithDebInfo.

@aleks-f, @edidadaoutlook: Can't reproduce. No exception is thrown. Do you have some more details how to reproduce the problem?