Статус: Участник
Группы: Участники
Зарегистрирован: 17.07.2020(UTC) Сообщений: 18  Откуда: Москва Сказал(а) «Спасибо»: 2 раз
|
В итоге мне удалось запустить на своей машине (до этого разворачивала докер с такой же конфигурацией, на нём всё работало). В чем конкретно заключалась проблема я так и не поняла, внизу привожу трейс дебага
Код:(gdb) bt
#0 0x00007fffe8db0875 in Curl_conncache_find_first_connection () from /lib64/libcurl.so.4
#1 0x00007fffe8d91843 in curl_multi_cleanup () from /lib64/libcurl.so.4
#2 0x00007fffda1e0bc9 in curl_easy_perform () from /opt/cprocsp/lib/amd64/libcpcurl.so
#3 0x00007fffea342c28 in UrlRetriever::retrieve_url(char const*) () from /opt/cprocsp/lib/amd64/liburlretrieve.so.4
#4 0x00007fffec531ce6 in SendPKIRequest () from /opt/cprocsp/lib/amd64/libcapi20.so.4
#5 0x00007fffea9f67ca in CryptoPro::PKI::OCSP::Client::CRequest::Impl::SendOCSPRequest() () from /opt/cprocsp/lib/amd64/libocspcli.so.2
#6 0x00007fffea9f72b4 in CryptoPro::PKI::OCSP::Client::CRequest::Impl::Send(bool) () from /opt/cprocsp/lib/amd64/libocspcli.so.2
#7 0x00007fffeb722455 in COcspCheck::retrieveOcspResponse(_CERT_CONTEXT const*, _CERT_CONTEXT const*, _FILETIME&, _FILETIME&, unsigned int, wchar_t const**, bool, CryptoPro::PKI::OCSP::Client::CResponse&, int&) () from /opt/cprocsp/lib/amd64/libcades.so.2
#8 0x00007fffeb74fc14 in COcspCheck::checkRevocation(_CERT_CHAIN_ELEMENT*, _CERT_CONTEXT const*, _FILETIME, _FILETIME) () from /opt/cprocsp/lib/amd64/libcades.so.2
#9 0x00007fffeb72cc58 in int forEachCallUntilSuccessOrRevoked<ccvr_mem_fun_4_t<IRevocationChecker, _CERT_CHAIN_ELEMENT*, _CERT_CONTEXT const*, _FILETIME, _FILETIME>, std::_List_iterator<IRevocationChecker*> >(std::_List_iterator<IRevocationChecker*>, std::_List_iterator<IRevocationChecker*>, ccvr_mem_fun_4_t<IRevocationChecker, _CERT_CHAIN_ELEMENT*, _CERT_CONTEXT const*, _FILETIME, _FILETIME>) () from /opt/cprocsp/lib/amd64/libcades.so.2
#10 0x00007fffeb72cdcc in CRevocationCheckerQueue::checkRevocation(_CERT_CHAIN_ELEMENT*, _CERT_CONTEXT const*, _FILETIME, _FILETIME) () from /opt/cprocsp/lib/amd64/libcades.so.2
#11 0x00007fffeb74212f in int forEachCallUntilError<ccvr_mem_fun_4_t<IChainObserver, _CERT_CHAIN_ELEMENT*, _CERT_CHAIN_ELEMENT*, unsigned int, unsigned int>, std::_List_iterator<IChainObserver*> >(std::_List_iterator<IChainObserver*>, std::_List_iterator<IChainObserver*>, ccvr_mem_fun_4_t<IChainObserver, _CERT_CHAIN_ELEMENT*, _CERT_CHAIN_ELEMENT*, unsigned int, unsigned int>) ()
from /opt/cprocsp/lib/amd64/libcades.so.2
#12 0x00007fffeb74232b in CChainObserverQueue::firstElement(_CERT_CHAIN_ELEMENT*, _CERT_CHAIN_ELEMENT*, unsigned int, unsigned int) () from /opt/cprocsp/lib/amd64/libcades.so.2
#13 0x00007fffeb74212f in int forEachCallUntilError<ccvr_mem_fun_4_t<IChainObserver, _CERT_CHAIN_ELEMENT*, _CERT_CHAIN_ELEMENT*, unsigned int, unsigned int>, std::_List_iterator<IChainObserver*> >(std::_List_iterator<IChainObserver*>, std::_List_iterator<IChainObserver*>, ccvr_mem_fun_4_t<IChainObserver, _CERT_CHAIN_ELEMENT*, _CERT_CHAIN_ELEMENT*, unsigned int, unsigned int>) ()
from /opt/cprocsp/lib/amd64/libcades.so.2
#14 0x00007fffeb74232b in CChainObserverQueue::firstElement(_CERT_CHAIN_ELEMENT*, _CERT_CHAIN_ELEMENT*, unsigned int, unsigned int) () from /opt/cprocsp/lib/amd64/libcades.so.2
#15 0x00007fffeb736fb1 in CChainValidationProcess::validateChain(ATL2::CCertContext&, _FILETIME&, _FILETIME&, unsigned int*, int) () from /opt/cprocsp/lib/amd64/libcades.so.2
#16 0x00007fffeb71756b in CadesMsgVerifySignatureImpl(void*, unsigned int, _CADES_VERIFICATION_PARA*, _CADES_VERIFICATION_INFO**, bool, _CADES_HASH_VERIFY_DATA*) ()
---Type <return> to continue, or q <return> to quit---
from /opt/cprocsp/lib/amd64/libcades.so.2
#17 0x00007fffeb718952 in CadesVerifyMessageImplNamespace::VerifyOpenedMessageSignature(ATL2::CCryptMsg, SafeStruct<_CRYPT_VERIFY_MESSAGE_PARA>*, _CADES_VERIFICATION_PARA*, unsigned int, _CRYPTOAPI_BLOB**, _CADES_VERIFICATION_INFO**, bool, _CADES_HASH_VERIFY_DATA*) () from /opt/cprocsp/lib/amd64/libcades.so.2
#18 0x00007fffeb71a730 in CadesVerifyMessageImpl(_CADES_VERIFY_MESSAGE_PARA*, unsigned int, unsigned char const*, unsigned int, _CRYPTOAPI_BLOB**, _CADES_VERIFICATION_INFO**, bool) ()
from /opt/cprocsp/lib/amd64/libcades.so.2
#19 0x00007fffeb71bc8a in CadesVerifyMessage () from /opt/cprocsp/lib/amd64/libcades.so.2
#20 0x00007fffecd332ec in CryptoPro::PKI::CAdES::CPPCadesSignedDataObject::VerifyCades(CryptoPro::CBlob const&, _CADESCOM_CADES_TYPE, int) () from /opt/cprocsp/lib/amd64/libcppcades.so.2
#21 0x00007fffed265b59 in zim_CPSignedData_VerifyCades(_zend_execute_data*, _zval_struct*) () from /usr/lib64/php/modules/libphpcades.so
#22 0x00005555558d56c0 in ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER () at /usr/src/debug/php-7.4.8/Zend/zend_vm_execute.h:1618
#23 execute_ex () at /usr/src/debug/php-7.4.8/Zend/zend_vm_execute.h:53824
#24 0x00005555558d62d1 in zend_execute (op_array=0x7ffff3c842a0, return_value=<optimized out>) at /usr/src/debug/php-7.4.8/Zend/zend_vm_execute.h:57920
#25 0x000055555584fb73 in zend_execute_scripts () at /usr/src/debug/php-7.4.8/Zend/zend.c:1678
#26 0x00005555557ee640 in php_execute_script () at /usr/src/debug/php-7.4.8/main/main.c:2621
#27 0x00005555558d844c in do_cli (argc=2, argv=0x555555d74330) at /usr/src/debug/php-7.4.8/sapi/cli/php_cli.c:964
#28 0x000055555565728b in main (argc=2, argv=0x555555d74330) at /usr/src/debug/php-7.4.8/sapi/cli/php_cli.c:1359
(gdb)
(gdb) run test.php
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/bin/php test.php
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffdac7d700 (LWP 57920)]
Program received signal SIGSEGV, Segmentation fault.
0x00007fffe8db0875 in Curl_conncache_find_first_connection () from /lib64/libcurl.so.4
(gdb) bt
#0 0x00007fffe8db0875 in Curl_conncache_find_first_connection () from /lib64/libcurl.so.4
#1 0x00007fffe8d91843 in curl_multi_cleanup () from /lib64/libcurl.so.4
#2 0x00007fffda1e0bc9 in curl_easy_perform () from /opt/cprocsp/lib/amd64/libcpcurl.so
#3 0x00007fffea342c28 in UrlRetriever::retrieve_url(char const*) () from /opt/cprocsp/lib/amd64/liburlretrieve.so.4
#4 0x00007fffec531ce6 in SendPKIRequest () from /opt/cprocsp/lib/amd64/libcapi20.so.4
#5 0x00007fffea9f67ca in CryptoPro::PKI::OCSP::Client::CRequest::Impl::SendOCSPRequest() () from /opt/cprocsp/lib/amd64/libocspcli.so.2
#6 0x00007fffea9f72b4 in CryptoPro::PKI::OCSP::Client::CRequest::Impl::Send(bool) () from /opt/cprocsp/lib/amd64/libocspcli.so.2
#7 0x00007fffeb722455 in COcspCheck::retrieveOcspResponse(_CERT_CONTEXT const*, _CERT_CONTEXT const*, _FILETIME&, _FILETIME&, unsigned int, wchar_t const**, bool, CryptoPro::PKI::OCSP::Client::CResponse&, int&) () from /opt/cprocsp/lib/amd64/libcades.so.2
#8 0x00007fffeb74fc14 in COcspCheck::checkRevocation(_CERT_CHAIN_ELEMENT*, _CERT_CONTEXT const*, _FILETIME, _FILETIME) () from /opt/cprocsp/lib/amd64/libcades.so.2
#9 0x00007fffeb72cc58 in int forEachCallUntilSuccessOrRevoked<ccvr_mem_fun_4_t<IRevocationChecker, _CERT_CHAIN_ELEMENT*, _CERT_CONTEXT const*, _FILETIME, _FILETIME>, std::_List_iterator<IRevocationChecker*> >(std::_List_iterator<IRevocationChecker*>, std::_List_iterator<IRevocationChecker*>, ccvr_mem_fun_4_t<IRevocationChecker, _CERT_CHAIN_ELEMENT*, _CERT_CONTEXT const*, _FILETIME, _FILETIME>) () from /opt/cprocsp/lib/amd64/libcades.so.2
#10 0x00007fffeb72cdcc in CRevocationCheckerQueue::checkRevocation(_CERT_CHAIN_ELEMENT*, _CERT_CONTEXT const*, _FILETIME, _FILETIME) () from /opt/cprocsp/lib/amd64/libcades.so.2
#11 0x00007fffeb74212f in int forEachCallUntilError<ccvr_mem_fun_4_t<IChainObserver, _CERT_CHAIN_ELEMENT*, _CERT_CHAIN_ELEMENT*, unsigned int, unsigned int>, std::_List_iterator<IChainObserver*> >(std::_List_iterator<IChainObserver*>, std::_List_iterator<IChainObserver*>, ccvr_mem_fun_4_t<IChainObserver, _CERT_CHAIN_ELEMENT*, _CERT_CHAIN_ELEMENT*, unsigned int, unsigned int>) ()
from /opt/cprocsp/lib/amd64/libcades.so.2
#12 0x00007fffeb74232b in CChainObserverQueue::firstElement(_CERT_CHAIN_ELEMENT*, _CERT_CHAIN_ELEMENT*, unsigned int, unsigned int) () from /opt/cprocsp/lib/amd64/libcades.so.2
#13 0x00007fffeb74212f in int forEachCallUntilError<ccvr_mem_fun_4_t<IChainObserver, _CERT_CHAIN_ELEMENT*, _CERT_CHAIN_ELEMENT*, unsigned int, unsigned int>, std::_List_iterator<IChainObserver*> >(std::_List_iterator<IChainObserver*>, std::_List_iterator<IChainObserver*>, ccvr_mem_fun_4_t<IChainObserver, _CERT_CHAIN_ELEMENT*, _CERT_CHAIN_ELEMENT*, unsigned int, unsigned int>) ()
from /opt/cprocsp/lib/amd64/libcades.so.2
#14 0x00007fffeb74232b in CChainObserverQueue::firstElement(_CERT_CHAIN_ELEMENT*, _CERT_CHAIN_ELEMENT*, unsigned int, unsigned int) () from /opt/cprocsp/lib/amd64/libcades.so.2
#15 0x00007fffeb736fb1 in CChainValidationProcess::validateChain(ATL2::CCertContext&, _FILETIME&, _FILETIME&, unsigned int*, int) () from /opt/cprocsp/lib/amd64/libcades.so.2
#16 0x00007fffeb71756b in CadesMsgVerifySignatureImpl(void*, unsigned int, _CADES_VERIFICATION_PARA*, _CADES_VERIFICATION_INFO**, bool, _CADES_HASH_VERIFY_DATA*) ()
---Type <return> to continue, or q <return> to quit---
from /opt/cprocsp/lib/amd64/libcades.so.2
#17 0x00007fffeb718952 in CadesVerifyMessageImplNamespace::VerifyOpenedMessageSignature(ATL2::CCryptMsg, SafeStruct<_CRYPT_VERIFY_MESSAGE_PARA>*, _CADES_VERIFICATION_PARA*, unsigned int, _CRYPTOAPI_BLOB**, _CADES_VERIFICATION_INFO**, bool, _CADES_HASH_VERIFY_DATA*) () from /opt/cprocsp/lib/amd64/libcades.so.2
#18 0x00007fffeb71a730 in CadesVerifyMessageImpl(_CADES_VERIFY_MESSAGE_PARA*, unsigned int, unsigned char const*, unsigned int, _CRYPTOAPI_BLOB**, _CADES_VERIFICATION_INFO**, bool) ()
from /opt/cprocsp/lib/amd64/libcades.so.2
#19 0x00007fffeb71bc8a in CadesVerifyMessage () from /opt/cprocsp/lib/amd64/libcades.so.2
#20 0x00007fffecd332ec in CryptoPro::PKI::CAdES::CPPCadesSignedDataObject::VerifyCades(CryptoPro::CBlob const&, _CADESCOM_CADES_TYPE, int) () from /opt/cprocsp/lib/amd64/libcppcades.so.2
#21 0x00007fffed265b59 in zim_CPSignedData_VerifyCades(_zend_execute_data*, _zval_struct*) () from /usr/lib64/php/modules/libphpcades.so
#22 0x00005555558d56c0 in ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER () at /usr/src/debug/php-7.4.8/Zend/zend_vm_execute.h:1618
#23 execute_ex () at /usr/src/debug/php-7.4.8/Zend/zend_vm_execute.h:53824
#24 0x00005555558d62d1 in zend_execute (op_array=0x7ffff3c842a0, return_value=<optimized out>) at /usr/src/debug/php-7.4.8/Zend/zend_vm_execute.h:57920
#25 0x000055555584fb73 in zend_execute_scripts () at /usr/src/debug/php-7.4.8/Zend/zend.c:1678
#26 0x00005555557ee640 in php_execute_script () at /usr/src/debug/php-7.4.8/main/main.c:2621
#27 0x00005555558d844c in do_cli (argc=2, argv=0x555555d74330) at /usr/src/debug/php-7.4.8/sapi/cli/php_cli.c:964
#28 0x000055555565728b in main (argc=2, argv=0x555555d74330) at /usr/src/debug/php-7.4.8/sapi/cli/php_cli.c:1359
Потом поискала на форуме и нашла такую команду, которую выполнила, и всё заработало. Код: /opt/cprocsp/sbin/amd64/cpconfig -ini \\config\\apppath -add string libcurl.so /usr/lib64/libcurl.so.4
Как я понимаю, эта команда указала CSP, какую библиотеку использовать. Почему работало в докере, но не работало у меня -- по-прежнему загадка.
|