[syslog-ng] SYSLOG-NG 3.4 exiting with error code 2

Deepak Gaur dgaur at cdotd.ernet.in
Tue Nov 27 12:18:41 CET 2012


 Hello,

 I have cross-compiled syslog-ng for ARM target but it is exiting without showing any 
 error code (on target). I am attaching strace output (syslog.txt). If anyone can help
me out

 # syslog-ng -V    
 syslog-ng 3.4.0alpha3 
 Installer-Version: 3.4.0alpha3 
 Revision: 
 ssh+git://bazsi@git.balabit//var/scm/git/syslog-ng/syslog-ng-ose--mainline--3.4#master#709ab1252920063e6d4d0d610ad5c1ee5ebdfb75

 Compile-Date: Nov 27 2012 14:59:53 
 Available-Modules: 
 syslogformat,afsocket-notls,afuser,basicfuncs,confgen,dbparser,tfuuid,afmongodb,afsocket-tls,afprog,afsocket,affile,csvparser

 Enable-Debug: off 
 Enable-GProf: off 
 Enable-Memtrace: off 
 Enable-IPv6: on 
 Enable-Spoof-Source: on 
 Enable-TCP-Wrapper: off 
 Enable-Linux-Caps: off 
 Enable-Pcre: on

 STRACE OUTPUT 
------------------------ 
strace syslog-ng 
execve("/sbin/syslog-ng", ["syslog-ng"], [/* 15 vars */]) = 0 
brk(0)                                  = 0x13000 
uname({sys="Linux", node="192.168.119.78", ...}) = 0 
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001d000 
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory) 
open("/home/tbfsh/target//lib/tls/v5l/fast-mult/half/libsyslog-ng-3.4.0alpha3.so",
O_RDONLY) = -1 ENOENT (No such file or directory) 
stat64("/home/tbfsh/target//lib/tls/v5l/fast-mult/half", 0x8ec40470) = -1 ENOENT (No
such file or directory) 
open("/home/tbfsh/target//lib/tls/v5l/fast-mult/libsyslog-ng-3.4.0alpha3.so", O_RDONLY)
= -1 ENOENT (No such file or directory) 
stat64("/home/tbfsh/target//lib/tls/v5l/fast-mult", 0x8ec40470) = -1 ENOENT (No such
file or directory) 
open("/home/tbfsh/target//lib/tls/v5l/half/libsyslog-ng-3.4.0alpha3.so", O_RDONLY) = -1
ENOENT (No such file or directory) 
stat64("/home/tbfsh/target//lib/tls/v5l/half", 0x8ec40470) = -1 ENOENT (No such file or
directory) 
open("/home/tbfsh/target//lib/tls/v5l/libsyslog-ng-3.4.0alpha3.so", O_RDONLY) = -1
ENOENT (No such file or directory) 
stat64("/home/tbfsh/target//lib/tls/v5l", 0x8ec40470) = -1 ENOENT (No such file or
directory) 
open("/home/tbfsh/target//lib/tls/fast-mult/half/libsyslog-ng-3.4.0alpha3.so", O_RDONLY)
= -1 ENOENT (No such file or directory) 
stat64("/home/tbfsh/target//lib/tls/fast-mult/half", 0x8ec40470) = -1 ENOENT (No such
file or directory) 
open("/home/tbfsh/target//lib/tls/fast-mult/libsyslog-ng-3.4.0alpha3.so", O_RDONLY) = -1
ENOENT (No such file or directory) 
stat64("/home/tbfsh/target//lib/tls/fast-mult", 0x8ec40470) = -1 ENOENT (No such file or
directory) 
open("/home/tbfsh/target//lib/tls/half/libsyslog-ng-3.4.0alpha3.so", O_RDONLY) = -1
ENOENT (No such file or directory) 
stat64("/home/tbfsh/target//lib/tls/half", 0x8ec40470) = -1 ENOENT (No such file or
directory) 
open("/home/tbfsh/target//lib/tls/libsyslog-ng-3.4.0alpha3.so", O_RDONLY) = -1 ENOENT
(No such file or directory) 
stat64("/home/tbfsh/target//lib/tls", 0x8ec40470) = -1 ENOENT (No such file or directory) 
open("/home/tbfsh/target//lib/v5l/fast-mult/half/libsyslog-ng-3.4.0alpha3.so", O_RDONLY)
= -1 ENOENT (No such file or directory) 
stat64("/home/tbfsh/target//lib/v5l/fast-mult/half", 0x8ec40470) = -1 ENOENT (No such
file or directory) 
open("/home/tbfsh/target//lib/v5l/fast-mult/libsyslog-ng-3.4.0alpha3.so", O_RDONLY) = -1
ENOENT (No such file or directory) 
stat64("/home/tbfsh/target//lib/v5l/fast-mult", 0x8ec40470) = -1 ENOENT (No such file or
directory) 
open("/home/tbfsh/target//lib/v5l/half/libsyslog-ng-3.4.0alpha3.so", O_RDONLY) = -1
ENOENT (No such file or directory) 
stat64("/home/tbfsh/target//lib/v5l/half", 0x8ec40470) = -1 ENOENT (No such file or
directory) 
open("/home/tbfsh/target//lib/v5l/libsyslog-ng-3.4.0alpha3.so", O_RDONLY) = -1 ENOENT
(No such file or directory) 
stat64("/home/tbfsh/target//lib/v5l", 0x8ec40470) = -1 ENOENT (No such file or directory) 
open("/home/tbfsh/target//lib/fast-mult/half/libsyslog-ng-3.4.0alpha3.so", O_RDONLY) =
-1 ENOENT (No such file or directory) 
stat64("/home/tbfsh/target//lib/fast-mult/half", 0x8ec40470) = -1 ENOENT (No such file
or directory) 
open("/home/tbfsh/target//lib/fast-mult/libsyslog-ng-3.4.0alpha3.so", O_RDONLY) = -1
ENOENT (No such file or directory) 
stat64("/home/tbfsh/target//lib/fast-mult", 0x8ec40470) = -1 ENOENT (No such file or
directory) 
open("/home/tbfsh/target//lib/half/libsyslog-ng-3.4.0alpha3.so", O_RDONLY) = -1 ENOENT
(No such file or directory) 
stat64("/home/tbfsh/target//lib/half", 0x8ec40470) = -1 ENOENT (No such file or directory) 
open("/home/tbfsh/target//lib/libsyslog-ng-3.4.0alpha3.so", O_RDONLY) = -1 ENOENT (No
such file or directory) 
stat64("/home/tbfsh/target//lib", 0x8ec40470) = -1 ENOENT (No such file or directory) 
open("/etc/ld.so.cache", O_RDONLY)      = 3 
fstat64(3, {st_mode=S_IFREG|0644, st_size=10371, ...}) = 0 
mmap2(NULL, 10371, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001e000 
close(3)                                = 0 
open("/lib/libsyslog-ng-3.4.0alpha3.so", O_RDONLY) = 3 
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\3407\1\0004\0\0\0"..., 512) = 512 
fstat64(3, {st_mode=S_IFREG|0755, st_size=1513316, ...}) = 0 
mmap2(NULL, 496856, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40026000 
mprotect(0x40093000, 28672, PROT_NONE)  = 0 
mmap2(0x4009a000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3,
0x6c) = 0x4009a000 
mmap2(0x4009f000, 1240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1,
0) = 0x4009f000 
close(3)                                = 0 
open("/lib/libnsl.so.1", O_RDONLY)      = 3 
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0004/\0\0004\0\0\0"..., 512) = 512 
fstat64(3, {st_mode=S_IFREG|0755, st_size=98605, ...}) = 0 
mmap2(NULL, 116464, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x400a0000 
mprotect(0x400b2000, 28672, PROT_NONE)  = 0 
mmap2(0x400b9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3,
0x11) = 0x400b9000 
mmap2(0x400bb000, 5872, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1,
0) = 0x400bb000 
close(3)                                = 0 
open("/lib/libgmodule-2.0.so.0", O_RDONLY) = 3 
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0@\r\0\0004\0\0\0"..., 512) = 512 
fstat64(3, {st_mode=S_IFREG|0755, st_size=18254, ...}) = 0 
mmap2(NULL, 45268, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x400bd000 
mprotect(0x400c0000, 28672, PROT_NONE)  = 0 
mmap2(0x400c7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3,
0x2) = 0x400c7000 
close(3)                                = 0 
open("/lib/libgthread-2.0.so.0", O_RDONLY) = 3 
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0000\5\0\0004\0\0\0"..., 512) = 512 
fstat64(3, {st_mode=S_IFREG|0755, st_size=7368, ...}) = 0 
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40021000 
mmap2(NULL, 36912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x400c9000 
mprotect(0x400ca000, 28672, PROT_NONE)  = 0 
mmap2(0x400d1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0)
= 0x400d1000 
close(3)                                = 0 
open("/lib/librt.so.1", O_RDONLY)       = 3 
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\300\26\0\0004\0\0\0"..., 512) = 512 
fstat64(3, {st_mode=S_IFREG|0755, st_size=39970, ...}) = 0 
mmap2(NULL, 57872, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x400d3000 
mprotect(0x400d9000, 28672, PROT_NONE)  = 0 
mmap2(0x400e0000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3,
0x5) = 0x400e0000 
close(3)                                = 0 
open("/lib/libglib-2.0.so.0", O_RDONLY) = 3 
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\270D\1\0004\0\0\0"..., 512) = 512 
fstat64(3, {st_mode=S_IFREG|0755, st_size=1762078, ...}) = 0 
mmap2(NULL, 1584268, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x400e2000 
mprotect(0x4025c000, 28672, PROT_NONE)  = 0 
mmap2(0x40263000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3,
0x179) = 0x40263000 
close(3)                                = 0 
open("/lib/libevtlog.so.0", O_RDONLY)   = 3 
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\300\20\0\0004\0\0\0"..., 512) = 512 
fstat64(3, {st_mode=S_IFREG|0755, st_size=23326, ...}) = 0 
mmap2(NULL, 49472, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40265000 
mprotect(0x40269000, 28672, PROT_NONE)  = 0 
mmap2(0x40270000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3,
0x3) = 0x40270000 
close(3)                                = 0 
open("/lib/libpcre.so.1", O_RDONLY)     = 3 
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\250\16\0\0004\0\0\0"..., 512) = 512 
fstat64(3, {st_mode=S_IFREG|0755, st_size=177343, ...}) = 0 
mmap2(NULL, 200880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40272000 
mprotect(0x4029b000, 28672, PROT_NONE)  = 0 
mmap2(0x402a2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3,
0x28) = 0x402a2000 
close(3)                                = 0 
open("/lib/libdl.so.2", O_RDONLY)       = 3 
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\34\t\0\0004\0\0\0"..., 512) = 512 
fstat64(3, {st_mode=S_IFREG|0755, st_size=15728, ...}) = 0 
mmap2(NULL, 41136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x402a4000 
mprotect(0x402a6000, 28672, PROT_NONE)  = 0 
mmap2(0x402ad000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3,
0x1) = 0x402ad000 
close(3)                                = 0 
open("/lib/libpthread.so.0", O_RDONLY)  = 3 
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\330B\0\0004\0\0\0"..., 512) = 512 
fstat64(3, {st_mode=S_IFREG|0755, st_size=126565, ...}) = 0 
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40022000 
mmap2(NULL, 123376, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x402af000 
mprotect(0x402c3000, 28672, PROT_NONE)  = 0 
mmap2(0x402ca000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3,
0x13) = 0x402ca000 
mmap2(0x402cc000, 4592, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1,
0) = 0x402cc000 
close(3)                                = 0 
open("/lib/libc.so.6", O_RDONLY)        = 3 
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\330Q\1\0004\0\0\0"..., 512) = 512 
fstat64(3, {st_mode=S_IFREG|0755, st_size=1498068, ...}) = 0 
mmap2(NULL, 1217048, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x402ce000 
mprotect(0x403eb000, 28672, PROT_NONE)  = 0 
mmap2(0x403f2000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3,
0x11c) = 0x403f2000 
mmap2(0x403f5000, 8728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1,
0) = 0x403f5000 
close(3)                                = 0 
open("/lib/libiconv.so.2", O_RDONLY)    = 3 
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\230\22\0\0004\0\0\0"..., 512) = 512 
fstat64(3, {st_mode=S_IFREG|0644, st_size=1061246, ...}) = 0 
mmap2(NULL, 1048764, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x403f8000 
mprotect(0x404f0000, 28672, PROT_NONE)  = 0 
mmap2(0x404f7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3,
0xf7) = 0x404f7000 
close(3)                                = 0 
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40023000 
mmap2(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x404f9000 
set_tls(0x404f94a0, 0x40025674, 0x404fb5c8, 0x40025048, 0x40025048) = 0 
mprotect(0x404f7000, 4096, PROT_READ)   = 0 
mprotect(0x403f2000, 8192, PROT_READ)   = 0 
mprotect(0x402ca000, 4096, PROT_READ)   = 0 
mprotect(0x402ad000, 4096, PROT_READ)   = 0 
mprotect(0x402a2000, 4096, PROT_READ)   = 0 
mprotect(0x40270000, 4096, PROT_READ)   = 0 
mprotect(0x40263000, 4096, PROT_READ)   = 0 
mprotect(0x400e0000, 4096, PROT_READ)   = 0 
mprotect(0x400d1000, 4096, PROT_READ)   = 0 
mprotect(0x400c7000, 4096, PROT_READ)   = 0 
mprotect(0x400b9000, 4096, PROT_READ)   = 0 
mprotect(0x4009a000, 8192, PROT_READ)   = 0 
mprotect(0x11000, 4096, PROT_READ)      = 0 
mprotect(0x40024000, 4096, PROT_READ)   = 0 
munmap(0x4001e000, 10371)               = 0 
set_tid_address(0x404f9048)             = 577 
set_robust_list(0x404f9050, 12)         = 0 
rt_sigaction(SIGRTMIN, {0x402b31e8, [], SA_SIGINFO|0x4000000}, NULL, 8) = 0 
rt_sigaction(SIGRT_1, {0x402b2cb8, [], SA_RESTART|SA_SIGINFO|0x4000000}, NULL, 8) = 0 
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0 
brk(0)                                  = 0x13000 
brk(0x34000)                            = 0x34000 
gettimeofday({973374482, 838271}, NULL) = 0 
open("/proc/stat", O_RDONLY)            = 3 
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001e000 
read(3, "cpu  507 0 15055 364178 0 13 4 0"..., 1024) = 355 
read(3, "", 1024)                       = 0 
close(3)                                = 0 
munmap(0x4001e000, 4096)                = 0 
open("/proc/stat", O_RDONLY)            = 3 
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001e000 
read(3, "cpu  507 0 15055 364205 0 13 4 0"..., 1024) = 355 
read(3, "", 1024)                       = 0 
close(3)                                = 0 
munmap(0x4001e000, 4096)                = 0 
ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 opost
isig icanon echo ...}) = 0 
ioctl(0, TIOCNOTTY)                     = 0 
setsid()                                = 577 
setrlimit(RLIMIT_NOFILE, {rlim_cur=4*1024, rlim_max=4*1024}) = 0 
pipe([3, 4])                            = 0 
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x404f9048) = 578 
close(4)                                = 0 
read(3, "2\n", 6)                       = 2 
close(3)                                = 0 
exit_group(2)                           = ? 
+++ exited with 2 +++

 --------------------------------------------------------------------------------

What could be the issue?

Deepak Gaur



More information about the syslog-ng mailing list