[Bug 1882418] Re: spamprobe crashes on email containing images

2021-01-11 Thread Scott Pakin
Joseph: Your patch works for me! I applied it to the Ubuntu package and rebuilt it (i.e., retaining the existing configure options, compiler/linker flags, all the other patches, etc.), and it appears that the crashes I was seeing have gone away. Before: $ cat /tmp/junk.mbox | ./debian/spamprobe/u

[Bug 1882418] Re: spamprobe crashes on email containing images

2021-01-11 Thread Joseph Ishac
FWIW, I just realized that the deb package runs configure with some parameters, --enable-default-8bit and --enable-cdb If you were like me and didn't enable "--enable-cdb" in the past you may run into the following error 'BDB0075 DB_PAGE_NOTFOUND: Requested page not found (-30986)'. I recompiled

[Bug 1882418] Re: spamprobe crashes on email containing images

2021-01-10 Thread Joseph Ishac
I believe I have corrected the issue. I would propose that this minor patch be tested by others impacted. It seems to clean up the issue by simply adding some missing return codes (and I happened to fix a few types that compiler was complaining about as well). The changes seem to make the compil

[Bug 1882418] Re: spamprobe crashes on email containing images

2021-01-10 Thread Scott Pakin
How about LibJPEG? JPEG images lead to crashes, too. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1882418 Title: spamprobe crashes on email containing images To manage notifications about this bu

[Bug 1882418] Re: spamprobe crashes on email containing images

2021-01-10 Thread Brian Burton
LibPNG uses setjmp/longjmp for error handling. The optimizer could be making changes that affect those macros. Building without them might be the best workaround. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.

[Bug 1882418] Re: spamprobe crashes on email containing images

2021-01-09 Thread Joseph Ishac
I have not had a chance to dig into it too deeply, but it seems that disabling optimization fixes the issue. I tried this and it worked for the current code without Scott's workaround. $ ./configure $ make $ cat bad-email | src/spamprobe/spamprobe score caught signal 11: quitting Aborted (core du

[Bug 1882418] Re: spamprobe crashes on email containing images

2020-10-11 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: spamprobe (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1882418 Title:

[Bug 1882418] Re: spamprobe crashes on email containing images

2020-06-07 Thread Ubuntu Foundations Team Bug Bot
The attachment "Workaround for images crashing spamprobe" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu- reviewers, unsubscribe the team. [This is an automated message performed by a Launchpad u

[Bug 1882418] Re: spamprobe crashes on email containing images

2020-06-07 Thread Scott Pakin
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. ** Patch added: "Workaround for images crashing spamprobe" https://bugs.launchpad.net/ubuntu/+source/spamprobe/+bug/1882418/+a