[apport] klammail crashed with SIGSEGV in strlen()

Bug #103202 reported by pablopedro
108
Affects Status Importance Assigned to Milestone
klamav (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: klamav

Automatic scan for viruses in email client (kmail) doesn't work properly, as much as right-clicking/action/scan in Klamav...

ProblemType: Crash
Architecture: i386
Date: Thu Apr 5 08:36:16 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/klammail
Package: klamav 0.41-0ubuntu1
PackageArchitecture: i386
ProcCmdline: klammail -d /home/Gian/.klamav/database
ProcCwd: /home/Gian
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
Signal: 11
SourcePackage: klamav
StacktraceTop:
 strlen () from /lib/tls/i686/cmov/libc.so.6
 vfprintf () from /lib/tls/i686/cmov/libc.so.6
 ?? () from /lib/tls/i686/cmov/libc.so.6
 ?? ()
 ?? ()
Uname: Linux pedra-laptop 2.6.20-13-generic #2 SMP Sun Mar 25 00:21:25 UTC 2007 i686 GNU/Linux
UserGroups: adm admin audio cdrom dialout floppy lpadmin plugdev scanner tty video

Revision history for this message
pablopedro (pablopedroescobar) wrote :
Revision history for this message
Odd Rune S. Lykkebø (atypic) wrote :

Can someone fluent in spanish (?) please translate the desc?

Changed in klamav:
importance: Undecided → Medium
status: Unconfirmed → Confirmed
Revision history for this message
Odd Rune S. Lykkebø (atypic) wrote :

Also, since there is a obvious lack of debug symbols here, could you give me some steps to reproduce this? I understand that it has something to do with kmail, but a little clarification would be nice.

Revision history for this message
Piotr Bobek (pbobek) wrote : Re: [Bug 103202] Re: [apport] klammail crashed with SIGSEGV in strlen()

On Monday 16 of April 2007 23:18:34 Odd Rune S. Lykkebø wrote:
> Also, since there is a obvious lack of debug symbols here, could you
> give me some steps to reproduce this? I understand that it has something
> to do with kmail, but a little clarification would be nice.

Acually I don't know - started up KDE and kontact started to get mail than i t
crased and coused kontact shut down.

Revision history for this message
Scott Kitterman (kitterman) wrote :

I'm bumping this to high due to the continuing influx of dupes.

Changed in klamav:
importance: Medium → High
Revision history for this message
pablopedro (pablopedroescobar) wrote :

Per tutti coloro che usano l'antivirus Klamav e non riescono a fare la semplice scansione dal menù contestuale (o service menù), ovvero cliccando con il tasto destro e dando l'opzione scan with klamav, sappiate che bisogna editare il file /usr/share/apps/konqueror/servicemenus/klamav-dropdown.desktop

Se si presentasse così:

[Desktop Entry]
Actions=Scan
Encoding=UTF-8
ServiceTypes=all/allfiles,inode/directory
ExcludeServiceTypes=application/x-iso
Comment=KlamAV - Anti-Virus Manager
Keywords=klamav
Terminal=false
Type=Application

[Desktop Action Scan]
Exec=sh ScanWithKlamAV %F (attenzione a questa riga)
Name=Scan with KlamAV...
Name[pt_BR]=Analisar com anti-vírus
Icon=klamav
X-Ubuntu-Gettext-Domain=desktop_klamav

modificare con:

Exec= /usr/bin/ScanWithKlamAV %F

e magicamente dovrebbe funzionare l'opzione di scansione "diretta"

(vedi http://ubuntuforums.org/showthread.php?p=1887254
http://www.mandrakeitalia.org/modules/wfsection/article.php?articleid=117)

Revision history for this message
Grobbelaar (giatav) wrote :

Grazie!

Il 03/06/07, pablopedro <email address hidden> ha scritto:
>
> Per tutti coloro che usano l'antivirus Klamav e non riescono a fare la
> semplice scansione dal menù contestuale (o service menù), ovvero
> cliccando con il tasto destro e dando l'opzione scan with klamav,
> sappiate che bisogna editare il file
> /usr/share/apps/konqueror/servicemenus/klamav-dropdown.desktop
>
> Se si presentasse così:
>
> [Desktop Entry]
> Actions=Scan
> Encoding=UTF-8
> ServiceTypes=all/allfiles,inode/directory
> ExcludeServiceTypes=application/x-iso
> Comment=KlamAV - Anti-Virus Manager
> Keywords=klamav
> Terminal=false
> Type=Application
>
> [Desktop Action Scan]
> Exec=sh ScanWithKlamAV %F (attenzione a questa riga)
> Name=Scan with KlamAV...
> Name[pt_BR]=Analisar com anti-vírus
> Icon=klamav
> X-Ubuntu-Gettext-Domain=desktop_klamav
>
> modificare con:
>
> Exec= /usr/bin/ScanWithKlamAV %F
>
> e magicamente dovrebbe funzionare l'opzione di scansione "diretta"
>
> (vedi http://ubuntuforums.org/showthread.php?p=1887254
> http://www.mandrakeitalia.org/modules/wfsection/article.php?articleid=117)
>
> --
> [apport] klammail crashed with SIGSEGV in strlen()
> https://bugs.launchpad.net/bugs/103202
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

For non-italian users:
If you use Klamav and can't get scan to work (using Service menu or by right-clicking and choosing scan), you have to edit /usr/share/apps/konqueror/servicemenus/klamav-dropdown.desktop, replacing "Exec=sh ScanWithKlamAV %F" with "Exec= /usr/bin/ScanWithKlamAV %F".

description: updated
Revision history for this message
Scott Kitterman (kitterman) wrote :

On Kubuntu this doesn't appear to change anything.

Revision history for this message
pablopedro (pablopedroescobar) wrote :

Scusate se scrivo solo in italiano, spero che qualcuno traduca: per chi avesse avuto lo stesso mio problema (scansione ricorsiva delle mail fino al crash di kmail, se si usa lo script di klammail - ovvero klammail -d /home/*/.klamav/database) io ho risolto così:

cambiare i permessi alla cartella del database (/home/*/.klamav/database) per consentire l'accesso ad altri in lettura/scrittura (se no klamav non può leggerlo);

cancellare i file presenti nella cartella /home/*/.klamav/database ed aggiornare il database di klamav (in teoria il file causa del crash è un .lock generato in quanto klamav non vi ha accesso, ma per sicurezza meglio cancellare tutto...)

Ora si può abilitare la scansione automatica delle mail da parte di Klamav (a me funziona)

Buon lavoro tutti

P.s.
Non sono un informatico, non mandatemi richieste di collaborazione che i miei sono tutti tentativi empirici, a volte vanno, 99 volte su 100 no.

P.s.s.
Per i programmatori credo sia da cambiare lo script di installazione di klamav per permettergli la lettura/scrittura della cartella /home/*/.klamav che si crea con l'installazione da root

Pablopedro

Revision history for this message
Scott Kitterman (kitterman) wrote :

There is a new upstream bugfix release in Gutsy now (0.41.1). If anyone who has experienced this problem in the past is running Gutsy, reports about whether or not this problem recurs with the new version would be useful.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Based on no reports of this in Gutsy, marking fix released.

Changed in klamav:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.