Created attachment 7985 [details]
OS: CentOS 3.5.10 x86 as OpenVZ CT (Host: Proxmox VE 2.1)
Prod: Samba 3.5.10
We have two shares: home directories and group directories.
1. User open PDF file from any share - all OK.
2. User try to print document to local printer: smbd segfault, user sees a blank pages instead of the document, application in which the document is opened an error printing.
When user try to copy PDF from shre to local disk, it succeeds. Copy and print other types of documents is successful. The error only occurs when printing PDF from share.
As client we try all MS OSes (from XP to Seven) and more that three programms (Ad0be, FoxIt etc.). Problem persists everywhere.
Created attachment 7986 [details]
Sorry. OS - CentOS 6.3
Ok - add "panic action = /bin/sleep 9999999" to the [global] section of your smb.conf and reproduce the problem. This will cause the crashing smbd to be paused waiting for the sleep process to finish.
Identify the parent of the sleep process, this will be the crashed smbd - then attach to it using gdb and then type "bt" to get a stack backtrace. Post this backtrace to the bug report please.
I think this may be something we've already fixed, but this will help confirm.
Created attachment 8002 [details]
Backtrace from crashed smbd process
Created attachment 8003 [details]
Samba config with VFS
I apologize, my colleague did not tell me that he is using Kaspersky Anti-Virus.
The problem is likely to use VFS with Kaspersky Anti-Virus. Line #6 in backtrace.log If Kaspersky is disabled, the error can not be reproduce.
Ah, this is probably a bug in their anti-virus module.
Can you get a back-trace and post the source code for their module here so we can take a look and maybe notify them where the problem is ?
You also might be able to get around the problem by moving the vfs_object line from the [global] section to the share definitions where it should belong.
You shouldn't need to be running anti-virus on a printer share.
I'm sorry, but the anti-virus product is proprietary. And we can not get the source code. I sent bug report to support for the anti-virus. Let them also participate in the search for errors.
http://forum.kaspersky.com/index.php?showtopic=246018 - russian language
The engine itself might be non-GPL, the module linked into Samba has a strict GPL requirement. So you will be able to get the source code for the module from Kaspersky, which is all we need to debug this.
(In reply to comment #9)
> The engine itself might be non-GPL, the module linked into Samba has a strict
> GPL requirement. So you will be able to get the source code for the module from
> Kaspersky, which is all we need to debug this.
You are right. Sources for samba module is found.
http://dl.dropbox.com/u/17192265/kav4fs-8.0.1-145.i386.rpm (43 MB) - RPM package of this anti-virus. Included samba-vfs sources. If this oversized I can try to extract only VFS module's source and share it onto dropbox.