Re: Another Error in Apache::ASP and Perl 5.6.0
Hi, I upgraded my gcc to 2.95.2, re-compiled Perl 5.6.0, Apache 1.3.12, and mod_perl 1.22. I put "PerlModule Apache::ASP" and "PerlModule Apache::DBI" in the httpd.conf. Then it worked. I guess the problem was some confliction between mod_perl and other Apache modules (I installed PHP 4RC1 and fastcgi before, this time I did not install them). Di, Yu 4.8
Re: Another Error in Apache::ASP and Perl 5.6.0
Hi, my modperl & apache are compiled by myself, Perl 5.005_03 was included in Redhat, Perl 5.6.0 was compiled by myself. I will try modperl 1.21 and apache 1.3.11, and see which one's new version is causing troubles. Di, Yu 4.7 On Fri, 7 Apr 2000, Joshua Chamas wrote: > I would recompile all of your perl from scratch, as > well as modperl & apache. The RedHat guys are notorious > for building perls and modperl that don't work sometimes. > > --Joshua > > Yu Di wrote: > > > > Hi, I also changed Perl to 5.005_03, and this problem still exists, so I > > think it is the problem between Apache 1.3.12, mod_perl 1.22, and DBI or > > DBD::mysql. More likely, I think it is with DBI, because if I put > > "PerlModule Apache::DBI" in my httpd.conf, this error will also occur if I > > visit an ASP file(this was found with Perl 5.6, not tested with Perl > > 5.005_03). I am running the programs on Linux 2.2.12-20(Redhat 6.1), The C > > compiler for Perl Modules and all these systems is the default one in > > Redhat 6.1, I think egcs 2.91-66. > > > > Di, Yu > > 4.7 > > > > On Fri, 7 Apr 2000, Joshua Chamas wrote: > > > > > > > > Sounds like an odd conflict between 5.6, mod_perl and > > > DBI or DBD::mysql. Anyone know how to work through > > > these issues? This is likely platform dependent, so > > > will need relevant advice, what O/S are you running again? > > > > > > --Joshua > > > > > > Yu Di wrote: > > > > > > > > Hi, I have isolated the problem, but it just made me more puzzled. The > > > > problem is not in that file itself, but in "homepage.htm" which is also an > > > > ASP file, in which I tried to open a MySQL connection. When I call > > > > DBI->connect("DBI:mysql:database=...;host=...","myusername","mypasswd"), > > > > it will generate the segmentation fault. But the same statement will > > > > execute just well if put into a standalone Perl program, so I am really > > > > puzzled by what's going on here. > > > > > > > > Di, Yu > > > > 4.6 > > > > > > > > On Tue, 4 Apr 2000, Joshua Chamas wrote: > > > > > > > > > Yu Di wrote: > > > > > > > > > > > > This program has been tested under Perl5.005_03, Apache 1.3.11, mod_perl > > > > > > 1.21 on another machine. my.conf is a configuration file for this program. > > > > > > > > > > > > Lynx will report "Alert!: Unexpected network read error; connection > > > > > > aborted." while I try to connect to it, and the server error log will show > > > > > > a "[Tue Apr 4 16:36:22 2000] [notice] child pid 964 exit signal > > > > > > Segmentation fault (11)". > > > > > > > > > > > > I have changed ASP.pm as I wrote last time, for if I did not do so, I will > > > > > > get other error messages. > > > > > > > > > > > > So is it that Apache::ASP is currently not compatible with Perl 5.6? > > > > > > > > > > > > > > > > Nothing in your program seemed particularly odd, and > > > > > I have not tested Apache::ASP under 5.6, nor may I for > > > > > a while. Because Apache::ASP uses so many modules to > > > > > do its job, it may be tough to track this down, but > > > > > I suspect an interaction with MLDBM & SDBM_File is > > > > > at work here because you have so much $Application->{Config} > > > > > writing going on. > > > > > > > > > > Can you print out in different parts of your program and > > > > > isolate the line that causes the segfault? > > > > > > > > > > --Joshua > > > > > > > > > > _ > > > > > Joshua Chamas Chamas Enterprises Inc. > > > > > NodeWorks >> free web link monitoring Huntington Beach, CA USA > > > > > http://www.nodeworks.com1-714-625-4051 > > > > > > > > > > -- > _ > Joshua Chamas Chamas Enterprises Inc. > NodeWorks >> free web link monitoring Huntington Beach, CA USA > http://www.nodeworks.com1-714-625-4051 >
Re: Another Error in Apache::ASP and Perl 5.6.0
I would recompile all of your perl from scratch, as well as modperl & apache. The RedHat guys are notorious for building perls and modperl that don't work sometimes. --Joshua Yu Di wrote: > > Hi, I also changed Perl to 5.005_03, and this problem still exists, so I > think it is the problem between Apache 1.3.12, mod_perl 1.22, and DBI or > DBD::mysql. More likely, I think it is with DBI, because if I put > "PerlModule Apache::DBI" in my httpd.conf, this error will also occur if I > visit an ASP file(this was found with Perl 5.6, not tested with Perl > 5.005_03). I am running the programs on Linux 2.2.12-20(Redhat 6.1), The C > compiler for Perl Modules and all these systems is the default one in > Redhat 6.1, I think egcs 2.91-66. > > Di, Yu > 4.7 > > On Fri, 7 Apr 2000, Joshua Chamas wrote: > > > > > Sounds like an odd conflict between 5.6, mod_perl and > > DBI or DBD::mysql. Anyone know how to work through > > these issues? This is likely platform dependent, so > > will need relevant advice, what O/S are you running again? > > > > --Joshua > > > > Yu Di wrote: > > > > > > Hi, I have isolated the problem, but it just made me more puzzled. The > > > problem is not in that file itself, but in "homepage.htm" which is also an > > > ASP file, in which I tried to open a MySQL connection. When I call > > > DBI->connect("DBI:mysql:database=...;host=...","myusername","mypasswd"), > > > it will generate the segmentation fault. But the same statement will > > > execute just well if put into a standalone Perl program, so I am really > > > puzzled by what's going on here. > > > > > > Di, Yu > > > 4.6 > > > > > > On Tue, 4 Apr 2000, Joshua Chamas wrote: > > > > > > > Yu Di wrote: > > > > > > > > > > This program has been tested under Perl5.005_03, Apache 1.3.11, mod_perl > > > > > 1.21 on another machine. my.conf is a configuration file for this program. > > > > > > > > > > Lynx will report "Alert!: Unexpected network read error; connection > > > > > aborted." while I try to connect to it, and the server error log will show > > > > > a "[Tue Apr 4 16:36:22 2000] [notice] child pid 964 exit signal > > > > > Segmentation fault (11)". > > > > > > > > > > I have changed ASP.pm as I wrote last time, for if I did not do so, I will > > > > > get other error messages. > > > > > > > > > > So is it that Apache::ASP is currently not compatible with Perl 5.6? > > > > > > > > > > > > > Nothing in your program seemed particularly odd, and > > > > I have not tested Apache::ASP under 5.6, nor may I for > > > > a while. Because Apache::ASP uses so many modules to > > > > do its job, it may be tough to track this down, but > > > > I suspect an interaction with MLDBM & SDBM_File is > > > > at work here because you have so much $Application->{Config} > > > > writing going on. > > > > > > > > Can you print out in different parts of your program and > > > > isolate the line that causes the segfault? > > > > > > > > --Joshua > > > > > > > > _ > > > > Joshua Chamas Chamas Enterprises Inc. > > > > NodeWorks >> free web link monitoring Huntington Beach, CA USA > > > > http://www.nodeworks.com1-714-625-4051 > > > > > > -- _ Joshua Chamas Chamas Enterprises Inc. NodeWorks >> free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051
Re: Another Error in Apache::ASP and Perl 5.6.0
Hi, I also changed Perl to 5.005_03, and this problem still exists, so I think it is the problem between Apache 1.3.12, mod_perl 1.22, and DBI or DBD::mysql. More likely, I think it is with DBI, because if I put "PerlModule Apache::DBI" in my httpd.conf, this error will also occur if I visit an ASP file(this was found with Perl 5.6, not tested with Perl 5.005_03). I am running the programs on Linux 2.2.12-20(Redhat 6.1), The C compiler for Perl Modules and all these systems is the default one in Redhat 6.1, I think egcs 2.91-66. Di, Yu 4.7 On Fri, 7 Apr 2000, Joshua Chamas wrote: > > Sounds like an odd conflict between 5.6, mod_perl and > DBI or DBD::mysql. Anyone know how to work through > these issues? This is likely platform dependent, so > will need relevant advice, what O/S are you running again? > > --Joshua > > Yu Di wrote: > > > > Hi, I have isolated the problem, but it just made me more puzzled. The > > problem is not in that file itself, but in "homepage.htm" which is also an > > ASP file, in which I tried to open a MySQL connection. When I call > > DBI->connect("DBI:mysql:database=...;host=...","myusername","mypasswd"), > > it will generate the segmentation fault. But the same statement will > > execute just well if put into a standalone Perl program, so I am really > > puzzled by what's going on here. > > > > Di, Yu > > 4.6 > > > > On Tue, 4 Apr 2000, Joshua Chamas wrote: > > > > > Yu Di wrote: > > > > > > > > This program has been tested under Perl5.005_03, Apache 1.3.11, mod_perl > > > > 1.21 on another machine. my.conf is a configuration file for this program. > > > > > > > > Lynx will report "Alert!: Unexpected network read error; connection > > > > aborted." while I try to connect to it, and the server error log will show > > > > a "[Tue Apr 4 16:36:22 2000] [notice] child pid 964 exit signal > > > > Segmentation fault (11)". > > > > > > > > I have changed ASP.pm as I wrote last time, for if I did not do so, I will > > > > get other error messages. > > > > > > > > So is it that Apache::ASP is currently not compatible with Perl 5.6? > > > > > > > > > > Nothing in your program seemed particularly odd, and > > > I have not tested Apache::ASP under 5.6, nor may I for > > > a while. Because Apache::ASP uses so many modules to > > > do its job, it may be tough to track this down, but > > > I suspect an interaction with MLDBM & SDBM_File is > > > at work here because you have so much $Application->{Config} > > > writing going on. > > > > > > Can you print out in different parts of your program and > > > isolate the line that causes the segfault? > > > > > > --Joshua > > > > > > _ > > > Joshua Chamas Chamas Enterprises Inc. > > > NodeWorks >> free web link monitoring Huntington Beach, CA USA > > > http://www.nodeworks.com1-714-625-4051 > > > >
Re: Another Error in Apache::ASP and Perl 5.6.0
Sounds like an odd conflict between 5.6, mod_perl and DBI or DBD::mysql. Anyone know how to work through these issues? This is likely platform dependent, so will need relevant advice, what O/S are you running again? --Joshua Yu Di wrote: > > Hi, I have isolated the problem, but it just made me more puzzled. The > problem is not in that file itself, but in "homepage.htm" which is also an > ASP file, in which I tried to open a MySQL connection. When I call > DBI->connect("DBI:mysql:database=...;host=...","myusername","mypasswd"), > it will generate the segmentation fault. But the same statement will > execute just well if put into a standalone Perl program, so I am really > puzzled by what's going on here. > > Di, Yu > 4.6 > > On Tue, 4 Apr 2000, Joshua Chamas wrote: > > > Yu Di wrote: > > > > > > This program has been tested under Perl5.005_03, Apache 1.3.11, mod_perl > > > 1.21 on another machine. my.conf is a configuration file for this program. > > > > > > Lynx will report "Alert!: Unexpected network read error; connection > > > aborted." while I try to connect to it, and the server error log will show > > > a "[Tue Apr 4 16:36:22 2000] [notice] child pid 964 exit signal > > > Segmentation fault (11)". > > > > > > I have changed ASP.pm as I wrote last time, for if I did not do so, I will > > > get other error messages. > > > > > > So is it that Apache::ASP is currently not compatible with Perl 5.6? > > > > > > > Nothing in your program seemed particularly odd, and > > I have not tested Apache::ASP under 5.6, nor may I for > > a while. Because Apache::ASP uses so many modules to > > do its job, it may be tough to track this down, but > > I suspect an interaction with MLDBM & SDBM_File is > > at work here because you have so much $Application->{Config} > > writing going on. > > > > Can you print out in different parts of your program and > > isolate the line that causes the segfault? > > > > --Joshua > > > > _ > > Joshua Chamas Chamas Enterprises Inc. > > NodeWorks >> free web link monitoring Huntington Beach, CA USA > > http://www.nodeworks.com1-714-625-4051 > >
Re: Another Error in Apache::ASP and Perl 5.6.0
Hi, I have isolated the problem, but it just made me more puzzled. The problem is not in that file itself, but in "homepage.htm" which is also an ASP file, in which I tried to open a MySQL connection. When I call DBI->connect("DBI:mysql:database=...;host=...","myusername","mypasswd"), it will generate the segmentation fault. But the same statement will execute just well if put into a standalone Perl program, so I am really puzzled by what's going on here. Di, Yu 4.6 On Tue, 4 Apr 2000, Joshua Chamas wrote: > Yu Di wrote: > > > > This program has been tested under Perl5.005_03, Apache 1.3.11, mod_perl > > 1.21 on another machine. my.conf is a configuration file for this program. > > > > Lynx will report "Alert!: Unexpected network read error; connection > > aborted." while I try to connect to it, and the server error log will show > > a "[Tue Apr 4 16:36:22 2000] [notice] child pid 964 exit signal > > Segmentation fault (11)". > > > > I have changed ASP.pm as I wrote last time, for if I did not do so, I will > > get other error messages. > > > > So is it that Apache::ASP is currently not compatible with Perl 5.6? > > > > Nothing in your program seemed particularly odd, and > I have not tested Apache::ASP under 5.6, nor may I for > a while. Because Apache::ASP uses so many modules to > do its job, it may be tough to track this down, but > I suspect an interaction with MLDBM & SDBM_File is > at work here because you have so much $Application->{Config} > writing going on. > > Can you print out in different parts of your program and > isolate the line that causes the segfault? > > --Joshua > > _ > Joshua Chamas Chamas Enterprises Inc. > NodeWorks >> free web link monitoring Huntington Beach, CA USA > http://www.nodeworks.com1-714-625-4051 >
Re: Another Error in Apache::ASP and Perl 5.6.0
Yu Di wrote: > > This program has been tested under Perl5.005_03, Apache 1.3.11, mod_perl > 1.21 on another machine. my.conf is a configuration file for this program. > > Lynx will report "Alert!: Unexpected network read error; connection > aborted." while I try to connect to it, and the server error log will show > a "[Tue Apr 4 16:36:22 2000] [notice] child pid 964 exit signal > Segmentation fault (11)". > > I have changed ASP.pm as I wrote last time, for if I did not do so, I will > get other error messages. > > So is it that Apache::ASP is currently not compatible with Perl 5.6? > Nothing in your program seemed particularly odd, and I have not tested Apache::ASP under 5.6, nor may I for a while. Because Apache::ASP uses so many modules to do its job, it may be tough to track this down, but I suspect an interaction with MLDBM & SDBM_File is at work here because you have so much $Application->{Config} writing going on. Can you print out in different parts of your program and isolate the line that causes the segfault? --Joshua _ Joshua Chamas Chamas Enterprises Inc. NodeWorks >> free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051
Re: Another Error in Apache::ASP and Perl 5.6.0
I added that before my "", no change. BTW, the Apache::Registry test program always worked correctly. Di, Yu 4.4 On Tue, 4 Apr 2000, Doug MacEachern wrote: > On Tue, 4 Apr 2000, Yu Di wrote: > > > Hi, I did compile it statically. But currently for my program, I always > > get such errors. > > > > My Apache is 1.3.12, Perl is 5.6.0, mod_perl is 1.22. > > > > The relevant part in my httpd.conf is: > > any difference if you pre-load: > > PerlModule Apache::Registry Apache::ASP > > ? > >
Re: Another Error in Apache::ASP and Perl 5.6.0
On Tue, 4 Apr 2000, Yu Di wrote: > Hi, I did compile it statically. But currently for my program, I always > get such errors. > > My Apache is 1.3.12, Perl is 5.6.0, mod_perl is 1.22. > > The relevant part in my httpd.conf is: any difference if you pre-load: PerlModule Apache::Registry Apache::ASP ?
Re: Another Error in Apache::ASP and Perl 5.6.0
Hi, I did compile it statically. But currently for my program, I always get such errors. My Apache is 1.3.12, Perl is 5.6.0, mod_perl is 1.22. The relevant part in my httpd.conf is: SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI SetHandler perl-script PerlHandler Apache::ASP PerlSetVar Global /tmp SetHandler perl-script PerlHandler Apache::ASP PerlSetVar Global /tmp My program is: <% unless ($Application->{Config}) { open CONFIGURE, ") { my ($name, $value) = ($_ =~ /(\w+)\s*=\s*(.+)$/); $config->{$name} = $value; $Application->{Config} = $config; } close CONFIGURE; } %> This program has been tested under Perl5.005_03, Apache 1.3.11, mod_perl 1.21 on another machine. my.conf is a configuration file for this program. Lynx will report "Alert!: Unexpected network read error; connection aborted." while I try to connect to it, and the server error log will show a "[Tue Apr 4 16:36:22 2000] [notice] child pid 964 exit signal Segmentation fault (11)". I have changed ASP.pm as I wrote last time, for if I did not do so, I will get other error messages. So is it that Apache::ASP is currently not compatible with Perl 5.6? Di, Yu 4.4 ~ On Mon, 3 Apr 2000, Joshua Chamas wrote: > Yu Di wrote: > > > > Hi, after I reported the last error, I found that Apache::ASP was still > > not working correctly, as when I try to access an ASP file, sometimes the > > server will report > > "[notice] child pid 561 exit signal Segmentation fault (11)" > > and the file will not be able to be accessed. > > > > Is this an error of Apache::ASP? > > > > Di, Yu > > 4.2 > > > No idea what the problem is, as I have not seen this before. > If this is linux, try to statically compile your apache/modperl, > no DSO, LoadModule stuff. > > -- Joshua > _ > Joshua Chamas Chamas Enterprises Inc. > NodeWorks >> free web link monitoring Huntington Beach, CA USA > http://www.nodeworks.com1-714-625-4051 >
Re: Another Error in Apache::ASP and Perl 5.6.0
Yu Di wrote: > > Hi, after I reported the last error, I found that Apache::ASP was still > not working correctly, as when I try to access an ASP file, sometimes the > server will report > "[notice] child pid 561 exit signal Segmentation fault (11)" > and the file will not be able to be accessed. > > Is this an error of Apache::ASP? > > Di, Yu > 4.2 No idea what the problem is, as I have not seen this before. If this is linux, try to statically compile your apache/modperl, no DSO, LoadModule stuff. -- Joshua _ Joshua Chamas Chamas Enterprises Inc. NodeWorks >> free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051
Another Error in Apache::ASP and Perl 5.6.0
Hi, after I reported the last error, I found that Apache::ASP was still not working correctly, as when I try to access an ASP file, sometimes the server will report "[notice] child pid 561 exit signal Segmentation fault (11)" and the file will not be able to be accessed. Is this an error of Apache::ASP? Di, Yu 4.2