|
|
Choosing A Webhost: |
Re: [mp2] Tracing doesn't seem to work on Win32: msg#00221apache.mod-perl.devel
Steve Hay wrote: [...] Can you step through to the write and see why it doesn't show up in the error_log file? This could be a problem in mod_perl, please break at modperl_trace_level_set. It has this code: logfile = s->error_log; /* XXX */ notice XXX, which probably indicates that it could be wrong. That logfile is a static variable, I'd start checking from this place to see if it's a valid apr_file_t variable and then looking inside (using some accessor e.g. you can get the handle via: { apr_status_t rc; apr_os_file_t os_file; rc = apr_os_file_get(&os_file, logfile); if (rc != APR_SUCCESS) { Perl_croak(aTHX_ "filehandle retrieval failed!"); } } It's possible that logfile contains a seemingly valid apr_file_t, but if for some reason s->error_log is closed/reopened, leaving invalid pointer in logfile. remember that modperl_trace_level_set will be called at least twice (start+restart). But may be first try this temp patch: Index: src/modules/perl/modperl_log.c =================================================================== RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_log.c,v retrieving revision 1.8 diff -u -r1.8 modperl_log.c --- src/modules/perl/modperl_log.c 3 Apr 2003 06:25:26 -0000 1.8 +++ src/modules/perl/modperl_log.c 19 Sep 2003 17:47:58 -0000 @@ -2,6 +2,7 @@ #include "apr_lib.h" #include "modperl_trace.h" #include "modperl_log.h" +#include "mod_perl.h" #undef getenv /* from XSUB.h */ @@ -28,6 +29,8 @@ if (!logfile) { return; } + + logfile = modperl_global_get_server_rec()->error_log; if (func) { apr_file_printf(logfile, "%s: ", func); [...]Do other folks have any success using MOD_PERL_TRACE=o on Win32? I assume there should have been loads more than that! Indeed. __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@xxxxxxxxxx http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [mp2] t/filter/in_str_consume.t failure, Stas Bekman |
|---|---|
| Next by Date: | Re: [RESOLVED] Re: [mp2] t/apr/perlio.t test failure, Stas Bekman |
| Previous by Thread: | [mp2] Tracing doesn't seem to work on Win32, Steve Hay |
| Next by Thread: | Re: [mp2] Tracing doesn't seem to work on Win32, Randy Kobes |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |