"Deepak Gaur" <dgaur@cdotd.ernet.in> writes:
trace -f sylog-ng [...] [pid 547] open("/var/lib/syslog-ng/syslog-ng.persist-", O_RDWR|O_CREAT|O_TRUNC|O_LARGEFILE, 0600) = 8 [pid 547] _llseek(8, 16383, [16383], SEEK_SET) = 0 [pid 547] write(8, "\0", 1) = 1 [pid 547] mmap2(NULL, 16384, PROT_READ|PROT_WRITE, MAP_SHARED, 8, 0) = -1 EINVAL (Invalid argument) [pid 547] write(5, "2\n", 2) = 2 [pid 547] close(5) = 0 [pid 547] exit_group(2) = ?
This appears to be the problem, the mmap() failing. I've no idea why this wouldn't work. My initial suspicion was that the page size on arm is different, and somehow 16384 is not a multiple of that, but I checked a couple of arm/armel systems I have access to, and page size was 4096 on all of them. (Sent a few questions & test programs to Deepak off-list, nevertheless) -- |8]