Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#30 core dump with a particular email on v2.84 and v2.85

open
nobody
None
5
2009-12-04
2009-12-04
Jeremy Laidman
No

I get a core dump when I run razor-check against a particular email, and this error message:

*** glibc detected *** malloc(): memory corruption: 0x09135998 ***

Running with debug enabled shows:

Dec 05 03:07:07.913384 check[22110]: [ 8] mail 1 Subject: =?windows-874?B?u9WqpyAyNTUzIOHF0MfUuNXhoemqpyDgysPUwbTHp6rQ
Dec 05 03:07:07.942593 check[22110]: [ 6] preproc: mail 1.0 went from 51251 bytes to 18255
*** glibc detected *** malloc(): memory corruption: 0x09135998 ***
Aborted

Seems to be failing here, on line 56 of Razor2/Preproc/Manager.pm:

55: if (exists $$self{deHTML} && $self->{deHTML}->isit($bodyref)) {
56: $self->{deHTML}->doit($bodyref);
57: }

The problem goes away if I comment out this line from Razor2/Preproc/Manager.pm

$self{deHTML} = new Razor2::Preproc::deHTMLxs unless exists $args{no_deHTML};

as if to force the "no-dehtml" option.

Backtrace shows:

#10 0x00da85c4 in XS_Razor2__Preproc__deHTMLxs_doit (my_perl=0x8126008,
---Type <return> to continue, or q <return> to quit---
cv=0x84bdc7c) at deHTMLxs.xs:123

indicating a problem in deHTMLxs.xs.

I'm not good a C programming, so I can't debug further.

Discussion