Bug 134998 - www/apache13: Crashing Apache
Summary: www/apache13: Crashing Apache
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Philip M. Gollucci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-27 16:50 UTC by Alex
Modified: 2009-06-01 10:50 UTC (History)
0 users

See Also:


Attachments
httpd.conf (83.02 KB, text/plain)
2009-05-28 11:53 UTC, Alex
no flags Details
httpd.conf (83.02 KB, text/plain)
2009-05-28 11:43 UTC, Alex
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2009-05-27 16:50:01 UTC
Good time of day!

I have a problem.

I had update ports, and install apache 1.3 + mod_perl. And now, when I starting apache, it's have crashing.

for your attention:
[root@se ~]# /usr/local/etc/rc.d/apache start
Starting apache.
Segmentation fault (core dumped)
[root@se ~]# gdb /usr/local/sbin/httpd -c ./httpd.core
(gdb) backtrace
#0  0x288e2638 in Perl_doing_taint ()
   from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so
#1  0x288e8f35 in Perl_sys_init ()
   from /usr/local/lib/perl5/5.8.9/mach/CORE/libperl.so
#2  0x2884b3c5 in perl_startup () from /usr/local/libexec/apache/libperl.so
#3  0x28850dbb in perl_cmd_module () from /usr/local/libexec/apache/libperl.so
#4  0x080532a6 in ap_handle_command ()
#5  0x08053929 in ap_srm_command_loop ()
#6  0x08058238 in virtualhost_section ()
#7  0x0805339b in ap_handle_command ()
#8  0x08053929 in ap_srm_command_loop ()
#9  0x08053f37 in ap_process_resource_config ()
#10 0x0805438e in ap_read_config ()
#11 0x0805e0ac in main ()

Can you help me?

How-To-Repeat: install ports: /usr/ports/www/apache13 and /usr/ports/www/mod_perl and then run /usr/local/etc/rc.d/apache start
Comment 1 Remko Lodder freebsd_committer freebsd_triage 2009-05-27 18:59:03 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ports-bugs

Reassign to ports team
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2009-05-27 20:38:33 UTC
Responsible Changed
From-To: freebsd-ports-bugs->apache

Over to maintainer(s).
Comment 3 Philip M. Gollucci freebsd_committer freebsd_triage 2009-05-27 21:08:42 UTC
Responsible Changed
From-To: apache->pgollucci

Can you confirm your verions 

$ uname -a $ ls -1d /var/db/pkg{apache,mod_,perl}* 

whats in /etc/make.conf 

Are you using any form of mod_ssl 

httpd.conf 

That trace doesn't help too much, you don't have debugging symbols
Comment 4 Alex 2009-05-28 11:43:57 UTC
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi.<br>
<br>
<br>
I am sorry. The previous letter has been transmitted without attachment
conf file. Now in the message is available attachment conf file of
server Apache.
<br>
<br>
<br>
This is answer for your request.
<br>
<br>
[root@se ~]# uname -a
<br>
FreeBSD se.apolitica.ru 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Mon May 18
16:15:55 MSD 2009 <a class="moz-txt-link-abbreviated"
 href="mailto:root@unknown-4748.agava.net:/usr/src/sys/i386/compile/alonso">root@unknown-4748.agava.net:/usr/src/sys/i386/compile/alonso</a> 
i386
<br>
<br>
[root@se ~]# ls -1d <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>var/db/pkg<span
 class="moz-txt-tag">/</span></i>{apache,mod_,perl}*
<br>
/var/db/pkg/apache-1.3.41
<br>
/var/db/pkg/mod_perl-1.31
<br>
/var/db/pkg/perl-5.8.9_2
<br>
<br>
[root@se ~]# less /etc/make.conf
<br>
CPUTYPE?=pentium4
<br>
CFLAGS+2 -pipe
<br>
CXXFLAGS+2 -pipe
<br>
MAKE_SHELL?=sh
<br>
# added by use.perl 2009-05-27 10:57:35
<br>
PERL_VERSION=5.8.9
<br>
<br>
/usr/local/etc/apache/httpd.conf in attachment
<br>
<br>
[root@se /usr/ports/lang/perl5.8]# make CFLAGS+=-g3
<br>
[root@se /usr/ports/www/mod_perl]# make CFLAGS+=-g3
<br>
[root@se /usr/ports/www/apache13]# make CFLAGS+=-g3
<br>
[root@se /usr/ports/www/apache13]# make install
<br>
[root@se /usr/local/etc/rc.d]# /usr/local/etc/rc.d/apache start
<br>
Starting apache.
<br>
Segmentation fault (core dumped)
<br>
[root@se /usr/local/etc/rc.d]# gdb /usr/local/sbin/httpd -c
/usr/local/etc/rc.d/httpd.core
<br>
(gdb) backtrace
<br>
#0  0x2892a67f in Perl_doing_taint (argc=2, argv=0xbfbfee70, envp=0x0)
<br>
  at perl.c:4530
<br>
#1  0x28922660 in Perl_sys_init (argc=0xbfbfa938, argv=0xbfbfa91c)
<br>
  at perl.c:182
<br>
#2  0x288634a5 in perl_startup () from
/usr/local/libexec/apache/libperl.so
<br>
#3  0x28868e9b in perl_cmd_module () from
/usr/local/libexec/apache/libperl.so
<br>
#4  0x08055222 in invoke_cmd (cmd=0x288861c8, parms=0xbfbfec58,
<br>
  mconfig=0x2826e444, args=0xbfbfaa9a "") at http_config.c:876
<br>
#5  0x080556e8 in ap_handle_command (parms=0xbfbfec58,
config=0x2826e00c,
<br>
  l=0xbfbfaa84 "PerlModule Apache::DBI") at http_config.c:988
<br>
#6  0x08055757 in ap_srm_command_loop (parms=0xbfbfec58,
config=0x2826e00c)
<br>
  at http_config.c:1002
<br>
#7  0x0805a098 in virtualhost_section (cmd=0xbfbfec58,
dummy=0x2820467c,
<br>
  arg=0xbfbfcbe1 "*:80 *:8091") at http_core.c:1979
<br>
#8  0x08054aca in invoke_cmd (cmd=0x807eb20, parms=0xbfbfec58,
<br>
  mconfig=0x2820467c, args=0xbfbfcbe1 "*:80 *:8091") at
http_config.c:768
<br>
#9  0x080556e8 in ap_handle_command (parms=0xbfbfec58,
config=0x28204574,
<br>
  l=0xbfbfcbd4 "&lt;VirtualHost *:80 *:8091") at http_config.c:988
<br>
#10 0x08055757 in ap_srm_command_loop (parms=0xbfbfec58,
config=0x28204574)
<br>
  at http_config.c:1002
<br>
#11 0x08055fbe in ap_process_resource_config (s=0x28204034,
<br>
  fname=0x28204714 "/usr/local/apache/conf/httpd.conf", p=0x2820400c,
<br>
  ptemp=0x2820a00c) at http_config.c:1294
<br>
#12 0x080569f2 in ap_read_config (p=0x2820400c, ptemp=0x2820a00c,
<br>
  confname=0x8087de0 "conf/httpd.conf") at http_config.c:1578
<br>
#13 0x08062f8c in main (argc=1, argv=0xbfbfeda4) at http_main.c:5750
<br>
</body>
</html>
Comment 5 Alex 2009-05-28 11:53:21 UTC
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi.<br>
<br>
This is answer for your request.
<br>
<br>
[root@se ~]# uname -a
<br>
FreeBSD se.apolitica.ru 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Mon May 18
16:15:55 MSD 2009<br>
<a class="moz-txt-link-abbreviated"
 href="mailto:root@unknown-4748.agava.net:/usr/src/sys/i386/compile/alonso">root@unknown-4748.agava.net:/usr/src/sys/i386/compile/alonso</a> 
i386<br>
<br>
[root@se ~]# ls -1d <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>var/db/pkg<span
 class="moz-txt-tag">/</span></i>{apache,mod_,perl}*
<br>
/var/db/pkg/apache-1.3.41
<br>
/var/db/pkg/mod_perl-1.31
<br>
/var/db/pkg/perl-5.8.9_2
<br>
<br>
[root@se ~]# less /etc/make.conf
<br>
CPUTYPE?=pentium4
<br>
CFLAGS+2 -pipe
<br>
CXXFLAGS+2 -pipe
<br>
MAKE_SHELL?=sh
<br>
# added by use.perl 2009-05-27 10:57:35
<br>
PERL_VERSION=5.8.9
<br>
<br>
/usr/local/etc/apache/httpd.conf in attachment
<br>
<br>
[root@se /usr/ports/lang/perl5.8]# make CFLAGS+=-g3
<br>
[root@se /usr/ports/www/mod_perl]# make CFLAGS+=-g3
<br>
[root@se /usr/ports/www/apache13]# make CFLAGS+=-g3
<br>
[root@se /usr/ports/www/apache13]# make install
<br>
[root@se /usr/local/etc/rc.d]# /usr/local/etc/rc.d/apache start
<br>
Starting apache.
<br>
Segmentation fault (core dumped)
<br>
[root@se /usr/local/etc/rc.d]# gdb /usr/local/sbin/httpd -c
/usr/local/etc/rc.d/httpd.core
<br>
(gdb) backtrace
<br>
#0  0x2892a67f in Perl_doing_taint (argc=2, argv=0xbfbfee70, envp=0x0)
<br>
  at perl.c:4530
<br>
#1  0x28922660 in Perl_sys_init (argc=0xbfbfa938, argv=0xbfbfa91c)
<br>
  at perl.c:182
<br>
#2  0x288634a5 in perl_startup () from
/usr/local/libexec/apache/libperl.so
<br>
#3  0x28868e9b in perl_cmd_module () from
/usr/local/libexec/apache/libperl.so
<br>
#4  0x08055222 in invoke_cmd (cmd=0x288861c8, parms=0xbfbfec58,
<br>
  mconfig=0x2826e444, args=0xbfbfaa9a "") at http_config.c:876
<br>
#5  0x080556e8 in ap_handle_command (parms=0xbfbfec58,
config=0x2826e00c,
<br>
  l=0xbfbfaa84 "PerlModule Apache::DBI") at http_config.c:988
<br>
#6  0x08055757 in ap_srm_command_loop (parms=0xbfbfec58,
config=0x2826e00c)
<br>
  at http_config.c:1002
<br>
#7  0x0805a098 in virtualhost_section (cmd=0xbfbfec58,
dummy=0x2820467c,
<br>
  arg=0xbfbfcbe1 "*:80 *:8091") at http_core.c:1979
<br>
#8  0x08054aca in invoke_cmd (cmd=0x807eb20, parms=0xbfbfec58,
<br>
  mconfig=0x2820467c, args=0xbfbfcbe1 "*:80 *:8091") at
http_config.c:768
<br>
#9  0x080556e8 in ap_handle_command (parms=0xbfbfec58,
config=0x28204574,
<br>
  l=0xbfbfcbd4 "&lt;VirtualHost *:80 *:8091") at http_config.c:988
<br>
#10 0x08055757 in ap_srm_command_loop (parms=0xbfbfec58,
config=0x28204574)
<br>
  at http_config.c:1002
<br>
#11 0x08055fbe in ap_process_resource_config (s=0x28204034,
<br>
  fname=0x28204714 "/usr/local/apache/conf/httpd.conf", p=0x2820400c,
<br>
  ptemp=0x2820a00c) at http_config.c:1294
<br>
#12 0x080569f2 in ap_read_config (p=0x2820400c, ptemp=0x2820a00c,
<br>
  confname=0x8087de0 "conf/httpd.conf") at http_config.c:1578
<br>
#13 0x08062f8c in main (argc=1, argv=0xbfbfeda4) at http_main.c:5750
 
</body>
</html>
Comment 6 Philip M. Gollucci freebsd_committer freebsd_triage 2009-05-28 20:38:37 UTC
State Changed
From-To: open->closed

duplicate of ports/134749 migrating content
Comment 7 Philip M. Gollucci 2009-05-29 04:40:13 UTC
Looks like it works too me, even with your httpd.conf

I didn't load php5 or rt36

maybe its a perl 5.8.9 vs perl 5.10.0 bug?

START:
---------
$ sudo /usr/local/sbin/httpd -f /usr/local/etc/apache/httpd.conf

[Thu May 28 23:34:10 2009] [warn] pid file /var/run/httpd.pid
overwritten -- Unclean shutdown of previous Apache run?
[Thu May 28 23:34:11 2009] [notice] Apache/1.3.41 (Unix) mod_perl/1.31
configured -- resuming normal operations
[Thu May 28 23:34:11 2009] [notice] Accept mutex: flock (Default: flock)

VHOSTS:
----------
$ netstat -tan -p tcp |grep LISTEN
tcp4       0      0 *.8090                 *.*                    LISTEN
tcp4       0      0 *.8093                 *.*                    LISTEN
tcp4       0      0 *.8100                 *.*                    LISTEN
tcp4       0      0 *.8101                 *.*                    LISTEN
tcp4       0      0 *.8103                 *.*                    LISTEN
tcp4       0      0 *.8104                 *.*                    LISTEN
tcp4       0      0 *.8105                 *.*                    LISTEN
tcp4       0      0 *.8106                 *.*                    LISTEN
tcp4       0      0 *.8107                 *.*                    LISTEN
tcp4       0      0 *.8108                 *.*                    LISTEN
tcp4       0      0 *.8109                 *.*                    LISTEN
tcp4       0      0 *.8110                 *.*                    LISTEN
tcp4       0      0 *.8111                 *.*                    LISTEN
tcp4       0      0 *.8112                 *.*                    LISTEN
tcp4       0      0 *.8113                 *.*                    LISTEN
tcp4       0      0 *.8114                 *.*                    LISTEN
tcp4       0      0 *.8115                 *.*                    LISTEN
tcp4       0      0 *.8116                 *.*                    LISTEN
tcp4       0      0 *.8117                 *.*                    LISTEN
tcp4       0      0 *.8119                 *.*                    LISTEN
tcp4       0      0 *.9001                 *.*                    LISTEN
tcp4       0      0 *.80                   *.*                    LISTEN
tcp4       0      0 *.8500                 *.*                    LISTEN
tcp4       0      0 *.8091                 *.*                    LISTEN
tcp4       0      0 *.8200                 *.*                    LISTEN
tcp4       0      0 *.8205                 *.*                    LISTEN
tcp4       0      0 *.8201                 *.*                    LISTEN
tcp4       0      0 *.8202                 *.*                    LISTEN
tcp4       0      0 *.8203                 *.*                    LISTEN
tcp4       0      0 *.8204                 *.*                    LISTEN
tcp4       0      0 *.8206                 *.*                    LISTEN
tcp4       0      0 *.8207                 *.*                    LISTEN
tcp4       0      0 *.8208                 *.*                    LISTEN
tcp4       0      0 *.8209                 *.*                    LISTEN
tcp4       0      0 *.8210                 *.*                    LISTEN
tcp4       0      0 *.8211                 *.*                    LISTEN
tcp4       0      0 *.8212                 *.*                    LISTEN
tcp4       0      0 *.8213                 *.*                    LISTEN
tcp4       0      0 *.8214                 *.*                    LISTEN
tcp4       0      0 *.8215                 *.*                    LISTEN
tcp4       0      0 *.8216                 *.*                    LISTEN
tcp4       0      0 *.8217                 *.*                    LISTEN
tcp4       0      0 *.8218                 *.*                    LISTEN
tcp4       0      0 *.8219                 *.*                    LISTEN
tcp4       0      0 *.8220                 *.*                    LISTEN
tcp4       0      0 *.8221                 *.*                    LISTEN
tcp4       0      0 *.8222                 *.*                    LISTEN
tcp4       0      0 *.8223                 *.*                    LISTEN
tcp4       0      0 *.8224                 *.*                    LISTEN
tcp4       0      0 *.8225                 *.*                    LISTEN
tcp4       0      0 *.8226                 *.*                    LISTEN
tcp4       0      0 *.8227                 *.*                    LISTEN
tcp4       0      0 *.8228                 *.*                    LISTEN
tcp4       0      0 *.8229                 *.*                    LISTEN
tcp4       0      0 *.8230                 *.*                    LISTEN
tcp4       0      0 *.8231                 *.*                    LISTEN
tcp4       0      0 *.8232                 *.*                    LISTEN
tcp4       0      0 *.8233                 *.*                    LISTEN
tcp4       0      0 *.8234                 *.*                    LISTEN
tcp4       0      0 *.8235                 *.*                    LISTEN
tcp4       0      0 *.8236                 *.*                    LISTEN
tcp4       0      0 *.8237                 *.*                    LISTEN
tcp4       0      0 *.8238                 *.*                    LISTEN
tcp4       0      0 *.8239                 *.*                    LISTEN
tcp4       0      0 *.8240                 *.*                    LISTEN
tcp4       0      0 *.8241                 *.*                    LISTEN
Comment 8 Philip M. Gollucci 2009-05-29 04:46:20 UTC
Philip M. Gollucci wrote:
> Looks like it works too me, even with your httpd.conf
your back trace says it failed trying to load Apache-DBI.

$ ls -1d /var/db/pkg/p5-Apache*

do you have a startup.pl with connect_on_init() ?

Maybe recompile that too ?
Comment 9 Alex 2009-05-29 08:24:54 UTC
Hi.

I had try to migrate to perl-5.10 and to comment virtual host for rt. 
And nothing. Apache crashing anyway when load mod_perl
Comment 10 Alex 2009-05-29 08:27:42 UTC
[root@se ~]#  ls -1d /var/db/pkg/p5-Apache*
/var/db/pkg/p5-Apache-DBI-mp1-1.06_1
/var/db/pkg/p5-Apache-Session-1.87
/var/db/pkg/p5-Apache-Test-1.30_1
Comment 11 Alex 2009-05-29 08:39:21 UTC
ÑÑо When I install mod_perl 1.30 from packet ( pkg_add -r mod_perl ), 
Apache not crasing
Comment 12 Alex 2009-05-29 10:26:05 UTC
Hi.

I had try to migrate to perl-5.10 and to comment virtual host for rt. 
And nothing. Apache crashing anyway when load mod_perl

[root@se ~]#  ls -1d /var/db/pkg/p5-Apache*
/var/db/pkg/p5-Apache-DBI-mp1-1.06_1
/var/db/pkg/p5-Apache-Session-1.87
/var/db/pkg/p5-Apache-Test-1.30_1

When I install mod_perl 1.30 from packet ( pkg_add -r mod_perl ), Apache 
not crasing
Comment 13 Alex 2009-05-29 11:43:46 UTC
Hi.

I had try to migrate to perl-5.10 and to comment virtual host for rt.
And nothing. Apache crashing anyway when load mod_perl

[root@se ~]# ls -1d /var/db/pkg/p5-Apache*
/var/db/pkg/p5-Apache-DBI-mp1-1.06_1
/var/db/pkg/p5-Apache-Session-1.87
/var/db/pkg/p5-Apache-Test-1.30_1

I have startup pl-file for starting rt38 only.  When I install mod_perl 
1.30 from packet ( pkg_add -r mod_perl ), Apache not crasing.
Comment 14 Alex 2009-06-01 10:43:20 UTC
Hi.
Please help to solve a problem. Advise what to make what to solve this 
problem.
I cannot already use Apache + Perl which day in any way.
Please Help.