spamprobe crashes on email containing images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
spamprobe (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Since upgrading from eoan to focal, spamprobe crashes when performing any processing on a mail file containing images. Try running "spamprobe spam bad-email" using the attached bad-email file, which has an embedded PNG image. I observe the following:
$ spamprobe spam bad-email
caught signal 11: quitting
Aborted (core dumped)
Here's the backtrace I get from gdb:
#0 0x00007ffff79a2553 in _Unwind_Resume () from /lib/x86_
#1 0x0000555555562751 in PngParser:
#2 0x000055555558e51f in TraditionalMail
#3 0x000055555558ebc3 in TraditionalMail
#4 0x000055555558ea2b in TraditionalMail
#5 0x000055555558db91 in TraditionalMail
#6 0x000055555556a695 in AbstractMessage
#7 0x000055555556ae41 in AbstractMessage
#8 0x000055555556a34d in AbstractFileCom
#9 0x0000555555566e76 in main (argc=3, argv=<optimized out>) at ../../src/
Interestingly, when passing in a message with an embedded JPEG image, spamprobe crashes at the comparable location in JpegParser.cc (line 65).
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: spamprobe 1.4d-14build2
ProcVersionSign
Uname: Linux 5.4.0-33-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.2
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: MATE
Date: Sun Jun 7 01:50:31 2020
InstallationDate: Installed on 2013-01-14 (2701 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
SourcePackage: spamprobe
UpgradeStatus: Upgraded to focal on 2020-06-07 (0 days ago)
Here's a patch that at least catches and discards the segfaults. Image processing shouldn't fault to begin with, but this patch at least makes spamprobe usable again.