You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by "R. D. Stoll" <Ro...@t-online.de> on 2000/08/30 20:09:35 UTC

Segmentation fault

Hi,

I have some trouble when installing embperl-1.3b5 on Linux with Apache
1.3.12 BEN SSL/1.39.
Mod_Perl 1.24 is installed and works properly.
On my System is PHP4 as a Apache Module installed also.

Embperl is configured to work with mod_perl.

In httpsd.conf I have this configuration:

PerlModule HTML::Embperl
SetEnv EMBPERL_DEBUG 2285
<Files *.epl>
SetHandler  perl-script
PerlHandler HTML::Embperl
Options     ExecCGI
</files>
AddType text/html .epl

When I try to get a Embperl-Document test.epl I get a child pid ... exit
signal, Segmentation fault(11)

Any idea what is going wrong?

Thank You very much
Rolf



Re: Apache DBI error

Posted by Gerald Richter <ri...@ecos.de>.
> Has anyone ever seen this:
>
> Starting httpd.....defined(@array) is deprecated at
> /usr/local/lib/perl5/site_perl/5.6.0/Apache/DBI.pm line 135.
>         (Maybe you should just omit the defined()?)
>
>
> Know of any way to fix it?
>

Change the

if (defined @ChildConnect)

in line 135 of Apache/DBI.pm to

if (@ChildConnect)

of course you can remove the if block at all, because the for in the next
line will not iterate on an empty array anyway.

Edmund,

is this a know issue? if not please fix it in your next release, because the
result of a defined on a aggreate isn't defined in Perl, so you should avoid
it.

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------




Apache DBI error

Posted by Joe Lauer <jo...@rootlevel.com>.
Has anyone ever seen this:

Starting httpd.....defined(@array) is deprecated at
/usr/local/lib/perl5/site_perl/5.6.0/Apache/DBI.pm line 135.
        (Maybe you should just omit the defined()?)


Know of any way to fix it?

______________________________________________________
joe lauer                      rootlevel
product developer              743 beaubien, suite 300
p.313.961.4407 x302            detroit, mi 48226
f.313.961.4568                 www.rootlevel.com

For additional commands, e-mail: embperl-help@perl.apache.org


Re: Segmentation fault

Posted by Gerald Richter <ri...@ecos.de>.
Hi,
>
> I have some trouble when installing embperl-1.3b5 on Linux with Apache
> 1.3.12 BEN SSL/1.39.
> Mod_Perl 1.24 is installed and works properly.
> On my System is PHP4 as a Apache Module installed also.
>
>
> When I try to get a Embperl-Document test.epl I get a child pid ... exit
> signal, Segmentation fault(11)
>

Does the "make test" work ? If not, run

make clean
perl Makefile.PL debug
make test TESTARGS="--gdb"

and send me the stack resulting stackbacktrace. If "make test" succeeds,
then it would be very helpfull if you can run Apache under gdb and make a
stackbacktrace of the crash (run Apache with the -X commandline option)

gdb /usr/local/apache/bin/httpd
set args -X -f /path/to/httpd.conf   ... more options here
r
--> request your document -> SIGSEGV
s
BT


Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------