Hi,

   I'm having an issue with = relayd on a freebsd 8.2

   I'm trying to create a lo= adbalancer for dns following example 4 on
   this page:

   [1]https://calomel.org/relayd.html ( I did modify the servers= to be
   the correct one I have)


   I installed relayd from ports a= nd did a make install clean
   distclean.


   I have created a rule that forw= ards dns traffic to port 8053 and it
   works.

   The problem is when using the d= ns protocol relayd crashes with a
   signal 11 when it gets a request.

   Removing the dns protocol and t= hereby makes relayd to listen on tcp
   works like a charm. And it doesn'= ;t crash.


   The uname -a gives the fo= llowing:

   FreeBSD traficman.csis.local 8.= 2-RELEASE FreeBSD 8.2-RELEASE #0: Thu
   Feb 17 02:41:51 UTC 2011  &= nbsp;
   [email protected]:/usr/obj/usr/src/sys/GENERIC  a= md64

   It's a virtual machine ru= nning on a KVM though QEMU (or so I'm
   told.)


   I have attached a text file con= taining the lines in the messages log
   as well as truss output from the proc= esses when crashing.


   It's my hope that you eit= her can give me a quick fix or at least
   tell me to give it up. J



   M= ed venlig hilsen / Kind regards

    <= /span>

   System Administrator



   3D"Description: 
   CSIS Security Group A/S

    = ;

   Knabrostræde 3A

   DK-= 1210 København K
   CSIS: (+45) = ;8813 6030   -   E-mail: [email protected]

   Mobi= l: (+45) 6011 5613   -  Web:  www.csis.dk

References

   1. 3D"https://calomel.org/
logfile:

Jun 22 14:23:01 traficman kernel: pid 9869 (relayd), uid 913: exited on signal 
11
Jun 22 14:23:01 traficman relayd[9862]: lost child: hce exited okay
Jun 22 14:23:01 traficman relayd[9862]: lost child: pfe exited okay


truss

parent:

traficman# truss -p 1695
clock_gettime(4,{3294.997021675 })               = 0 (0x0)
kevent(44,{},0,{0xe,EVFILT_READ,EV_ONESHOT|EV_EOF,0,0x0,0x8010e63c8},256,0x0) = 
1 (0x1)
SIGNAL 20 (SIGCHLD)
sigreturn(0x7fffffffdd20,0x1,0x7fffffffdd20,0x801000200,0x100,0x0) = 1 (0x1)
SIGNAL 20 (SIGCHLD)
sigreturn(0x7fffffffdd20,0x1,0x7fffffffdd20,0x801000200,0x100,0x0) = 1 (0x1)
clock_gettime(4,{3309.226284333 })               = 0 (0x0)
recvmsg(0xe,0x7fffffffe050,0x0,0x0,0x100,0x0)    = 0 (0x0)
kevent(44,{},0,{0x10,EVFILT_READ,EV_ONESHOT|EV_EOF,0,0x0,0x801084048 
0x14,EVFILT_SIGNAL,EV_CLEAR,0,0x2,0x80106b458 
0x4,EVFILT_READ,EV_ONESHOT|EV_EOF,0,0x0,0x801095048},256,{0.000000000 }) = 3 
(0x3)
clock_gettime(4,{3309.228110542 })               = 0 (0x0)
recvmsg(0x10,0x7fffffffe050,0x0,0x0,0x100,0x7fffffffe170) = 0 (0x0)
wait4(0xffffffff,0x7fffffffe17c,0x1,0x0,0x0,0x801035240) = 1697 (0x6a1)
clock_gettime(13,{1308750301.000000000 })        = 0 (0x0)
getpid()                                         = 1695 (0x69f)
sendto(3,"<26>Jun 22 13:45:01 relayd[1695]"...,61,0x0,NULL,0x0) = 61 (0x3d)
wait4(0xffffffff,0x7fffffffe17c,0x1,0x0,0x0,0x0) = 1696 (0x6a0)
clock_gettime(13,{1308750301.000000000 })        = 0 (0x0)
getpid()                                         = 1695 (0x69f)
sendto(3,"<26>Jun 22 13:45:01 relayd[1695]"...,61,0x0,NULL,0x0) = 61 (0x3d)
wait4(0xffffffff,0x7fffffffe17c,0x1,0x0,0x0,0x0) = 0 (0x0)
kill(-1695,SIGTERM)                              = 0 (0x0)
SIGNAL 15 (SIGTERM)
sigreturn(0x7fffffffdcf0,0x10001,0x7fffffffdcf0,0x2,0x0,0x0) = 0 (0x0)
kill(-1697,SIGTERM)                              ERR#3 'No such process'
kill(-1698,SIGTERM)                              = 0 (0x0)
kill(-1696,SIGTERM)                              ERR#3 'No such process'
wait4(0xffffffff,0x0,0x0,0x0,0x0,0x0)            = 7 (0x7)
SIGNAL 20 (SIGCHLD)
sigreturn(0x7fffffffdcf0,0x1,0x7fffffffdcf0,0x0,0x0,0x0) = 7 (0x7)
wait4(0xffffffff,0x0,0x0,0x0,0x0,0x0)            = 1698 (0x6a2)
wait4(0xffffffff,0x0,0x0,0x0,0x0,0x0)            ERR#10 'No child processes'
close(4)                                         = 0 (0x0)
close(6)                                         = 0 (0x0)
close(8)                                         = 0 (0x0)
close(10)                                        = 0 (0x0)
close(12)                                        = 0 (0x0)
close(14)                                        = 0 (0x0)
close(16)                                        = 0 (0x0)
unlink("/var/run/relayd.sock")                   = 0 (0x0)
getpid()                                         = 1695 (0x69f)
clock_gettime(13,{1308750301.000000000 })        = 0 (0x0)
getpid()                                         = 1695 (0x69f)
sendto(3,"<30>Jun 22 13:45:01 relayd[1695]"...,62,0x0,NULL,0x0) = 62 (0x3e)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
 = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0)                 = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
 = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0)                 = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
 = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0)                 = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
 = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0)                 = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
 = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0)                 = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
 = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0)                 = 0 (0x0)
process exit, rval = 0



pfe:

clock_gettime(4,{3111.907046273 })               = 0 (0x0)
close(-1)                                        ERR#9 'Bad file descriptor'
getpid()                                         = 1579 (0x62b)
clock_gettime(13,{1308750104.000000000 })        = 0 (0x0)
getpid()                                         = 1579 (0x62b)
sendto(3,"<30>Jun 22 13:41:44 relayd[1579]"...,55,0x0,NULL,0x0) = 55 (0x37)


hce:

clock_gettime(13,{1308750180.000000000 })        = 0 (0x0)
getpid()                                         = 1607 (0x647)
sendto(3,"<30>Jun 22 13:43:00 relayd[1607]"...,55,0x0,NULL,0x0) = 55 (0x37)
process exit, rval = 0


relayd child process 1:

clock_gettime(4,{3220.136364524 })               = 0 (0x0)
kevent(44,{},0,{0x4,EVFILT_READ,0x0,0,0x28,0x801122e40},64,{49.158738000 }) = 1 
(0x1)
clock_gettime(4,{3223.807772203 })               = 0 (0x0)
recvfrom(4,"\0\^V\^A\0\0\^A\0\0\0\0\0\0\aexa"...,65535,0x0,{ AF_INET 
192.168.64.154:50758 },0x7ffffffedc3c) = 40 (0x28)
gettimeofday({1308750216.316883 },0x0)           = 0 (0x0)
gettimeofday({1308750216.317987 },0x0)           = 0 (0x0)
socket(PF_INET,SOCK_DGRAM,17)                    = 5 (0x5)
fcntl(5,F_SETFL,O_NONBLOCK)                      = 0 (0x0)
sendto(5,"\M-^\M-?\^A\0\0\^A\0\0\0\0\0\0\a"...,40,0x0,{ AF_INET 
192.168.203.51:53 },0x10) = 40 (0x28)
gettimeofday({1308750216.320843 },0x0)           = 0 (0x0)
SIGNAL 11 (SIGSEGV)
process exit, rval = 0

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"

Reply via email to