Re: Razor2 crashing on Linux on certain messages?

Nix <[email protected]>
Newsgroups gmane.mail.spam.razor.user
Message-ID <[email protected]>
On Wed, 22 Jun 2005, Gary V. spake:
> # uname -r
> # perl -v
> 
> Please, I only need a limited number of responses (around 6) to verify
> this problem is not isolated. Also trying to determine if the problem only
> appears on Linux systems using older versions of Perl.

Definitely not the case, and the problem is cross-architecture:

nix@amaterasu 5 /tmp/test% razor-check email.txt
*** glibc detected *** malloc(): memory corruption: 0x0057a478 ***
Aborted
nix@amaterasu 6 /tmp/test% uname -a
Linux amaterasu 2.6.11.9 #1 Fri May 13 00:51:26 BST 2005 sparc unknown unknown GNU/Linux
nix@amaterasu 7 /tmp/test% perl -v

This is perl, v5.8.5 built for sparc-linux-thread-multi-64int


It also dies on my i686:

nix@hades 6 /tmp/mail% valgrind razor-check email.txt
==30677== Invalid write of size 1
==30677==    at 0x1C42E566: html_strip (in /usr/packages.bin/perl/5.8.5/lib/perl5/site_perl/5.8.5/i686-linux-thread-multi-ld/auto/Razor2/Preproc/deHTMLxs/deHTMLxs.so)
==30677==  Address 0x1C33F485 is 0 bytes after a block of size 757 alloc'd
==30677==    at 0x1B904330: malloc (vg_replace_malloc.c:130)
==30677==    by 0x1C42F58D: XS_Razor2__Preproc__deHTMLxs_doit (in /usr/packages.bin/perl/5.8.5/lib/perl5/site_perl/5.8.5/i686-linux-thread-multi-ld/auto/Razor2/Preproc/deHTMLxs/deHTMLxs.so)
==30677== 
==30677== Invalid read of size 1
==30677==    at 0x1B905641: strlen (mac_replace_strmem.c:189)
==30677==    by 0x48A6A1F3: Perl_newSVpv (in /usr/packages.bin/perl/5.8.5/lib/perl5/5.8.5/i686-linux-thread-multi-ld/CORE/libperl.so)
==30677==  Address 0x1C33F485 is 0 bytes after a block of size 757 alloc'd
==30677==    at 0x1B904330: malloc (vg_replace_malloc.c:130)
==30677==    by 0x1C42F58D: XS_Razor2__Preproc__deHTMLxs_doit (in /usr/packages.bin/perl/5.8.5/lib/perl5/site_perl/5.8.5/i686-linux-thread-multi-ld/auto/Razor2/Preproc/deHTMLxs/deHTMLxs.so)

so yes, it's deHTMLxs at fault.

-- 
`It's as bizarre an intrusion as, I don't know, the hobbits coming home
 to find that the Shire has been taken over by gangsta rappers.'


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.