[syslog-ng] [Bug 176] New: iv_event_raw module doesn't work on mips64el n32, missing include

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Mon Apr 30 16:22:59 CEST 2012


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 at balabit.hu
        ReportedBy: mads at 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.


More information about the syslog-ng mailing list