Re: help w/ seg fault

2001-08-04 Thread Stas Bekman

On Fri, 3 Aug 2001, Jim Hobbs wrote:

 From perldoc SUPPORT.
  WHAT
 Always include this information:

 Output of perl -V
 I did this

 Version of mod_perl
 This is in the ouput from error_log

 Version of apache
 This is in output from error_log

 Options given to mod_perl's Makefile.PL
 I used PERL_DEBUG=1 on my second and other
 attempts.

 Server configuration details
 I included httpd.conf as a .txt attachment in my original
 post..
 Relevant sections of your ErrorLog (make test's is:
 t/logs/error_log)
 All tests passed.

 If 'make test' fails, the output of 'make test
 TEST_VERBOSE=1'
 All tests passed...

 I am not getting a core dump, so I'm not sure what to send as a
 trace.  When I start httpd using

Jim,

What do you mean you aren't sure? The SUPPORT file explicitly says:

QUOTE
Here's how to get a backtrace:

 % cd mod_perl-x.xx
 % touch t/conf/srm.conf
 % gdb ../apache_x.xx/src/httpd
 (gdb) run -X -f `pwd`/t/conf/httpd.conf -d `pwd`/t
 [now make request that causes core dump]
 (gdb) bt
/QUOTE

Hope this helps





 httpd -X
 and then attach to it with gdb
 and then attempt to connect from a browser, the browser just hangs,
 when I detach gdb, httpd dies. Interestingly, if I connect from a
 browser, explicitly naming the index file, it works, ie.,
 http://xxx.xxx.xxx:88/index.html

 I captured my feeble attempts at a trace in the attached script
 file:

  Stas Bekman [EMAIL PROTECTED] 07/16/01 10:17PM 
 On Fri, 13 Jul 2001, Jim Hobbs wrote:

 Please follow the steps from the SUPPORT file, which can be found
 in the
 mod_perl distro, to properly report the segfault. (you've forgotten
 the
 trace!)

  $ uname -a
 
  SunOS wfctest.des.state.mn.us 5.7 Generic_106541-16 sun4u sparc
  SUNW,Ultra-1
 
  $ perl -v
 
  This is perl, v5.6.1 built for sun4-solaris
 
  $ cat /opt/apache/logs/error_log
 
  [Fri Jul 13 15:02:41 2001] [notice] caught SIGTERM, shutting
 down
 
  [Fri Jul 13 15:02:49 2001] [notice] Apache/1.3.20 (Unix)
  mod_perl/1.26 configurs
  [Fri Jul 13 15:03:13 2001] [notice] child pid 10582 exit signal
  Segmentation Fa)
  [Fri Jul 13 15:05:08 2001] [notice] caught SIGTERM, shutting
 down
 
  [Fri Jul 13 15:05:16 2001] [notice] Apache/1.3.20 (Unix)
  mod_perl/1.26 configurs
  [Fri Jul 13 15:05:20 2001] [notice] child pid 10595 exit signal
  Segmentation Fa)
  [Fri Jul 13 15:05:21 2001] [notice] child pid 10596 exit signal
  Segmentation Fa)
  [Fri Jul 13 15:05:22 2001] [notice] child pid 10597 exit signal
  Segmentation Fa)
  [Fri Jul 13 15:05:23 2001] [notice] child pid 10598 exit signal
  Segmentation Fa)
  [Fri Jul 13 15:05:24 2001] [notice] child pid 10599 exit signal
  Segmentation Fa)
  [Fri Jul 13 15:07:16 2001] [notice] child pid 10603 exit signal
  Segmentation Fa)
 
  $ gcc -v
 
  Reading specs from
  /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/specs
  gcc version 2.95.3 20010315 (release)
 
 
 
 
 



 _
 Stas Bekman  JAm_pH --   Just Another mod_perl
 Hacker
 http://stason.org/   mod_perl Guide
 http://perl.apache.org/guide
 mailto:[EMAIL PROTECTED]   http://apachetoday.com
 http://eXtropia.com/
 http://singlesheaven.com http://perl.apache.org
 http://perlmonth.com/






_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/





help w/ seg fault

2001-07-16 Thread Jim Hobbs

$ uname -a  

SunOS wfctest.des.state.mn.us 5.7 Generic_106541-16 sun4u sparc
SUNW,Ultra-1 

$ perl -v  
   
This is perl, v5.6.1 built for sun4-solaris

$ cat /opt/apache/logs/error_log   

[Fri Jul 13 15:02:41 2001] [notice] caught SIGTERM, shutting down  

[Fri Jul 13 15:02:49 2001] [notice] Apache/1.3.20 (Unix)
mod_perl/1.26 configurs
[Fri Jul 13 15:03:13 2001] [notice] child pid 10582 exit signal
Segmentation Fa)
[Fri Jul 13 15:05:08 2001] [notice] caught SIGTERM, shutting down  

[Fri Jul 13 15:05:16 2001] [notice] Apache/1.3.20 (Unix)
mod_perl/1.26 configurs
[Fri Jul 13 15:05:20 2001] [notice] child pid 10595 exit signal
Segmentation Fa)
[Fri Jul 13 15:05:21 2001] [notice] child pid 10596 exit signal
Segmentation Fa)
[Fri Jul 13 15:05:22 2001] [notice] child pid 10597 exit signal
Segmentation Fa)
[Fri Jul 13 15:05:23 2001] [notice] child pid 10598 exit signal
Segmentation Fa)
[Fri Jul 13 15:05:24 2001] [notice] child pid 10599 exit signal
Segmentation Fa)
[Fri Jul 13 15:07:16 2001] [notice] child pid 10603 exit signal
Segmentation Fa)

$ gcc -v   
   
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/specs
gcc version 2.95.3 20010315 (release)  
   





Received: from wfctest.des.state.mn.us
([156.99.6.131])
by ngwmail.des.state.mn.us; Fri, 13 Jul 2001 15:34:11 -0500
Received: (from web@localhost)
by wfctest.des.state.mn.us (8.11.4/8.11.4) id f6DKWbJ10656
for [EMAIL PROTECTED]; Fri, 13 Jul 2001 15:32:37 -0500 (CDT)
Date: Fri, 13 Jul 2001 15:32:37 -0500 (CDT)
From: [EMAIL PROTECTED]
Message-Id: [EMAIL PROTECTED]

##
## httpd.conf -- Apache HTTP server configuration file
##

#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See URL:http://www.apache.org/docs/ for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# After this file is processed, the server will look for and process
# /opt/apache/conf/srm.conf and then /opt/apache/conf/access.conf
# unless you have overridden these with ResourceConfig and/or
# AccessConfig directives here.
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
# whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
# which responds to requests that aren't handled by a virtual host.
# These directives also provide default values for the settings
# of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
# different IP addresses or hostnames and have them handled by the
# same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with / (or drive:/ for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with /, the value of ServerRoot is prepended -- so logs/foo.log
# with ServerRoot set to /usr/local/apache will be interpreted by the
# server as /usr/local/apache/logs/foo.log.
#
PerlRequire /opt/apache/conf/startup.pl

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# ServerType is either inetd, or standalone.  Inetd mode is only supported on
# Unix platforms.
#
ServerType standalone

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at URL:http://www.apache.org/docs/mod/core.html#lockfile);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot /opt/apache

#
# The LockFile directive sets the path to the lockfile used when Apache
# is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
# USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
# its default value. The main reason for changing it is if the logs
# directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
# DISK. The PID of the main 

Re: help w/ seg fault

2001-07-16 Thread Stas Bekman

On Fri, 13 Jul 2001, Jim Hobbs wrote:

Please follow the steps from the SUPPORT file, which can be found in the
mod_perl distro, to properly report the segfault. (you've forgotten the
trace!)

 $ uname -a

 SunOS wfctest.des.state.mn.us 5.7 Generic_106541-16 sun4u sparc
 SUNW,Ultra-1

 $ perl -v

 This is perl, v5.6.1 built for sun4-solaris

 $ cat /opt/apache/logs/error_log

 [Fri Jul 13 15:02:41 2001] [notice] caught SIGTERM, shutting down

 [Fri Jul 13 15:02:49 2001] [notice] Apache/1.3.20 (Unix)
 mod_perl/1.26 configurs
 [Fri Jul 13 15:03:13 2001] [notice] child pid 10582 exit signal
 Segmentation Fa)
 [Fri Jul 13 15:05:08 2001] [notice] caught SIGTERM, shutting down

 [Fri Jul 13 15:05:16 2001] [notice] Apache/1.3.20 (Unix)
 mod_perl/1.26 configurs
 [Fri Jul 13 15:05:20 2001] [notice] child pid 10595 exit signal
 Segmentation Fa)
 [Fri Jul 13 15:05:21 2001] [notice] child pid 10596 exit signal
 Segmentation Fa)
 [Fri Jul 13 15:05:22 2001] [notice] child pid 10597 exit signal
 Segmentation Fa)
 [Fri Jul 13 15:05:23 2001] [notice] child pid 10598 exit signal
 Segmentation Fa)
 [Fri Jul 13 15:05:24 2001] [notice] child pid 10599 exit signal
 Segmentation Fa)
 [Fri Jul 13 15:07:16 2001] [notice] child pid 10603 exit signal
 Segmentation Fa)

 $ gcc -v

 Reading specs from
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/specs
 gcc version 2.95.3 20010315 (release)








_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/