ALT Linux Bugzilla
– Attachment 16959 Details for
Bug 51645
Segfault при запуске функции ssh2_auth_pubkey_file
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
Backtrace
php8.2-backtrace.log (text/x-log), 6.05 KB, created by
Evgeny Shesteperov
on 2024-10-06 17:37:39 MSK
(
hide
)
Description:
Backtrace
Filename:
MIME Type:
Creator:
Evgeny Shesteperov
Created:
2024-10-06 17:37:39 MSK
Size:
6.05 KB
patch
obsolete
>GNU gdb (GDB) 14.1.0.56.d739d4fd457-alt1 (ALT Sisyphus) >Copyright (C) 2023 Free Software Foundation, Inc. >License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> >This is free software: you are free to change and redistribute it. >There is NO WARRANTY, to the extent permitted by law. >Type "show copying" and "show warranty" for details. >This GDB was configured as "x86_64-alt-linux". >Type "show configuration" for configuration details. >For bug reporting instructions, please see: ><https://www.gnu.org/software/gdb/bugs/>. >Find the GDB manual and other documentation resources online at: > <http://www.gnu.org/software/gdb/documentation/>. > >For help, type "help". >Type "apropos word" to search for commands related to "word"... >Reading symbols from /usr/bin/php8.2-8.2.24... >Reading symbols from /usr/lib/debug/usr/bin/php8.2-8.2.24.debug... > >warning: Can't open file /SYSV00000000 (deleted) during file-backed mapping note processing >[New LWP 1524] >[Thread debugging using libthread_db enabled] >Using host libthread_db library "/lib64/libthread_db.so.1". >Core was generated by `php8.2 ssh-test.php <IP_ADDRESS_HERE> /tmp/.private/test/tmp.MLXakrS0wF/my-ssh-test'. >Program terminated with signal SIGSEGV, Segmentation fault. >#0 0x00007f222796c05a in _libssh2_openssh_pem_parse_data (session=session@entry=0x7f2227a90000, > passphrase=passphrase@entry=0x18 <error: Cannot access memory at address 0x18>, > b64data=b64data@entry=0x7f2227a59400 "b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcnNhAAAAAwEAAQAAAYEA0fbdNmo3tiHlnFFDtakoXw3+q/qT2+RjmAvyCktOJaosuwKSVvgArteaSTkQbDvALZB18bn35w0zgIHueeqHOZoEsGRZBHLWBu4VZeID7o8ILLew"..., b64datalen=b64datalen@entry=2560, decrypted_buf=decrypted_buf@entry=0x7ffd797e52e0) > at /usr/src/debug/libssh2-1.11.0/src/pem.c:455 >455 if((!passphrase || strlen((const char *)passphrase) == 0) && > >Thread 1 (Thread 0x7f2228ce4740 (LWP 1524)): >#0 0x00007f222796c05a in _libssh2_openssh_pem_parse_data (session=session@entry=0x7f2227a90000, passphrase=passphrase@entry=0x18 <error: Cannot access memory at address 0x18>, b64data=b64data@entry=0x7f2227a59400 "b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcnNhAAAAAwEAAQAAAYEA0fbdNmo3tiHlnFFDtakoXw3+q/qT2+RjmAvyCktOJaosuwKSVvgArteaSTkQbDvALZB18bn35w0zgIHueeqHOZoEsGRZBHLWBu4VZeID7o8ILLew"..., b64datalen=b64datalen@entry=2560, decrypted_buf=decrypted_buf@entry=0x7ffd797e52e0) at /usr/src/debug/libssh2-1.11.0/src/pem.c:455 >#1 0x00007f222796d2e1 in _libssh2_openssh_pem_parse (session=0x7f2227a90000, passphrase=<optimized out>, fp=0x5629fd1eeaa0, decrypted_buf=<optimized out>) at /usr/src/debug/libssh2-1.11.0/src/pem.c:735 >#2 0x00007f222795ba3b in _libssh2_rsa_new_openssh_private (passphrase=0x18 <error: Cannot access memory at address 0x18>, filename=0x7f2227a02228 "/home/test/.ssh/id_rsa", session=0x7f2227a90000, rsa=0x7ffd797e52d0) at /usr/src/debug/libssh2-1.11.0/src/openssl.c:1049 >#3 _libssh2_rsa_new_private (passphrase=0x18 <error: Cannot access memory at address 0x18>, filename=0x7f2227a02228 "/home/test/.ssh/id_rsa", session=0x7f2227a90000, rsa=0x7ffd797e52d0) at /usr/src/debug/libssh2-1.11.0/src/openssl.c:1095 >#4 hostkey_method_ssh_rsa_initPEM (session=0x7f2227a90000, privkeyfile=0x7f2227a02228 "/home/test/.ssh/id_rsa", passphrase=0x18 <error: Cannot access memory at address 0x18>, abstract=0x7ffd797e53a0) at /usr/src/debug/libssh2-1.11.0/src/hostkey.c:152 >#5 0x00007f222797e6f8 in file_read_privatekey (session=session@entry=0x7f2227a90000, hostkey_method=hostkey_method@entry=0x7ffd797e53a8, hostkey_abstract=hostkey_abstract@entry=0x7ffd797e53a0, method=0x7f2227a81030 "rsa-sha2-512", method_len=12, privkeyfile=0x7f2227a02228 "/home/test/.ssh/id_rsa", passphrase=0x18 <error: Cannot access memory at address 0x18>) at /usr/src/debug/libssh2-1.11.0/src/userauth.c:804 >#6 0x00007f222797e82a in sign_fromfile (session=0x7f2227a90000, sig=0x7ffd797e5478, sig_len=0x7ffd797e5470, data=0x7f2227a8d200 "", data_len=504, abstract=<optimized out>) at /usr/src/debug/libssh2-1.11.0/src/userauth.c:866 >#7 0x00007f2227978ffc in _libssh2_userauth_publickey (session=session@entry=0x7f2227a90000, username=username@entry=0x7f2227a56438 "test", username_len=username_len@entry=4, pubkeydata=pubkeydata@entry=0x0, pubkeydata_len=pubkeydata_len@entry=0, sign_callback=sign_callback@entry=0x7f222797e7d0 <sign_fromfile>, abstract=0x7ffd797e5528) at /usr/src/debug/libssh2-1.11.0/src/userauth.c:1666 >#8 0x00007f22279800c5 in userauth_publickey_fromfile (passphrase=0x18 <error: Cannot access memory at address 0x18>, privatekey=0x7f2227a02228 "/home/test/.ssh/id_rsa", publickey=<optimized out>, username_len=4, username=<optimized out>, session=0x7f2227a90000) at /usr/src/debug/libssh2-1.11.0/src/userauth.c:1921 >#9 libssh2_userauth_publickey_fromfile_ex (session=session@entry=0x7f2227a90000, user=0x7f2227a56438 "test", user_len=4, publickey=0x7f2227a57210 "/home/test/.ssh/id_rsa.pub", privatekey=0x7f2227a02228 "/home/test/.ssh/id_rsa", passphrase=0x18 <error: Cannot access memory at address 0x18>) at /usr/src/debug/libssh2-1.11.0/src/userauth.c:1978 >#10 0x00007f222799a992 in zif_ssh2_auth_pubkey_file (execute_data=<optimized out>, return_value=0x7ffd797e5640) at /usr/src/debug/php8.2-ssh2-1.3.1/ssh2.c:692 >#11 0x00007f2228a1c083 in ZEND_DO_ICALL_SPEC_RETVAL_UNUSED_HANDLER () at /usr/src/debug/php-source/Zend/zend_vm_execute.h:1250 >#12 execute_ex (ex=0x7ffd797e50a0) at /usr/src/debug/php-source/Zend/zend_vm_execute.h:56071 >#13 0x00007f2228a22023 in zend_execute (op_array=0x7f2227a82100, return_value=0x0) at /usr/src/debug/php-source/Zend/zend_vm_execute.h:60439 >#14 0x00007f22289b1e88 in zend_execute_scripts (type=type@entry=8, retval=retval@entry=0x0, file_count=file_count@entry=3) at /usr/src/debug/php-source/Zend/zend.c:1842 >#15 0x00007f222894d34a in php_execute_script (primary_file=primary_file@entry=0x7ffd797e7bd0) at /usr/src/debug/php-source/main/main.c:2580 >#16 0x00005629f44ea61f in do_cli (argc=4, argv=0x5629fd1b7160) at /usr/src/debug/php-source/sapi/cli/php_cli.c:964 >#17 0x00005629f44e8dfe in main (argc=4, argv=0x5629fd1b7160) at /usr/src/debug/php-source/sapi/cli/php_cli.c:1333
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 51645
: 16959 |
16996