<div dir="ltr"><div class="gmail_extra">On 9 August 2013 21:05, Yuki Matsushita <span dir="ltr"><<a href="mailto:matsushy@creo.co.jp" target="_blank">matsushy@creo.co.jp</a>></span> wrote:<br><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">> I'm guessing, from reading the code, that I could work around this by<br>


> always have exactly the same number of "trigger" lines as "ignore" lines -<br>
> perhaps padding out with bogus "trigger" or "ignore" lines.<br>
<br></div>
Thanks for analysing this issue. I think so too.<br></blockquote></div><br>Yes, and no.  It now goes past the code with the typo.  However, it now dumps core when it actually uses the trigger and the number of bytes in matching lines is large.  gdb tells me that it fails in line 315, in the logdata() function:</div>

<div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">      memmove(triggerendpos, skipend, bytesleft);</div><div class="gmail_extra"><br></div><div class="gmail_extra">If I push out the filesize limit to the max (1024k) then this line doesn't get executed and no more segfault.  But I think I'm just being lucky that the volume of matching lines is less than 100k, and if it reached 100k, I'd be getting the segfault again.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">So, still a problem, just a different one.  And this code is waaaay too complicated for me to grok.</div><div class="gmail_extra"><br></div><div class="gmail_extra">

J</div><div class="gmail_extra"><br></div></div></div>