Bug 9242 - Samba segfault while client try to print PDF from share to local printer
Summary: Samba segfault while client try to print PDF from share to local printer
Status: CLOSED WORKSFORME
Alias: None
Product: Samba 3.5
Classification: Unclassified
Component: File services (show other bugs)
Version: 3.5.10
Hardware: x86 Linux
: P5 normal
Target Milestone: ---
Assignee: Volker Lendecke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-04 04:23 UTC by George
Modified: 2021-01-05 09:50 UTC (History)
0 users

See Also:


Attachments
Samba config (1.40 KB, application/octet-stream)
2012-10-04 04:23 UTC, George
no flags Details
User log (2.36 KB, text/x-log)
2012-10-04 04:24 UTC, George
no flags Details
Backtrace (757 bytes, text/plain)
2012-10-08 04:41 UTC, George
no flags Details
Samba config with VFS (4.30 KB, text/plain)
2012-10-08 04:50 UTC, George
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description George 2012-10-04 04:23:33 UTC
Created attachment 7985 [details]
Samba config

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.
Comment 1 George 2012-10-04 04:24:40 UTC
Created attachment 7986 [details]
User log
Comment 2 George 2012-10-04 04:26:16 UTC
Sorry. OS - CentOS 6.3
Comment 3 Jeremy Allison 2012-10-05 23:32:18 UTC
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.

Thanks,

Jeremy.
Comment 4 George 2012-10-08 04:41:19 UTC
Created attachment 8002 [details]
Backtrace

Backtrace from crashed smbd process
Comment 5 George 2012-10-08 04:50:48 UTC
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.
Comment 6 Jeremy Allison 2012-10-09 19:39:19 UTC
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 ?

Jeremy.
Comment 7 Jeremy Allison 2012-10-09 19:41:23 UTC
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.

Jeremy.
Comment 8 George 2012-10-10 04:13:22 UTC
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
Comment 9 Volker Lendecke 2012-10-10 05:49:54 UTC
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.
Comment 10 George 2012-10-10 06:17:37 UTC
(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.
Comment 11 Björn Jacke 2021-01-05 09:50:42 UTC
from the discussion here this does not seem to be a samba causes problem