https://issues.apache.org/bugzilla/show_bug.cgi?id=57328

            Bug ID: 57328
           Summary: Invalid memory access on ap_server_config_defines
           Product: Apache httpd-2
           Version: 2.4.10
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Core
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 32268
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=32268&action=edit
Patch to dump elements of ap_server_config_defines after a graceful restart,
includes also fix for the problem

== Reproduction ==

1) Find attached a patch for server/core.c that dumps the elements of
ap_server_config_defines after a graceful restart.

2) Define some variables in httpd.conf, e.g.

Define arg1=val1
Define arg2=val2
Define arg3=val4

3) By doing some graceful restarts (5-10 times), the increasing number of array
elements with invalid memory references can be observerd. The problem can be
reproduced each time.

== Explanation ==

After a graceful restart, the reset_config_defines() function in server/core.c
resets ap_server_config_defines back to its original pointer
saved_server_config_defines. Henceforth, variable definitions (by means of
Define) are stored in the original array, and thus, leading to invalid memory
access upon next graceful restarts.

== Solution == 
A fix to the problem can be found in the provided patch file and be enabled by
setting the macro constant WITH_FIX to 1.

Regards, Armin

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to