FS#18653 - SIGSEGV in libsmbclient.so.0 when trying to access my Asus router with Nautilus
Attached to Project:
Arch Linux
Opened by ilya (leniviy) - Friday, 12 March 2010, 15:25 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 31 May 2010, 19:27 GMT
Opened by ilya (leniviy) - Friday, 12 March 2010, 15:25 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 31 May 2010, 19:27 GMT
|
Details
After upgrade to smbclient-3.5.0-2, I can't connect to my
Asus router with Nautilus. (There's some older samba 3 on
that router). It lists shares, but can't mount any of them.
Shows a message box: "_russian_text_...DBus error
org.freedesktop.DBus.Error.NoReply: Message did not receive
a reply (timeout by message bus)..._russian_text_".
At the same time I can access shares on XP laptop. I downgraded to smbclient-3.4.5-1 and now it works. logged message: Mar 12 18:19:00 IL kernel: gvfsd-smb[15470]: segfault at c35dec79 ip b7661068 sp b65bfb40 error 5 in libsmbclient.so.0[b71f9000+5a2000] Built smbclient with "-g -O0". Here's the gdb backtrace after SIGSEGV caught: #0 0xb76d9f28 in talloc_get_name () from /usr/lib/libsmbclient.so.0 #1 0xb76dd2ac in _talloc_get_type_abort () from /usr/lib/libsmbclient.so.0 #2 0xb71a5c8c in cli_smb_req_send (req=0xb77098ee) at libsmb/async_smb.c:527 #3 0xb716d882 in cli_tcon_andx_send (mem_ctx=0x8c72ad8, ev=0x8c72f78, cli=0x8c51830, share=0xb7709876 "IPC$", dev=0xb77098f5 "IPC", pass=0x0, passlen=0) at libsmb/cliconnect.c:1458 #4 0xb716db52 in cli_tcon_andx (cli=0x8c51830, share=0xb7709876 "IPC$", dev=0xb77098f5 "IPC", pass=0x0, passlen=0) at libsmb/cliconnect.c:1537 #5 0xb719a8f7 in cli_check_msdfs_proxy (ctx=0x8c501d8, cli=0x8c51830, sharename=0x8c4d9b0 "share$", pp_newserver=0xb645eeec, pp_newshare=0xb645eee8, force_encrypt=false, username=0x8c50590 "il", password=0x8bc16f0 "", domain=0x8c505c8 "WORKGROUP") at libsmb/clidfs.c:1019 #6 0xb70c5031 in SMBC_server_internal (ctx=0x8c501d8, context=0x8c4f998, connect_if_not_found=true, server=0x8c4d970 "my.router", share=0x8c4d9b0 "share$", pp_workgroup=0xb645f134, pp_username=0xb645f13c, pp_password=0xb645f138, in_cache=0xb645f0b7) at libsmb/libsmb_server.c:536 #7 0xb70c579a in SMBC_server (ctx=0x8c501d8, context=0x8c4f998, connect_if_not_found=true, server=0x8c4d970 "my.router", share=0x8c4d9b0 "share$", pp_workgroup=0xb645f134, pp_username=0xb645f13c, pp_password=0xb645f138) at libsmb/libsmb_server.c:670 #8 0xb70c6726 in SMBC_stat_ctx (context=0x8c4f998, fname=0x8c50180 "smb://my.router/share%24", st=0xb645f19c) at libsmb/libsmb_stat.c:168 |
This task depends upon
Peter, are you sure about this? I had ipv6 enabled when my segfault popped
* append to source array
"mount.cifs.segfault.fix.diff::https://bugzilla.samba.org/attachment.cgi?id=5448&action=view"
* append to md5sums array
'469893125e3b4ce6316e0f92ed9cad80'
* in build() function put the following line after "cd ${srcdir}/${pkgbase}-${_realver}/source3":
( cd ../client && patch -p0 -i ${srcdir}/mount.cifs.segfault.fix.diff ) || return 1
so it looks like this:
*************************************
...
build() {
cd ${srcdir}/${pkgbase}-${_realver}/source3
( cd ../client && patch -p0 -i ${srcdir}/mount.cifs.segfault.fix.diff ) || return 1
./configure --prefix=/usr \
...
*************************************
Luckily, the patch fits for 3.5.2 as well.
http://gitweb.samba.org/?p=samba.git;a=commitdiff;h=34f0cff0664f1c160ee7442461e9f875e8d8f4dc;hp=dc689827114c46b3ca2a75082421dc2d98001ce7
Thanks!