On 2022-12-05, Jeremy Harris via Exim-users <exim-users@???> wrote:
> On 05/12/2022 23:31, Jasen Betts via Exim-users wrote:
>> I'm getting this error panic
>> "bad memory reference; pool not found, at gstring_grow 1124"
>>
>> at a acl logwrite in an ${acl expansion in a router
>>
>> the logwrite is over-size and thus truncated in the debug message
>>
>> then it crashes.
>>
>> it seems to happen failry rarely, maybe 1 in 10000 emails on this
path.
>>
>
> version, ops in progress... core dump?
> --
> Cheers,
> Jeremy
>
debian backports' exinm-daemon-heavy 4.96
It's caused by caused by a logwrite of exactly 8153
characters (must be exact) in a context where exim_message_id is defined.
eg put this:
logwrite = ${sg{${sg{${sg{aaa}{a}{bbbbbbbbbbb}}}{b}{ccccccccccccc}}}{c}{ddddddddddddddddddd}}zz
in the data ACL
so the line it would write would start with
YYYY-MM-DD HH:MM:SS_IDIDID-IDIDID-ID_
----+----1----+----2----+----3----+--
making exactly 8153+37 = 8190 characters not including the newline.
--
Jasen.