-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault while reading log message value parsed via PatternDB from Python template #1690
Comments
Update: Tried it with 3.12 but the issue still exists. |
@siliconbrain : How did you configure syslog-ng? Did you specify Python version (eg.: |
@siliconbrain : something was misconfigured in my test env, bug is confirmed.
|
The problem is with this line: const gchar *value = log_msg_get_value(py_msg->msg, handle, NULL); At the end we are trying to dereference a NULL. |
syslog-ng
Version of syslog-ng
Platform
CentOS Linux release 7.3.1611 (Core)
Issue
Failure
Syslog-ng segfaults while trying to read a macro value inside a Python template function if the value was parsed using PatternDB.
Steps to reproduce
copy files from GIST to
/etc/syslog-ng/conf.d
make sure Python module is available
start syslog-ng
wait for it! (maybe create a new line in the source file matching the template)
Configuration
Copy these into
/etc/syslog-ng/conf.d
: https://gist.github.com/siliconbrain/4790de2362ed8aca9af878297dfecbf9Input and output logs (if possible)
The text was updated successfully, but these errors were encountered: