penlogd coredumps on freebsd-stable

From: Stephan Eckner (stephan-pen@eckner.org)
Date: Fri Oct 17 2003 - 13:13:30 CEST


Hi,

I installed both the freebsd port (0.10.0) and version 0.11.0 from source
(without any configure options). I started penlogd with

mgmt# penlogd -l /var/log/access_log -p /var/run/penlogd.pid 10000

as mentioned in the man page. Upon receiving the first udp packages from
webserver/loadbalancer, penlogd coredumps. Here the strace output:

mgmt# strace penlogd -f -l /var/log/access_log -p /var/run/penlogd.pid 10000
execve("/usr/local/bin/penlogd", ["penlogd", "-f", "-l", "/var/log/access_log", "-p", "/var/run/penlogd.pid", "10000"], [/* 36 vars */]) = 0
mmap(0, 1976, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0) = 0x2805f000
munmap(0x2805f000, 1976) = 0
__sysctl([hw.pagesize], 2, "\0\20\0\0", [4], NULL, 0) = 0
mmap(0, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0x2805f000
geteuid(0xbfbff9c4) = 0
getuid() = 0 (euid 0)
getegid(0xbfbff9c4) = 0
getgid() = 0 (egid 0)
open("/var/run/ld-elf.so.hints", O_RDONLY) = 3
read(3, "Ehnt\1\0\0\0\200\0\0\0007\0\0\0\0\0\0\0006\0\0\0\0\0\0"..., 128) = 128
lseek(3, 549755813888, SEEK_SET) = 128
read(3, "/usr/lib:/usr/lib/compat:/usr/X1"..., 55) = 55
close(3) = 0
access("/usr/lib/libc.so.4", F_OK) = 0
open("/usr/lib/libc.so.4", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=578076, ...}) = 0
read(3, "\177ELF\1\1\1\t\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\224\'\1"..., 4096) = 4096
mmap(0, 626688, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_NOCORE, 3, 0) = 0x28067000
mprotect(0x280e8000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x280e8000, 4096, PROT_READ|PROT_EXEC) = 0
mmap(0x280e9000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x8100000000000) = 0x280e9000
mmap(0x280ee000, 73728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0x280ee000
close(3) = 0
mmap(0, 432, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0) = 0x28100000
munmap(0x28100000, 432) = 0
mmap(0, 13312, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0) = 0x28100000
munmap(0x28100000, 13312) = 0
sigaction(SIGILL, {0x2804f830, [], 0}, {SIG_DFL}) = 0
sigprocmask(SIG_BLOCK, NULL, []) = 0
sigaction(SIGILL, {SIG_DFL}, NULL) = 0
sigprocmask(SIG_BLOCK, ~[ILL TRAP ABRT EMT FPE BUS SEGV SYS], []) = 0
sigprocmask(SIG_SETMASK, [], NULL) = 0
readlink("/etc/malloc.conf", 0xbfbff4c0, 63) = -1 ENOENT (No such file or directory)
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0x28100000
break(0x804c000) = 0
break(0x807e000) = 0
open("/var/log/access_log", O_WRONLY|O_APPEND|O_CREAT, 0666) = 3
lseek(3, 0, SEEK_END) = 0
open("/var/run/penlogd.pid", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
getpid() = 37262 (ppid 37261)
fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
break(0x8082000) = 0
write(4, "37262", 5) = 5
close(4) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
bind(4, {sin_family=AF_INET, sin_port=htons(10000), sin_addr=inet_addr("0.0.0.0")}}, 16) = 0
getsockname(4, {sin_family=AF_INET, sin_port=htons(10000), sin_addr=inet_addr("0.0.0.0")}}, [16]) = 0
sigaction(SIGHUP, {0x8048dd0, [], SA_RESTART}, {SIG_DFL}) = 0
sigaction(SIGTERM, {0x8048df4, [], SA_RESTART}, {SIG_DFL}) = 0
recvfrom(4,

<--now i press 'reload' in my browser-->

"+ 10.0.8.2 10.0.8.4 GET /index.h"..., 1024, 0, {sin_family=AF_INET, sin_port=htons(1084), sin_addr=inet_addr("10.0.8.211")}}, [16]) = 45
gettimeofday({1066388099, 232959}, NULL) = 0
getpid() = 37262 (ppid 37261)
issetugid(0x280ec7cc) = 0
open("/etc/resolv.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
__sysctl([kern.hostname], 2, "mgmt.ews.biotronik.de\0", [22], NULL, 0) = 0
issetugid(0x280ec7cc) = 0
open("/etc/host.conf", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=206, ...}) = 0
read(5, "# $FreeBSD: src/etc/host.conf,v "..., 16384) = 206
read(5, "", 16384) = 0
close(5) = 0
open("/etc/hosts", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=1552, ...}) = 0
read(5, "#\n# hosts This file desc"..., 16384) = 1552
read(5, "", 16384) = 0
close(5) = 0
--- SIGSEGV (Segmentation fault) ---
--- SIGSEGV (Segmentation fault) ---

Please tell me, if you need more information about my configuration or
if I can help you otherwise.

Stephan

-- 
Stephan Eckner                                        http://www.eckner.org/



This archive was generated by hypermail 2.1.2 : Fri Oct 17 2003 - 13:13:31 CEST