Repository navigation
Replies: 3 comments 1 reply
|
I can't replicate your issue... Here's a sample session in a |
1 reply
|
I got lucky trying this workaround in Dockerfile: |
0 replies
|
I've been able to reproduce the segmentation fault... $ IPE_NOSTRIP=1 install-php-extensions oci8 smbclient
$ apt-get update -q
$ apt-get install -qy --no-install-recommends samba gdb
$ mkdir -p /tmp/test-samba
$ cat <<'EOT' >>/etc/samba/smb.conf
[test_samba]
path = /tmp/test-samba
read only = yes
browsable = yes
EOT
$ service smbd restart
$ gdb php
(gdb) run -r '$state = smbclient_state_new(); smbclient_state_init($state); smbclient_open($state, "smb://127.0.0.1/test_samba/test.txt", "r");'
Starting program: /usr/local/bin/php -r '$state = smbclient_state_new(); smbclient_state_init($state); smbclient_open($state, "smb://127.0.0.1/test_samba/test.txt", "r");'
warning: Error disabling address space randomization: Operation not permitted
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x000073657c2e5262 in free () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0 0x000073657c2e5262 in free () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x0000736578b666dd in krb5_free_context () from /usr/lib/oracle/21.1/client64/lib/libclntsh.so.21.1
#2 0x0000736574cd1069 in smb_krb5_init_context_basic () from /usr/lib/x86_64-linux-gnu/samba/libauthkrb5-private-samba.so.0
#3 0x0000736574cd12e0 in smb_krb5_init_context () from /usr/lib/x86_64-linux-gnu/samba/libauthkrb5-private-samba.so.0
#4 0x0000736575d221ef in cli_credentials_get_krb5_context () from /lib/x86_64-linux-gnu/libsamba-credentials.so.1
#5 0x0000736575d2257a in cli_credentials_set_ccache () from /lib/x86_64-linux-gnu/libsamba-credentials.so.1
#6 0x0000736575d20b2d in cli_credentials_guess () from /lib/x86_64-linux-gnu/libsamba-credentials.so.1
#7 0x0000736575f7ab3b in auth_generic_client_prepare () from /usr/lib/x86_64-linux-gnu/samba/liblibsmb-private-samba.so.0
#8 0x0000736575f805f0 in cli_session_setup_creds_send () from /usr/lib/x86_64-linux-gnu/samba/liblibsmb-private-samba.so.0
#9 0x0000736575f80f4d in cli_session_setup_creds () from /usr/lib/x86_64-linux-gnu/samba/liblibsmb-private-samba.so.0
#10 0x000073657b3bad85 in ?? () from /lib/x86_64-linux-gnu/libsmbclient.so.0
#11 0x000073657b3bb642 in ?? () from /lib/x86_64-linux-gnu/libsmbclient.so.0
#12 0x000073657b3b8732 in ?? () from /lib/x86_64-linux-gnu/libsmbclient.so.0
#13 0x000073657b60df1f in zif_smbclient_open (execute_data=<optimized out>, return_value=0x7ffcd2241dd0) at /tmp/pear/temp/smbclient/smbclient.c:1119
#14 0x000056d5599b01c3 in execute_ex ()
#15 0x000056d5599aa0d3 in zend_execute ()
#16 0x000056d5599591b1 in zend_eval_stringl ()
#17 0x000056d559959389 in zend_eval_stringl_ex ()
#18 0x000056d559a15174 in ?? ()
#19 0x000056d55945cc5b in ?? ()
#20 0x000073657c26bca8 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#21 0x000073657c26bd65 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#22 0x000056d55945e061 in _start ()#1251 should fix this problem |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
please, let me ask for a hint to debug a compatibility issue. So far I was able to create minimal failing example, but I'm not sure on which element I should focus or how.
The issue is - after update, there's a Segmentation fault (core dumped) during smbclient_open. It only happens on PHP 8.5 (trixie/bookworm/alpine) with oci8 installed as well.
All reactions