* Re: mlmmj-process dies with "free(): invalid next size"
2006-11-10 15:28 mlmmj-process dies with "free(): invalid next size" Christoph Wilke
@ 2006-11-11 19:18 ` Mads Martin Joergensen
2006-11-11 19:55 ` Andrea Barisani
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Mads Martin Joergensen @ 2006-11-11 19:18 UTC (permalink / raw)
To: mlmmj
* Christoph Wilke <chris@filmkreis.tu-darmstadt.de> [Nov 10. 2006 16:25]:
> ps. The versions I used to test weren't patched.
Can you please try RC4 with the latest patch from Morten?
--
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
and totally illogical, with just a little bit more effort?"
-- A. P. J.
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: mlmmj-process dies with "free(): invalid next size"
2006-11-10 15:28 mlmmj-process dies with "free(): invalid next size" Christoph Wilke
2006-11-11 19:18 ` Mads Martin Joergensen
@ 2006-11-11 19:55 ` Andrea Barisani
2006-11-12 11:26 ` Mads Martin Joergensen
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Andrea Barisani @ 2006-11-11 19:55 UTC (permalink / raw)
To: mlmmj
On Sat, Nov 11, 2006 at 08:18:47PM +0100, Mads Martin Joergensen wrote:
> * Christoph Wilke <chris@filmkreis.tu-darmstadt.de> [Nov 10. 2006 16:25]:
> > ps. The versions I used to test weren't patched.
>
> Can you please try RC4 with the latest patch from Morten?
>
> --
We get this too: mlmmj-process: *** glibc detected *** free():
invalid next size (fast): 0x116383a8 ***
RC4 doesn't solve the issue (unless there's some patch against it that I'm
missing).
--
Andrea Barisani <lcars@gentoo.org> .*.
Gentoo Linux Infrastructure Developer V
( )
PGP-Key 0x864C9B9E http://dev.gentoo.org/~lcars/pubkey.asc ( )
0A76 074A 02CD E989 CE7F AC3F DA47 578E 864C 9B9E ^^_^^
"Pluralitas non est ponenda sine necessitate"
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: mlmmj-process dies with "free(): invalid next size"
2006-11-10 15:28 mlmmj-process dies with "free(): invalid next size" Christoph Wilke
2006-11-11 19:18 ` Mads Martin Joergensen
2006-11-11 19:55 ` Andrea Barisani
@ 2006-11-12 11:26 ` Mads Martin Joergensen
2006-11-12 15:14 ` Andrea Barisani
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Mads Martin Joergensen @ 2006-11-12 11:26 UTC (permalink / raw)
To: mlmmj
* Andrea Barisani <lcars@gentoo.org> [Nov 11. 2006 20:54]:
> > > ps. The versions I used to test weren't patched.
> >
> > Can you please try RC4 with the latest patch from Morten?
>
> We get this too: mlmmj-process: *** glibc detected *** free():
> invalid next size (fast): 0x116383a8 ***
>
> RC4 doesn't solve the issue (unless there's some patch against it that I'm
> missing).
There was this patch from Morten:
http://mlmmj.mmj.dk/~mortenp/patch-mlmmj-1.2.12_RC4-gethdrline.diff
--
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
and totally illogical, with just a little bit more effort?"
-- A. P. J.
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: mlmmj-process dies with "free(): invalid next size"
2006-11-10 15:28 mlmmj-process dies with "free(): invalid next size" Christoph Wilke
` (2 preceding siblings ...)
2006-11-12 11:26 ` Mads Martin Joergensen
@ 2006-11-12 15:14 ` Andrea Barisani
2006-11-12 15:19 ` Andrea Barisani
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Andrea Barisani @ 2006-11-12 15:14 UTC (permalink / raw)
To: mlmmj
On Sun, Nov 12, 2006 at 12:26:08PM +0100, Mads Martin Joergensen wrote:
> * Andrea Barisani <lcars@gentoo.org> [Nov 11. 2006 20:54]:
> > > > ps. The versions I used to test weren't patched.
> > >
> > > Can you please try RC4 with the latest patch from Morten?
> >
> > We get this too: mlmmj-process: *** glibc detected *** free():
> > invalid next size (fast): 0x116383a8 ***
> >
> > RC4 doesn't solve the issue (unless there's some patch against it that I'm
> > missing).
>
> There was this patch from Morten:
>
> http://mlmmj.mmj.dk/~mortenp/patch-mlmmj-1.2.12_RC4-gethdrline.diff
>
Applied, let's see what happens. Also today I found to mlmmj-process at 100%
CPU battling with each other. I'll try to debug it if it happens again.
Cheers
> --
> Mads Martin Joergensen, http://mmj.dk
> "Why make things difficult, when it is possible to make them cryptic
> and totally illogical, with just a little bit more effort?"
> -- A. P. J.
--
Andrea Barisani <lcars@gentoo.org> .*.
Gentoo Linux Infrastructure Developer V
( )
PGP-Key 0x864C9B9E http://dev.gentoo.org/~lcars/pubkey.asc ( )
0A76 074A 02CD E989 CE7F AC3F DA47 578E 864C 9B9E ^^_^^
"Pluralitas non est ponenda sine necessitate"
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: mlmmj-process dies with "free(): invalid next size"
2006-11-10 15:28 mlmmj-process dies with "free(): invalid next size" Christoph Wilke
` (3 preceding siblings ...)
2006-11-12 15:14 ` Andrea Barisani
@ 2006-11-12 15:19 ` Andrea Barisani
2006-11-12 21:32 ` Morten K. Poulsen
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Andrea Barisani @ 2006-11-12 15:19 UTC (permalink / raw)
To: mlmmj
On Sun, Nov 12, 2006 at 12:26:08PM +0100, Mads Martin Joergensen wrote:
> * Andrea Barisani <lcars@gentoo.org> [Nov 11. 2006 20:54]:
> > > > ps. The versions I used to test weren't patched.
> > >
> > > Can you please try RC4 with the latest patch from Morten?
> >
> > We get this too: mlmmj-process: *** glibc detected *** free():
> > invalid next size (fast): 0x116383a8 ***
> >
> > RC4 doesn't solve the issue (unless there's some patch against it that I'm
> > missing).
>
> There was this patch from Morten:
>
> http://mlmmj.mmj.dk/~mortenp/patch-mlmmj-1.2.12_RC4-gethdrline.diff
>
> --
> Mads Martin Joergensen, http://mmj.dk
> "Why make things difficult, when it is possible to make them cryptic
> and totally illogical, with just a little bit more effort?"
> -- A. P. J.
Ok I can confirm that with the patch we are still getting the error.
--
Andrea Barisani <lcars@gentoo.org> .*.
Gentoo Linux Infrastructure Developer V
( )
PGP-Key 0x864C9B9E http://dev.gentoo.org/~lcars/pubkey.asc ( )
0A76 074A 02CD E989 CE7F AC3F DA47 578E 864C 9B9E ^^_^^
"Pluralitas non est ponenda sine necessitate"
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: mlmmj-process dies with "free(): invalid next size"
2006-11-10 15:28 mlmmj-process dies with "free(): invalid next size" Christoph Wilke
` (4 preceding siblings ...)
2006-11-12 15:19 ` Andrea Barisani
@ 2006-11-12 21:32 ` Morten K. Poulsen
2006-11-13 15:00 ` Christoph Wilke
2006-11-13 21:30 ` Christoph Wilke
7 siblings, 0 replies; 9+ messages in thread
From: Morten K. Poulsen @ 2006-11-12 21:32 UTC (permalink / raw)
To: mlmmj
Hi Christoph
"Christoph Wilke" <chris@filmkreis.tu-darmstadt.de> wrote:
> # ~/mlmmj/mlmmj-1.2.12-RC4/src/mlmmj-process -L /var/spool/mlmmj/test \
> -m /var/spool/mlmmj/test/incoming/647f4170739768df
> *** glibc detected *** free(): invalid next size (fast): 0x08054a40 ***
> Aborted
Ouch. That smells like a double-free.
> I tested it with the attached mailfile -- error
> the same file, but without the equal signs -- no error
I am unable to reproduce the error with the attached mailfile. The bug might depend on a specific setting. Could you send me (a link to) a tarball of the listdir/control/ directory?
> the same file, but only an equal sign as subject -- error.
There was a bug in cleanquotedp() that would cause it to read past the end of its buffer, if there was an equal sign within the last two bytes of the subject.
I have fixed that issue now:
http://mlmmj.mmj.dk/~mortenp/patch-mlmmj-1.2.12_RC4-cleanquotedp.diff
However, I belive that this is a seperate bug. Was the glibc error message for this case the same as the error message for the first case?
> Further testing/checking showed, the bug was introduced in
> RC3, because RC2 runs just fine.
Strange. I don't see how the change in gethdrline() could have anything to do with this, but I might be wrong.
Could you run this again (with the patch) with Valgrind?
Morten
--
Morten K. Poulsen <morten@afdelingp.dk>
http://www.afdelingp.dk/
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: mlmmj-process dies with "free(): invalid next size"
2006-11-10 15:28 mlmmj-process dies with "free(): invalid next size" Christoph Wilke
` (5 preceding siblings ...)
2006-11-12 21:32 ` Morten K. Poulsen
@ 2006-11-13 15:00 ` Christoph Wilke
2006-11-13 21:30 ` Christoph Wilke
7 siblings, 0 replies; 9+ messages in thread
From: Christoph Wilke @ 2006-11-13 15:00 UTC (permalink / raw)
To: mlmmj
On Sun, November 12, 2006 22:32, Morten K. Poulsen wrote:
>
> Hi Christoph
>
> "Christoph Wilke" <chris@filmkreis.tu-darmstadt.de> wrote:
>> # ~/mlmmj/mlmmj-1.2.12-RC4/src/mlmmj-process -L
>> /var/spool/mlmmj/test \
>> -m /var/spool/mlmmj/test/incoming/647f4170739768df
>> *** glibc detected *** free(): invalid next size (fast): 0x08054a40
>> ***
>> Aborted
>
> Ouch. That smells like a double-free.
>
>> I tested it with the attached mailfile -- error
>> the same file, but without the equal signs -- no error
>
> I am unable to reproduce the error with the attached mailfile. The bug
> might depend on a specific setting. Could you send me (a link to) a
> tarball of the listdir/control/ directory?
I think you are right, strace showed me, it crashes during
the insertion of the prefix.
I forgot to mention this, sorry.
I placed the control directory online here:
https://130.83.185.211/mlmmj/test_control.tar.bz2
>
>> the same file, but only an equal sign as subject -- error.
>
> There was a bug in cleanquotedp() that would cause it to read past the
> end of its buffer, if there was an equal sign within the last two
> bytes of the subject.
>
> I have fixed that issue now:
>
> http://mlmmj.mmj.dk/~mortenp/patch-mlmmj-1.2.12_RC4-cleanquotedp.diff
>
> However, I belive that this is a seperate bug. Was the glibc error
> message for this case the same as the error message for the first
> case?
I will test this later. Not much time at the moment...
>
>> Further testing/checking showed, the bug was introduced in
>> RC3, because RC2 runs just fine.
>
> Strange. I don't see how the change in gethdrline() could have
> anything to do with this, but I might be wrong.
>
> Could you run this again (with the patch) with Valgrind?
I did, and it works now for me.
>
> Morten
Ciao
Chris
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: mlmmj-process dies with "free(): invalid next size"
2006-11-10 15:28 mlmmj-process dies with "free(): invalid next size" Christoph Wilke
` (6 preceding siblings ...)
2006-11-13 15:00 ` Christoph Wilke
@ 2006-11-13 21:30 ` Christoph Wilke
7 siblings, 0 replies; 9+ messages in thread
From: Christoph Wilke @ 2006-11-13 21:30 UTC (permalink / raw)
To: mlmmj
On Mon, November 13, 2006 16:00, Christoph Wilke wrote:
> On Sun, November 12, 2006 22:32, Morten K. Poulsen wrote:
[...]
>>
>>> I tested it with the attached mailfile -- error
>>> the same file, but without the equal signs -- no error
[...]
>>> the same file, but only an equal sign as subject -- error.
>>
>> There was a bug in cleanquotedp() that would cause it to read past
>> the
>> end of its buffer, if there was an equal sign within the last two
>> bytes of the subject.
>>
>> I have fixed that issue now:
>>
>> http://mlmmj.mmj.dk/~mortenp/patch-mlmmj-1.2.12_RC4-cleanquotedp.diff
>>
>> However, I belive that this is a seperate bug. Was the glibc error
>> message for this case the same as the error message for the first
>> case?
>
> I will test this later. Not much time at the moment...
With the full subject I get:
# /root/mlmmj/mlmmj-1.2.12-RC4/src/mlmmj-process -L
/var/spool/mlmmj/test -m
/var/spool/mlmmj/test/incoming/647f4170739768df
*** glibc detected *** free(): invalid next size (normal): 0x08055260 ***
Aborted
#
with the equal sign, it results in:
# /root/mlmmj/mlmmj-1.2.12-RC4/src/mlmmj-process -L
/var/spool/mlmmj/test -m
/var/spool/mlmmj/test/incoming/647f4170739768df
*** glibc detected *** free(): invalid next size (fast): 0x080551c8 ***
Aborted
#
Ciao
Chris
^ permalink raw reply [flat|nested] 9+ messages in thread