Re: Here is my backtrace, please solove my problem

2001-11-10 Thread Barrie Slaymaker

On Sat, Nov 10, 2001 at 12:10:03PM -0800, SubbaReddy M wrote:
 
 /soft/Apache-ASP-2.27/make_httpd/mod_perl-1.26/core: No such file or directory.

You need a core file to do this... gdb is kindly pointing out that you
don't have one.

 and i am really thankfull for your help.

I'm just (repeatedly) telling you to read the manual and think about
what you are doing.  You need to understand how the debugger, the stack,
seg faults, and core dumps work in relation to one another and this list
is not the place to learn all that.

Sorry,

Barrie



Here is my backtrace, please solove my problem

2001-11-09 Thread SubbaReddy M

Hello,

[root@qclinux mod_perl-1.26]# gdb httpd 14947
GNU gdb 19991004
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-redhat-linux...
(no debugging symbols found)...

/soft/Apache-ASP-2.27/make_httpd/mod_perl-1.26/14947: No such file or
directory.
Attaching to program: /usr/sbin/httpd, Pid 14947
Reading symbols from /lib/libNoVersion.so.1...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libcrypt.so.1...done.
Reading symbols from /lib/libdb.so.2...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.2...done.
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
Reading symbols from /etc/httpd/modules/mod_vhost_alias.so...done.
Reading symbols from /etc/httpd/modules/mod_env.so...done.
Reading symbols from /etc/httpd/modules/mod_log_config.so...done.
Reading symbols from /etc/httpd/modules/mod_log_agent.so...done.
Reading symbols from /etc/httpd/modules/mod_log_referer.so...done.
Reading symbols from /etc/httpd/modules/mod_mime.so...done.
---Type return to continue, or q return to quit---
Reading symbols from /etc/httpd/modules/mod_negotiation.so...done.
Reading symbols from /etc/httpd/modules/mod_status.so...done.
Reading symbols from /etc/httpd/modules/mod_info.so...done.
Reading symbols from /etc/httpd/modules/mod_include.so...done.
Reading symbols from /etc/httpd/modules/mod_autoindex.so...done.
Reading symbols from /etc/httpd/modules/mod_dir.so...done.
Reading symbols from /etc/httpd/modules/mod_cgi.so...done.
Reading symbols from /etc/httpd/modules/mod_asis.so...done.
Reading symbols from /etc/httpd/modules/mod_imap.so...done.
Reading symbols from /etc/httpd/modules/mod_actions.so...done.
Reading symbols from /etc/httpd/modules/mod_userdir.so...done.
Reading symbols from /etc/httpd/modules/mod_alias.so...done.
Reading symbols from /etc/httpd/modules/mod_rewrite.so...done.
Reading symbols from /etc/httpd/modules/mod_access.so...done.
Reading symbols from /etc/httpd/modules/mod_auth.so...done.
Reading symbols from /etc/httpd/modules/mod_auth_anon.so...done.
Reading symbols from /etc/httpd/modules/mod_auth_db.so...done.
Reading symbols from /etc/httpd/modules/mod_digest.so...done.
Reading symbols from /etc/httpd/modules/libproxy.so...done.
Reading symbols from /etc/httpd/modules/mod_expires.so...done.
Reading symbols from /etc/httpd/modules/mod_headers.so...done.
Reading symbols from /etc/httpd/modules/mod_usertrack.so...done.
Reading symbols from /etc/httpd/modules/mod_setenvif.so...done.
---Type return to continue, or q return to quit---
Reading symbols from /etc/httpd/modules/libperl.so...done.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /lib/libutil.so.1...done.
Reading symbols from /etc/httpd/modules/libphp3.so...done.
Reading symbols from /usr/lib/libgd.so.1...done.
Reading symbols from /usr/lib/libttf.so.2...done.
Reading symbols from /usr/lib/libgdbm.so.2...done.
Reading symbols from /lib/libdb.so.3...done.
Reading symbols from /usr/lib/libz.so.1...done.
Reading symbols from /lib/libpam.so.0...done.
Reading symbols from /lib/libresolv.so.2...done.
Reading symbols from /usr/lib/apache/pgsql.so...done.
Reading symbols from /usr/lib/libpq.so.2.0...done.
Reading symbols from /usr/lib/apache/imap.so...done.
Reading symbols from /usr/lib/apache/ldap.so...done.
Reading symbols from /usr/lib/libldap.so.1...done.
Reading symbols from /usr/lib/liblber.so.1...done.
Reading symbols from
/usr/lib/perl5/5.6.1/i686-linux/auto/SDBM_File/SDBM_File.so
...done.
Reading symbols from /usr/lib/perl5/5.6.1/i686-linux/auto/IO/IO.so...done.
Reading symbols from
/usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Compress/Zli
b/Zlib.so...done.
Reading symbols from
/usr/lib/perl5/5.6.1/i686-linux/auto/Data/Dumper/Dumper.so.
---Type return to continue, or q return to quit---
..done.
Reading symbols from /usr/lib/perl5/5.6.1/i686-linux/auto/Fcntl/Fcntl.so...
done.
Reading symbols from
/usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Digest/MD5/M
D5.so...done.

Reading symbols from
/usr/lib/perl5/site_perl/5.6.1/i686-linux/auto/Time/HiRes/H
iRes.so...done.
0x4012817e in __select () from /lib/libc.so.6
(gdb) where
#0  0x4012817e in __select () from /lib/libc.so.6
#1  0x0 in ?? ()
(gdb) source mod_perl-1.26/.gdbinit
mod_perl-1.26/.gdbinit: No such file or directory.
(gdb) source mod_perl-1.26/.gdbinit
mod_perl-1.26/.gdbinit: No such file or directory.
(gdb) curinfo
Attempt to extract a component of a value that is not a structure pointer.
(gdb) q
The program is running.  Quit anyway (and detach it)? (y or n) n
Not confirmed.
(gdb) install
Undefined 

Re: Here is my backtrace, please solove my problem

2001-11-09 Thread SubbaReddy M

This is, i am geting.

[root@qclinux mod_perl-1.26]# gdb httpd core
GNU gdb 19991004
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-redhat-linux...(no debugging symbols
found)...

/soft/Apache-ASP-2.27/make_httpd/mod_perl-1.26/core: No such file or
directory.
(gdb) bt
No stack.
(gdb) /bt
Undefined command: .  Try help.
(gdb) continue
The program is not being run.
(gdb) run -X -f `pwd`/t/conf/httpd.conf -d `pwd`/t
Starting program: /usr/sbin/httpd -X -f `pwd`/t/conf/httpd.conf -d `pwd`/t
Ouch! ap_mm_create(1048576,
/soft/Apache-ASP-2.27/make_httpd/mod_perl-1.26/t/tmp/mm.19659) failed
Error: MM: mm:core: failed to open semaphore file (No such file or
directory): OS: No such file or directory

Program exited with code 01.
(gdb) Quit
(gdb) bt
No stack.
(gdb)



and i am really thankfull for your help.

-SubbaReddy

- Original Message -
From: Barrie Slaymaker [EMAIL PROTECTED]
To: SubbaReddy M [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, November 09, 2001 10:09 PM
Subject: Re: Here is my backtrace, please solove my problem


 [Note the Reply-To]

 You're getting closer.  Unfortunately, the backtrace you sent says
 that gdb attached to a running httpd and it happened to be sitting in
 select() when gdb attached on to it.  At which point you grabbed the
 backtrace and exited, killing the httpd before recreating the problem.

 Instead, you need to cause the problem while debugging the httpd and,
 assuming it segfaults when in gdb, get the backtrace from where the
 problem occurred.

 Try the first recipe from SUPPORT:

  % 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

 or do what you did but gdb's 'continue' command to get the httpd to run
 again and make the offending request over and over until you get it to
 seg fault, *then* do the 'where'/'bt' command.

 The stack trace needs to be from the point of failure, not from some
 place in a (so far) healthy server...

 If you have a core file from the segfault, you can also do that recipe
 from SUPPORT:

  % gdb httpd core

 and do the 'bt' that's often a bit easier.

 - Barrie