OH! Ok, then! :) Is it particular to that regex, or to not finding results?
(Am I going to have the same problem with the first regex, albeit at a slower
rate because it works better?)
Thanks!
Robert
> Date: Sat, 26 Oct 2013 02:51:10 +0400
> From: [email protected]
> To: [email protected]
> Subject: Re: [rsyslog] Potential memory leak with re_extract()?
>
>
> Yes, it has been fixed yesterday.
>
>
> --
> Pavel Levshin
>
> 26.10.2013 2:42, Robert McIntyre:
> > Hello, all!
> >
> > I've been working with re_extract() as part of my destination
> > load-balancing efforts. I've got these two lines:
> >
> > set $!msgid = re_extract($msg, "
> > srcname=[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.([0-9]{1,3}) ", 0, 1, "Unk");
> >
> > set $!msgid = re_extract($msg, "
> > srcname=\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.(\\d{1,3}) ", 0, 1, "Unk");
> >
> > If I use the first one, I get steady memory usage, and it actually returns
> > results like it should. If I use the second, it doesn't return any
> > results, and it has ever-increasing until it crashes memory usage.
> >
> > Even if I got the actual syntax wrong so it doesn't find any matches, it
> > seems like it shouldn't run out of memory and crash. :) This is on 7.4.5.
> >
> > Thanks!
> > Robert
> >
> > _______________________________________________
> > rsyslog mailing list
> > http://lists.adiscon.net/mailman/listinfo/rsyslog
> > http://www.rsyslog.com/professional-services/
> > What's up with rsyslog? Follow https://twitter.com/rgerhards
> > NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
> > sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T
> > LIKE THAT.
>
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com/professional-services/
> What's up with rsyslog? Follow https://twitter.com/rgerhards
> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
> sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T
> LIKE THAT.
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.