Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Aug 2006 10:02:22 +0200
From:      "=?ISO-8859-1?Q?Andreas_Wider=F8e_Andersen?=" <wodfer@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Need help! Apache core dumps when running startssl
Message-ID:  <23ed14b80608080102h473f04bep7df472e060f79cab@mail.gmail.com>
In-Reply-To: <1155022747.44d83f9b6c0a9@196.22.132.16>
References:  <20060808072303.21211.qmail@web35603.mail.mud.yahoo.com> <1155022022.44d83cc7014d8@196.22.132.16> <23ed14b80608080036g2c16d81er14de304febdda768@mail.gmail.com> <1155022747.44d83f9b6c0a9@196.22.132.16>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/8/06, cknipe@savage.za.org <cknipe@savage.za.org> wrote:
>
> Quoting Andreas Wider=F8e Andersen <wodfer@gmail.com>:
>
> > On 8/8/06, cknipe@savage.za.org <cknipe@savage.za.org> wrote:
> > >
> > > Quoting Girish Venkatachalam <girish1729@yahoo.com>:
> > > > > > > Hope to get some input.
> > > > > > Looks like ur random seeding is not happening
> > > > > > properly. check whether /dev/random and
> > > > > /dev/urandom
> > > > > > work properly. You can verify it with the command
> > > > > >
> > > > > > $openssl rand  512
> > > > > >
> > >
> > >
> > > Why not just run httpd under gdb, and see WHY it is crashing?
> > >
> > > gdb httpd httpd.core
> > >
> > > run -X
> > >
> > > once cored, just back trace, step, and it should tell you exactly why
> it
> > > is
> > > crashing...
> >
> >
> > Thanks!
> > How do I start httpd with ssl support from this command? (I do apachect=
l
> > startssl when Apache crashes. apachectl start works fine though.)
> >
> > Apache runs fine when ssl is NOT started.
>
> run -X -DSSL


Here's the output:

# gdb httpd httpd.core
GNU gdb 4.18 (FreeBSD)
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you ar=
e
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)...
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libcrypt.so.2...(no debugging symbols
found)...done.
Reading symbols from /usr/local/lib/libmm.so.14...(no debugging symbols
found)...done.
Reading symbols from /usr/local/lib/libexpat.so.6...(no debugging symbols
found)...done.
Reading symbols from /usr/lib/libc.so.4...(no debugging symbols
found)...done.
Reading symbols from /usr/local/libexec/apache/mod_mmap_static.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_vhost_alias.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_env.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_define.so...(no debuggin=
g
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_log_config.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_mime_magic.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_mime.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_negotiation.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_status.so...(no debuggin=
g
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_info.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_include.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_autoindex.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_dir.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_cgi.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_asis.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_imap.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_actions.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_speling.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_userdir.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_alias.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_rewrite.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_access.so...(no debuggin=
g
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_auth.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_auth_anon.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_auth_db.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_digest.so...(no debuggin=
g
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/libproxy.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_cern_meta.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_expires.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_headers.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_usertrack.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_log_forensic.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_unique_id.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_setenvif.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/libssl.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/lib/libssl.so.4...(no debugging symbols
found)...done.
Reading symbols from /usr/local/lib/libcrypto.so.4...(no debugging symbols
found)...done.
Reading symbols from /usr/local/libexec/apache/libphp4.so...Deprecated
bfd_read called at
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c lin=
e
2627 in elfstab_build_psymtabs
Deprecated bfd_read called at
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c lin=
e
933 in fill_symbuf
done.
Reading symbols from /usr/local/lib/libgnugetopt.so.1...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/local/lib/php/20020429-debug/session.so...done.
Reading symbols from /usr/local/lib/php/20020429-debug/mhash.so...done.
Reading symbols from /usr/local/lib/libmhash.so.2...done.
Reading symbols from /usr/local/lib/php/20020429-debug/gettext.so...done.
Reading symbols from /usr/local/lib/libintl.so.6...done.
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Reading symbols from /usr/local/lib/php/20020429-debug/mbstring.so...done.
Reading symbols from /usr/local/lib/php/20020429-debug/pcre.so...done.
Reading symbols from /usr/local/lib/php/20020429-debug/openssl.so...done.
Reading symbols from /usr/local/lib/php/20020429-debug/xml.so...done.
Reading symbols from /usr/local/lib/php/20020429-debug/bz2.so...done.
Reading symbols from /usr/lib/libbz2.so.1...done.
Reading symbols from /usr/local/lib/php/20020429-debug/ctype.so...done.
Reading symbols from /usr/local/lib/php/20020429-debug/ftp.so...done.
Reading symbols from /usr/local/lib/php/20020429-debug/mysql.so...done.
---Type <return> to continue, or q <return> to quit---
Reading symbols from /usr/local/lib/mysql/libmysqlclient.so.10...done.
Reading symbols from /usr/lib/libz.so.2...done.
Reading symbols from /usr/local/lib/php/20020429-debug/overload.so...done.
Reading symbols from /usr/local/lib/php/20020429-debug/posix.so...done.
Reading symbols from /usr/local/lib/php/20020429-debug/tokenizer.so...done.
Reading symbols from /usr/local/lib/php/20020429-debug/zlib.so...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0  0x283d1d61 in bn_mul_add_words () from /usr/local/lib/libcrypto.so.4
(gdb) run -X DSSL
Starting program: /usr/local/sbin/httpd -X DSSL
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...

(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...
Program received signal SIGPIPE, Broken pipe.
0x2810b1e8 in writev () from /usr/lib/libc.so.4
(gdb)

/Andreas



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?23ed14b80608080102h473f04bep7df472e060f79cab>