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: [email protected]
        ReportedBy: [EMAIL PROTECTED]


(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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to