httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24450] New: - GprofDir directive generates random directories
Date Thu, 06 Nov 2003 01:30:17 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24450>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24450

GprofDir directive generates random directories

           Summary: GprofDir directive generates random directories
           Product: Apache httpd-2.0
           Version: HEAD
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: prefork
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: Christopher.D.Knight@nasa.gov


(Note that this is with release 2.0.48 which is not listed in the Version box.)

If you define GprofDir in the Apache configuration, directories with random
characters are generated.

It turns out that it's a problem with chdir_for_gprof in
server/mpm/mpm_prefork/prefork.c where "buf" is tested/used without
initialization. Here's the patch:

202a203
>       *buf = '\0';

Documentation for the GprofDir and profiling in general would be greatly
appreciated. I've been unable to get Apache to generate gmon.out, even with the
"-pg -DGPROF" CFLAGS.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message