You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2007/12/20 15:39:43 UTC
DO NOT REPLY [Bug 44114] New: - CGI files doesn't compile
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44114>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44114
Summary: CGI files doesn't compile
Product: Apache httpd-2
Version: 2.0.59
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: regression
Priority: P1
Component: Other Modules
AssignedTo: bugs@httpd.apache.org
ReportedBy: hecoo@yahoo.es
Hello everybody,
I have a hard issue with the execution of a web application. I have compiled and
built an Apache server with the following config:
Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8f DAV/2 PHP/5.2.3
mod_apreq2-20051231/2.6.0 mod_perl/2.0.3 Perl/v5.8.4
I have a mixture of php and cgi scripts in my web application, using mod_perl. I
can init without problems the Apache server, but when I try to request a cgi
page , the browser doesn't show anything but the Apache's "error_log" print out
a line like this:
"child pid xxxxx exit signal Segmentation fault (11), possible coredump in
/export/home/cores" (however, when I try to request a php page, it loads without
errors nor segfaults).
While debugging with gdb that corefile and doing a backtrace, I get:
#0 0xd21d727c in finddatum () from /usr/lib/libc.so.1
#1 0xd21d634b in dbm_store () from /usr/lib/libc.so.1
#2 0xd0f41b27 in XS_NDBM_File_STORE ()
from /usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/NDBM_File/NDBM_File.so
#3 0xd1e5943a in Perl_pp_entersub ()
from /usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/libperl.so.1
#4 0xd1e8431c in Perl_runops_standard ()
from /usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/libperl.so.1
#5 0xd1e2e34b in S_call_body ()
from /usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/libperl.so.1
#6 0xd1e2e281 in Perl_call_sv ()
from /usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/libperl.so.1
#7 0xd1e2dcf0 in Perl_call_method ()
from /usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/libperl.so.1
#8 0xd1e16d92 in S_magic_methcall ()
from /usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/libperl.so.1
#9 0xd1e17098 in Perl_magic_setpack ()
from /usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/libperl.so.1
#10 0xd1e14ca4 in Perl_mg_set ()
from /usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/libperl.so.1
#11 0xd1e526ae in Perl_pp_sassign ()
from /usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/libperl.so.1
#12 0xd1e8431c in Perl_runops_standard ()
from /usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/libperl.so.1
#13 0xd1e2e34b in S_call_body ()
from /usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/libperl.so.1
#14 0xd1e2e175 in Perl_call_sv ()
---Type <return> to continue, or q <return> to quit---
from /usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE/libperl.so.1
#15 0xd20b95be in modperl_callback (handler=0x8193840, p=0x8b367b0, r=0x8b367e8,
s=0x8111678,
args=0x8aa2c0c) at modperl_callback.c:101
#16 0xd20b9be8 in modperl_callback_run_handlers (idx=6, type=4, r=0x8b367e8, c=0x0,
s=0x8111678, pconf=0x0, plog=0x0, ptemp=0x0, run_mode=MP_HOOK_RUN_FIRST)
at modperl_callback.c:262
#17 0xd20b9f70 in modperl_callback_per_dir (idx=6, r=0x8b367e8,
run_mode=MP_HOOK_RUN_FIRST)
at modperl_callback.c:369
#18 0xd20b5c86 in modperl_response_handler_run (r=0x8b367e8, finish=0) at
mod_perl.c:995
#19 0xd20b5ec2 in modperl_response_handler_cgi (r=0x8b367e8) at mod_perl.c:1090
#20 0x080b0426 in ap_run_handler (r=0x88cb97c) at config.c:152
#21 0x080b07f1 in ap_invoke_handler (r=0x8b367e8) at config.c:364
#22 0x0808b825 in ap_process_request (r=0x8b367e8) at http_request.c:249
#23 0x08087339 in ap_process_http_connection (c=0x8b308a8) at http_core.c:253
#24 0x080b9a76 in ap_run_process_connection (c=0x8b308a8) at connection.c:43
#25 0x080aec3d in child_main (child_num_arg=0) at prefork.c:610
#26 0x080aee67 in make_child (s=0xf, slot=7) at prefork.c:704
#27 0x080af829 in ap_mpm_run (_pconf=0x1, plog=0x814a208, s=0x2) at prefork.c:839
#28 0x080b4853 in main (argc=3, argv=0x8047434) at main.c:623
For me it is obvious that is an error related to mod_perl, so give you more
info, here is part of httpd.conf and startup.pl:
httpd.conf
------------
LoadModule perl_module modules/mod_perl.so
LoadModule apreq_module modules/mod_apreq2.so
LoadModule auth_ldap_module modules/mod_auth_ldap.so
LoadModule php5_module modules/libphp5.so
PerlInitHandler Apache2::Reload
PerlSetVar ReloadAll On
PerlSetVar ReloadTouchFile /usr/local/apache2/conf/reload_modules
PerlRequire "conf/startup.pl"
...
...
...
<Directory />
Options FollowSymLinks IncludesNoExec ExecCGI
AllowOverride None
</Directory>
...
...
...
AddHandler cgi-script .cgi
startup.pl
------------
#!/usr/local/bin/perl
#use Apache2 ();
# enable if the mod_perl 1.0 compatibility is needed
# use Apache::compat ();
# preload all mp2 modules
# use ModPerl::MethodLookup;
# ModPerl::MethodLookup::preload_all_modules();
use ModPerl::Util (); #for CORE::GLOBAL::exit
use Apache2::RequestRec ();
use Apache2::RequestIO ();
use Apache2::RequestUtil ();
#use Apache::Server ();
use Apache2::ServerUtil ();
use Apache2::Connection ();
use Apache2::Log ();
use APR::Table ();
use ModPerl::Registry ();
use Apache2::Const -compile => ':common';
use APR::Const -compile => ':common';
use Net::LDAP ();
use LWP::Simple ();
use AnyDBM_File ();
use lib qw(/misc1/temp_project/bel_ngnsite/libs);
use CgiLib;
use ScmConf;
use ScmLib;
use CinsLib;
use HtmlLib;
use GlossaryLib;
use RefLib;
use DDTSRefLib;
use PccLib;
use HistoryLib;
use CommentLib;
use Dictionary;
1;
I have disabled the "use Apache2 ();" and "use Apache::Server", and also
renaming the other Apache calls from Apache to Apache2 as given in
"http://perl.apache.org/docs/2.0/user/porting/compat.html". I also have modified
the libraries and scripts according to that web instructions.
If anyone could help with this it should be great, because I have been checking
a lot of things, but I haven't found any solution to this issue.
Thanks in advance, and if you need some several info, please ask me for it
Hector
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 44114] - CGI files doesn't compile
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44114>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44114
serai@lans-tv.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
------- Additional Comments From serai@lans-tv.com 2007-12-20 07:01 -------
*** This bug has been marked as a duplicate of 44112 ***
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 44114] - CGI files doesn't compile
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44114>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44114
serai@lans-tv.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org