Re: spreadlogd 1.4.2, spread 3.16.2, FreeBSD 4.6-RELEASE

George Schlossnagle <[email protected]> Wed, 4 Sep 2002 21:23:17 -0400
Newsgroups gmane.comp.apache.mod-log-spread.user
Message-ID <[email protected]>
I thought it was apache segfaulting, not spread.  You need to gdb apache 
(httpd) not spread.  I have one suspicion though - spread uses staticly 
sized vars for it's hostnames (MAX_PROC_NAME, 19 bytes + a null), and I 
think yours are too big.  There may be some sloppy code in m_l_s 
allowing that buffer to be overun, I will poke around.  That backtrace 
would be invaluable....

George

On Wednesday, September 4, 2002, at 08:18 PM, Mike Parson wrote:

> On Wed, Sep 04, 2002 at 06:19:05PM -0400, George Schlossnagle wrote:
>> Can you start it up as
>>
>> gdb /path/to/httpd
>>
>> r  -X
>>
>> then when it segafults do a
>>
>> bt full
>>
>> and send the output?
>
> gdb /usr/local/sbin/spread
> GNU gdb 4.18 (FreeBSD)
> Copyright 1998 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and 
> you are
> welcome to change it and/or distribute copies of it under certain 
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for 
> details.
> This GDB was configured as "i386-unknown-freebsd"...(no debugging 
> symbols found)...
> (gdb) run -c /usr/local/etc/spread.conf
> Starting program: /usr/local/sbin/spread -c /usr/local/etc/spread.conf
> /========================================================================
> ===\
> | The Spread 
> Toolkit.                                                       |
> | Copyright (c) 1993-2001 Spread Concepts 
> LLC                               |
> | All rights 
> reserved.                                                      |
> |                                                                       
>     |
> | The Spread toolkit is licensed under the Spread Open-Source 
> License.      |
> | You may only use this software in compliance with the 
> License.            |
> | A copy of the license can be found at 
> http://www.spread.org/license       |
> |                                                                       
>     |
> | This product uses software developed by Spread Concepts LLC for 
> use       |
> | in the Spread toolkit. For more information about 
> Spread,                 |
> | see 
> http://www.spread.org                                                 |
> |                                                                       
>     |
> | This software is distributed on an "AS IS" basis, WITHOUT WARRANTY 
> OF     |
> | ANY KIND, either express or 
> implied.                                      |
> |                                                                       
>     |
> | Spread is developed at Spread Concepts LLC and the Center for 
> Networking  |
> | and Distributed Systems, The Johns Hopkins 
> University.                    |
> |                                                                       
>     |
> | 
> Creators:                                                                
>  |
> |    Yair Amir             
> [email protected]                              |
> |    Michal Miskin-Amir    
> [email protected]                        |
> |    Jonathan Stanton      
> [email protected]                              |
> |                                                                       
>     |
> | Major 
> Contributors:                                                       |
> |    Dan Schoenblum   [email protected] - Java Interface 
> Developer.       |
> |    John Schultz     [email protected] - contribution to process 
> group |
> |                                             
> membership.                   |
> |    Theo Schlossnagle [email protected] - Perl library and 
> Skiplists      |
> |                                                                       
>     |
> | Special thanks to the following for providing ideas and/or 
> code:          |
> |    Ken Birman, Danny Dolev, Mike Goodrich, Ben 
> Laurie,                    |
> |    David Shaw, Robbert 
> VanRenesse.                                        |
> |                                                                       
>     |
> | For a full list of contributors, see Readme.txt in the 
> distribution.      |
> |                                                                       
>     |
> | WWW:     www.spread.org     www.cnds.jhu.edu    
> www.spreadconcepts.com    |
> | Contact: 
> [email protected]                                                |
> |                                                                       
>     |
> | Version 3.16.02 Built 
> 02/Apr/2002                                         |
> \========================================================================
> ===/
> ip_init: using file: /usr/local/etc/spread.access_ip
> Conf_init: using file: /usr/local/etc/spread.conf
> Successfully configured Segment 0 [208.187.213.63:4803] with 3 procs:
>         mysql2.freecommunityÃ: 208.187.213.32
>         web1.freecommunity.cÃ: 208.187.213.10
>         web2.freecommunity.cÃ: 208.187.213.31
> Finished configuration file.
> Conf_init: My name: mysql2.freecommunityÃ, id: 208.187.213.32, port: 
> 4803
> Spread: setugid and chroot successeful
> Membership id is ( -792996576, 1031185006)
> --------------------
> Configuration at mysql2.freecommunityà is:
> Num Segments 1
>         2       208.187.213.63    4803
>                 mysql2.freecommunityà  208.187.213.32
>                 web2.freecommunity.cà  208.187.213.31
> ====================
> ++++++++++++++++++++++
> Num of groups: 0
> (no debugging symbols found)...(no debugging symbols found)...
> Program received signal SIGSEGV, Segmentation fault.
> 0x0 in ?? ()
> (gdb) bt full
> #0  0x0 in ?? ()
> No symbol table info available.
> (gdb)
>
>
> --
> Michael Parson
> [email protected]
>
> _______________________________________________
> mls-users mailing list
> [email protected]
> http://lists.backhand.org/mailman/listinfo/mls-users
>
>
// George Schlossnagle
// Principal Consultant
// OmniTI, Inc          http://www.omniti.com
// (c) 240.460.5234   (e) [email protected]
// 1024D/1100A5A0  1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0