[prev in list] [next in list] [prev in thread] [next in thread] 

List:       syslog-ng
Subject:    [syslog-ng] [Bug 176] New: iv_event_raw module doesn't work on mips64el n32, missing include
From:       bugzilla () bugzilla ! balabit ! com
Date:       2012-04-30 14:22:59
Message-ID: bug-176-3 () https ! bugzilla ! balabit ! com/
[Download RAW message or body]

https://bugzilla.balabit.com/show_bug.cgi?id=176

           Summary: iv_event_raw module doesn't work on mips64el n32,
                    missing include
           Product: syslog-ng
           Version: 3.3.x
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: unspecified
         Component: syslog-ng
        AssignedTo: bazsi@balabit.hu
        ReportedBy: mads@ab3.no
Type of the Report: bug
   Estimated Hours: 0.0


Created an attachment (id=57)
 --> (https://bugzilla.balabit.com/attachment.cgi?id=57)
iv_event_raw.c patch, missing include

I have a Lemote Fuloong 2F mips64el (n32) machine running Gentoo, the uname looks \
like this:

Linux Lemote 3.3.0 #5 PREEMPT Wed Apr 18 13:25:19 CEST 2012 mips64 ICT Loongson-2 \
V0.3 FPU V0.1 lemote-fuloong-2f-box GNU/Linux

This machine doesn't get updated that often, so I didn't discover that syslog-ng \
didn't work before I updated syslog-ng to version 3.3.4 and then later 3.3.5 \
recently. Tested with glibc 2.14 and 2.15. Running syslog-ng -d:

eventfd2: Invalid argument
Trying to open module; module='affile', filename='/usr/lib32/syslog-ng/libaffile.so'
Trying to open module; module='afprog', filename='/usr/lib32/syslog-ng/libafprog.so'
Trying to open module; module='afsocket', \
filename='/usr/lib32/syslog-ng/libafsocket.so' Trying to open module; \
module='afuser', filename='/usr/lib32/syslog-ng/libafuser.so' Trying to open module; \
module='basicfuncs', filename='/usr/lib32/syslog-ng/libbasicfuncs.so' Trying to open \
module; module='csvparser', filename='/usr/lib32/syslog-ng/libcsvparser.so' Trying to \
open module; module='dbparser', filename='/usr/lib32/syslog-ng/libdbparser.so' Trying \
to open module; module='syslogformat', \
filename='/usr/lib32/syslog-ng/libsyslogformat.so' Running application hooks; \
hook='1' Running application hooks; hook='3'
syslog-ng starting up; version='3.3.5'
eventfd2: Invalid argument
eventfd2: Invalid argument
eventfd2: Invalid argument
eventfd2: Invalid argument
eventfd2: Invalid argument
Segmentation fault

I checked the file lib/ivykis/modules/iv_event_raw.c as it was the only file calling \
the eventfd2 syscall, and I noticed that it defines EFD_NONBLOCK and EFD_CLOEXEC if \
it's not already defined by the includes. I then noticed the values existed in \
<sys/eventfd.h>, and that the values in that file were other values that the ones \
defined in iv_event_raw.c. So I just included <sys/eventfd.h>, and that fixed the \
problem.

Attaching a patch fixing the problem for me.


-- 
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic