[Lognorm] Segmentation fault: user-defined type

Adam Williams adam at spreedly.com
Fri Aug 12 16:23:21 CEST 2016


Hello,

I'm seeing a segmentation fault with the following rules file:

```
version=2

type=@sq:%..:string{"quoting.char.begin":"'", "quoting.char.end":"'"}%
type=@event:event=%event:@sq% app=%app:@sq%
type=@desc:description=%desc:string{
  "quoting.mode":"required",
  "quoting.char.begin":"'",
  "quoting.char.end":"'"
}%

rule=: %.:@event% %.:@desc% %-:rest%
```

When I change things to this it works fine:

```
version=2

type=@sq:%..:string{"quoting.char.begin":"'", "quoting.char.end":"'"}%
type=@event:event=%event:@sq% app=%app:@sq%

rule=: %.:@event% description=%desc:string{
  "quoting.mode":"required",
  "quoting.char.begin":"'",
  "quoting.char.end":"'"
}% %-:rest%
```

Am I doing something wrong, is there a need to verify what libraries are
executing, or should I report this as a bug?

Thanks!

Adam


  rsyslog 8.20.0-0adiscon3trusty1
  libfastjson4 0.99.3-adiscon4trusty
  liblognorm5 2.0.1-1adiscon3trusty1
  rsyslog-mmnormalize 8.20.0-0adiscon3trusty1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.adiscon.net/pipermail/lognorm/attachments/20160812/01ace385/attachment.html>


More information about the Lognorm mailing list