Mailing List Archive

[mod_backhand-users] Trouble using backhand
I have backhand install on both linux apache servers.
After loading my systems it was apparent that backhand
was not referring request to my second server.
After viewing the error_log file I noticed that the
server that I started first log contains:

[Wed Sep 20 10:26:44 2000] [notice] SIGUSR1 received.
Doing graceful restart
[Wed Sep 20 10:26:44 2000] [notice] mod_backhand --
UnixSocketDir set to /usr/local/apache/backhand
[Wed Sep 20 10:26:44 2000] [notice] mod_backhand --
Broadcast 192.168.104.255:4445 added
[Wed Sep 20 10:26:44 2000] [notice] mod_backhand --
Broadcast 192.168.104.255:4445 added
[Wed Sep 20 10:26:44 2000] [notice] mod_backhand --
Broadcast 192.168.104.255:4445 added
[Wed Sep 20 10:26:44 2000] [notice] mod_backhand --
Multicast accept 192.168.104.0/24
[Wed Sep 20 10:26:44 2000] [notice] mod_backhand --
Multicast accept 192.168.104.0/24
[Wed Sep 20 10:26:44 2000] [notice] mod_backhand --
Multicast accept 192.168.104.0/24
[Wed Sep 20 10:26:44 2000] [notice] Apache/1.3.12
(Unix) balanced_by_mod_backhand/1.1.0 configured --
resuming normal operations

The server that I start second contains:
[Wed Sep 20 10:30:32 2000] [notice] mod_backhand --
Broadcast 192.168.104.255:4445 added
[Wed Sep 20 10:30:32 2000] [notice] mod_backhand --
Broadcast 192.168.104.255:4445 added
[Wed Sep 20 10:30:32 2000] [notice] mod_backhand --
Broadcast 192.168.104.255:4445 added
[Wed Sep 20 10:30:32 2000] [notice] mod_backhand --
Multicast accept 192.168.104.0/24
[Wed Sep 20 10:30:32 2000] [notice] mod_backhand --
Multicast accept 192.168.104.0/24
[Wed Sep 20 10:30:32 2000] [notice] mod_backhand --
Multicast accept 192.168.104.0/24
[Wed Sep 20 10:30:40 2000] [notice]
backhand_init(13410) spawning stats things (PID 13452)
[Wed Sep 20 10:30:40 2000] [notice] Apache/1.3.12
(Unix) balanced_by_mod_backhand/1.1.0 configured --
resuming normal operations
[Wed Sep 20 10:30:41 2000] [notice] child pid 13452
exit signal Segmentation fault (11)
[Wed Sep 20 10:30:41 2000] [warn] long lost child came
home! (pid 13452)
------------------------------------------------------
Both servers blow up with the same message regardless
of which one I start first.
------------------------------------------------------
Here is a fragment of my httpd.conf file:
<Directory "/home/html/perl_manual">
....lines left out for bevity
Order allow,deny
Allow from all
Backhand byAge
Backhand byLoad
BackhandLogLevel +mbcsall
BackhandLogLevel +dcsnall
</Directory>

<IfModule mod_backhand.c>
UnixSocketDir /usr/local/apache/backhand
MulticastStats 192.168.104.255:4445
AcceptStats 192.168.104.0/24
<Location "/backhand/">
SetHandler backhand-handler
</Location>
</IfModule>
-----------------------------------------------------
Both systems have the same backhand configuration.
-----------------------------------------------------
Other configuration info:
OS RedHat linux 6.1
Apache 1.3.12
mod_backhand is compiled in statically.

Any help or suggestions will be welcomed.
-TAJ

=====
*--------------------------------------------------*
* I only do what the voices in my head tell me to!*
*--------------------------------------------------*

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
[mod_backhand-users] Trouble using backhand [ In reply to ]
Ran my load generator against my test server and tons
of diagnostic messages where generated. Hope this
helps with the diagnostic process:

Wed Sep 20 11:05:30 2000] [notice] (Type =>) = {
(null), /gifs/banner.gif, (null) }
[Wed Sep 20 11:05:30 2000] [notice] (Type <=) = {
(null), /gifs/banner.gif, (null) }
[Wed Sep 20 11:05:30 2000] [notice] (Type =>) = {
(null), /gifs/banner.gif, (null) }
[Wed Sep 20 11:05:30 2000] [notice] (Type <=) = {
(null), /gifs/navbar.gif, (null) }
[Wed Sep 20 11:05:30 2000] [notice] Func executed for
(null) [byAge(NULL)] (0 -> 0)
[Wed Sep 20 11:05:30 2000] [notice] Func executed for
(null) [byLoad(NULL)] (0 -> 0)
[Wed Sep 20 11:05:30 2000] [notice] All funcs executed
-> local
[Wed Sep 20 11:05:30 2000] [notice] (Type =>) = {
(null), /gifs/navbar.gif, (null) }
[Wed Sep 20 11:05:30 2000] [notice] (Type <=) = {
(null), /gifs/navbar.gif, (null) }
[Wed Sep 20 11:05:30 2000] [notice] (Type =>) = {
(null), /gifs/navbar.gif, (null) }

-TAJ

=====
*--------------------------------------------------*
* I only do what the voices in my head tell me to!*
*--------------------------------------------------*

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
[mod_backhand-users] Trouble using backhand [ In reply to ]
Well, your configuration looks good. I find it very strange that the second
one seg faults on start up. The only thing I can suggest is to try compiling
it dynamically. It is much better to compile it dynamically on Linux (it gets
confused on Solaris, but Linux seems fine). I have heard a whisper or two
saying that things don't seem to work right when it is compiled in statically
on Linux.

I developed it as a shared module mainly because it cuts development time WAY
DOWN. I don't have to recompile Apache when I change code :)

Is it always the second one that seg faults? or always machine "B"?
(regardless of the order)

The best option is to actually debug it. I am not sure if you are familiar
with debugging progams, but tracking this down should not be too hard. If you
want to pursue debugging this and need assistance, drop me an email.

You configuration looks super simple (like mine!) and I am unable to replicate
your problem on my machines.

BTW, does it only segfault after a the first request? Or does it just seg
immediately?

Most of the actual daemon operations will be logged only if BackhandLogLevel
+netall is set. That may lend a clue.

terry jones wrote:
> The server that I start second contains:
> [Wed Sep 20 10:30:40 2000] [notice]
> backhand_init(13410) spawning stats things (PID 13452)
> [Wed Sep 20 10:30:40 2000] [notice] Apache/1.3.12
> (Unix) balanced_by_mod_backhand/1.1.0 configured --
> resuming normal operations
> [Wed Sep 20 10:30:41 2000] [notice] child pid 13452
> exit signal Segmentation fault (11)

Yikes!

> <IfModule mod_backhand.c>
> UnixSocketDir /usr/local/apache/backhand
> MulticastStats 192.168.104.255:4445
> AcceptStats 192.168.104.0/24
> <Location "/backhand/">
> SetHandler backhand-handler
> </Location>
> </IfModule>
> -----------------------------------------------------
> Both systems have the same backhand configuration.
> -----------------------------------------------------
> Other configuration info:
> OS RedHat linux 6.1
> Apache 1.3.12
> mod_backhand is compiled in statically.

--
Theo Schlossnagle
1024D/A8EBCF8F/13BD 8C08 6BE2 629A 527E 2DC2 72C2 AD05 A8EB CF8F
2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7