Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

ptkdb debugger under apache connection to X issue?

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  messages in error_log  
Author Message
owain

External


Since: Jul 14, 2004
Posts: 1



(Msg. 1) Posted: Thu Jul 15, 2004 1:57 am
Post subject: ptkdb debugger under apache connection to X issue?
Archived from groups: alt>apache>configuration (more info?)

I am having a problem running ptkdb when invoked by a local httpd server. The script below works ok and will fire up ptkdb ok from a bash shell:

#!/usr/bin/perl -w -d:ptkdb
#!/usr/bin/perl -wT

$|++;

# for debugger when httpd invokes CGI
#sub BEGIN {$ENV{DISPLAY} = "localhost:0.0"; };

use strict;


print "Content-type: text/html\n\n";

use CGI;
use FindBin;
my $scriptdir = "$FindBin::Bin";
my $tmpldir = "$scriptdir/../templates/";
use lib "/home/owain/www/v2/perl-lib";

my $q = new CGI;
my $t = new_template("hello.tmpl");


my $script = $q->param("script") || "Initial";
my @loop = qw (home about help players);
my @items;
while (@loop) {
push @items, {action => shift @loop};

}
$t->param(script=> $script,menu => \@items);
print $t->output();

exit;

When I run it through a browser I get the following:

[Wed Jul 14 22:02:01 2004] [error] [client 10.0.0.2] Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/5.8.3/Devel/ptkdb.pm line 1120.
[Wed Jul 14 22:02:07 2004] [error] [client 10.0.0.2] couldn't connect to display "localhost:0.0" at /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/Tk/MainWindow.pm line 55.
[Wed Jul 14 22:02:07 2004] [error] [client 10.0.0.2] MainWindow->new() at /usr/lib/perl5/5.8.3/Devel/ptkdb.pm line 1147
[Wed Jul 14 22:02:07 2004] [error] [client 10.0.0.2] Can't call method "setup_main_window" on unblessed reference at /usr/lib/perl5/5.8.3/Devel/ptkdb.pm line 4151.
[Wed Jul 14 22:02:07 2004] [error] [client 10.0.0.2] END failed--call queue aborted.
[Wed Jul 14 22:02:07 2004] [error] [client 10.0.0.2] Premature end of script headers: index.cgi

I have the following setup:

Apache 2.0.49
Perl 5.8.3
Tk 804.027
ptkdb 1.1091
Fedora Core 1 with all the patches applied

My reasoning is as follows:

1. ptkdb is installed ok with tk since it works fine from a bash shell under my userid
2. i have added all of the xhosts I can
3. changed httpd user to mine to see if that works
4. set env variable for apache virtual host just in case it was some sort of tainting problem on ENV which came up in googlegroups.
5. got to be some sort of X security thing???? And I don't really understand how this works.

Any ideas out there?

Thanks,

Owain.

 >> Stay informed about: ptkdb debugger under apache connection to X issue? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Possible Apache configuration/router issue? - Okay, I'm at the end of my proverbial rope. I've got a Windows XP Pro box running Apache 1.3.27. I use Argosoft for my mail client, and I've changed the configuration of it so that I can access the web-based client on port 443 (getting around funky wor...

Apache - TOO MANY CONNECTIONS - Hello, my sites keep on getting too many connections. I started apache on 250 max connections and it kept getting too many, so I put it to 500, and the same all the way up to 1000. Its now on 1500. when I run netstat -s Tcp: 64913 active connections...

Apache Connection Request - Hi, I just want to know if this is true: I've heard that everytime the Apache server receives a connection request, it does all allocations in a particular "region" on the heap and then deletes the whole region once the connection is lost? ...

Apache 2 - Connection to localhost fails - I have Mandrake 9.2 with Apache 2 installed as part of the Advanced Extranet Server. Everything worked OK for a few days and suddenly no pages are served by apache despite the fact that httpd is up and running and I can connect to the server with Webmin...

Apache tcp/ip connection stuck problem - Hi, I am running Apache on redhat fedora core1 with ajp tomcat. I am using DSL from bellsouth (if that has anything to do with it) with a static ip. I got this strange problem where sometimes large pictures got stuck (the transmition stops and neighte...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]