From d1d018768afd79cb2ecd1805f0d8f3ed23f4076b Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Sun, 29 Jan 2012 13:30:57 +0100 Subject: Upstream tarball 2.2.22 --- docs/manual/developer/API.html.en | 2 +- docs/manual/developer/debugging.html.en | 175 +-------------------------- docs/manual/developer/documenting.html.en | 2 +- docs/manual/developer/documenting.html.zh-cn | 2 +- docs/manual/developer/filters.html.en | 2 +- docs/manual/developer/hooks.html.en | 2 +- docs/manual/developer/index.html.en | 27 ++--- docs/manual/developer/index.html.zh-cn | 3 +- docs/manual/developer/modules.html.en | 2 +- docs/manual/developer/modules.html.ja.utf8 | 6 +- docs/manual/developer/request.html.en | 2 +- docs/manual/developer/thread_safety.html.en | 2 +- 12 files changed, 28 insertions(+), 199 deletions(-) (limited to 'docs/manual/developer') diff --git a/docs/manual/developer/API.html.en b/docs/manual/developer/API.html.en index b161019e..83b3295d 100644 --- a/docs/manual/developer/API.html.en +++ b/docs/manual/developer/API.html.en @@ -1217,6 +1217,6 @@ void *request_config; /* Notes on *this* request */

Available Languages:  en 

\ No newline at end of file diff --git a/docs/manual/developer/debugging.html.en b/docs/manual/developer/debugging.html.en index 1e218698..edba3f90 100644 --- a/docs/manual/developer/debugging.html.en +++ b/docs/manual/developer/debugging.html.en @@ -10,7 +10,7 @@ - -

The allocation mechanisms within APR have a number of debugging modes - that can be used to assist in finding memory problems. This document - describes the modes available and gives instructions on activating - them.

+

+ This document has been removed. +

+ - -
top
-
-

Available debugging options

-

Allocation Debugging - ALLOC_DEBUG

- - -
Debugging support: Define this to enable code which - helps detect re-use of free()d memory and other such - nonsense.
- -

The theory is simple. The FILL_BYTE (0xa5) - is written over all malloc'd memory as we receive it, and - is written over everything that we free up during a - clear_pool. We check that blocks on the free list always - have the FILL_BYTE in them, and we check during - palloc() that the bytes still have FILL_BYTE - in them. If you ever see garbage URLs or whatnot containing lots - of 0xa5s then you know something used data that's been - freed or uninitialized.

- - -

Malloc Support - ALLOC_USE_MALLOC

- - -
If defined all allocations will be done with - malloc() and free()d appropriately at the - end.
- -

This is intended to be used with something like Electric - Fence or Purify to help detect memory problems. Note that if - you're using efence then you should also add in ALLOC_DEBUG. - But don't add in ALLOC_DEBUG if you're using Purify because - ALLOC_DEBUG would hide all the uninitialized read errors - that Purify can diagnose.

- - -

Pool Debugging - POOL_DEBUG

-
This is intended to detect cases where the wrong pool is - used when assigning data to an object in another pool.
- -

In particular, it causes the table_{set,add,merge}n - routines to check that their arguments are safe for the - apr_table_t they're being placed in. It currently only works - with the unix multiprocess model, but could be extended to others.

- - -

Table Debugging - MAKE_TABLE_PROFILE

- - -
Provide diagnostic information about make_table() calls - which are possibly too small.
- -

This requires a recent gcc which supports - __builtin_return_address(). The error_log output will be a - message such as:

-

- table_push: apr_table_t created by 0x804d874 hit limit of 10 -

- -

Use l *0x804d874 to find the - source that corresponds to. It indicates that a apr_table_t - allocated by a call at that address has possibly too small an - initial apr_table_t size guess.

- - -

Allocation Statistics - ALLOC_STATS

- - -
Provide some statistics on the cost of allocations.
- -

This requires a bit of an understanding of how alloc.c - works.

- -
top
-
-

Allowable Combinations

- -

Not all the options outlined above can be activated at the - same time. the following table gives more information.

- - - - - - - - - - - - - - - - -
- ALLOC DEBUGALLOC USE MALLOCPOOL DEBUGMAKE TABLE PROFILEALLOC STATS
ALLOC DEBUG-NoYesYesYes
ALLOC USE MALLOCNo-NoNoNo
POOL DEBUGYesNo-YesYes
MAKE TABLE PROFILEYesNoYes-Yes
ALLOC STATSYesNoYesYes-
- -

Additionally the debugging options are not suitable for - multi-threaded versions of the server. When trying to debug - with these options the server should be started in single - process mode.

-
top
-
-

Activating Debugging Options

- -

The various options for debugging memory are now enabled in - the apr_general.h header file in APR. The various options are - enabled by uncommenting the define for the option you wish to - use. The section of the code currently looks like this - (contained in srclib/apr/include/apr_pools.h)

- -

- /*
- #define ALLOC_DEBUG
- #define POOL_DEBUG
- #define ALLOC_USE_MALLOC
- #define MAKE_TABLE_PROFILE
- #define ALLOC_STATS
- */
-
- typedef struct ap_pool_t {
- - union block_hdr *first;
- union block_hdr *last;
- struct cleanup *cleanups;
- struct process_chain *subprocesses;
- struct ap_pool_t *sub_pools;
- struct ap_pool_t *sub_next;
- struct ap_pool_t *sub_prev;
- struct ap_pool_t *parent;
- char *free_first_avail;
-
- #ifdef ALLOC_USE_MALLOC
- - void *allocation_list;
-
- #endif
- #ifdef POOL_DEBUG
- - struct ap_pool_t *joined;
-
- #endif
- - int (*apr_abort)(int retcode);
- struct datastruct *prog_data;
-
- } ap_pool_t; -

- -

To enable allocation debugging simply move the #define - ALLOC_DEBUG above the start of the comments block and rebuild - the server.

- -

Note

-

In order to use the various options the server must - be rebuilt after editing the header file.

-
-

Available Languages:  en 

\ No newline at end of file diff --git a/docs/manual/developer/documenting.html.en b/docs/manual/developer/documenting.html.en index 82da5c0c..26d5675b 100644 --- a/docs/manual/developer/documenting.html.en +++ b/docs/manual/developer/documenting.html.en @@ -81,6 +81,6 @@

Available Languages:  en  |  zh-cn 

\ No newline at end of file diff --git a/docs/manual/developer/documenting.html.zh-cn b/docs/manual/developer/documenting.html.zh-cn index 72f496c3..02dce3e8 100644 --- a/docs/manual/developer/documenting.html.zh-cn +++ b/docs/manual/developer/documenting.html.zh-cn @@ -77,6 +77,6 @@

可用语言:  en  |  zh-cn 

\ No newline at end of file diff --git a/docs/manual/developer/filters.html.en b/docs/manual/developer/filters.html.en index 6b4637ab..bc2c2ef0 100644 --- a/docs/manual/developer/filters.html.en +++ b/docs/manual/developer/filters.html.en @@ -205,6 +205,6 @@ Default_handler --> sub_request_core

Available Languages:  en 

\ No newline at end of file diff --git a/docs/manual/developer/hooks.html.en b/docs/manual/developer/hooks.html.en index 13c90bda..57b39b63 100644 --- a/docs/manual/developer/hooks.html.en +++ b/docs/manual/developer/hooks.html.en @@ -234,6 +234,6 @@

Available Languages:  en 

\ No newline at end of file diff --git a/docs/manual/developer/index.html.en b/docs/manual/developer/index.html.en index ab2d0bc1..6cfc4dcb 100644 --- a/docs/manual/developer/index.html.en +++ b/docs/manual/developer/index.html.en @@ -5,7 +5,7 @@ This file is generated from xml source: DO NOT EDIT XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> -Developer Documentation for Apache 2.0 - Apache HTTP Server +Developer Documentation for Apache 2.x - Apache HTTP Server @@ -16,18 +16,19 @@
<-

Developer Documentation for Apache 2.0

+Apache > HTTP Server > Documentation > Version 2.2

Developer Documentation for Apache 2.x

Available Languages:  en  |  zh-cn 

-

Many of the documents on these Developer pages are lifted - from Apache 1.3's documentation. While they are all being - updated to Apache 2.0, they are in different stages of - progress. Please be patient, and point out any discrepancies or +

Warning

+

Many of the documents listed here are in need of update. + They are in different stages of progress. + Please be patient, and point out any discrepancies or errors on the developer/ pages directly to the dev@httpd.apache.org mailing list.

+
top

External Resources

\ No newline at end of file diff --git a/docs/manual/developer/index.html.zh-cn b/docs/manual/developer/index.html.zh-cn index 9ea1aeeb..dd713441 100644 --- a/docs/manual/developer/index.html.zh-cn +++ b/docs/manual/developer/index.html.zh-cn @@ -21,6 +21,7 @@

可用语言:  en  |  zh-cn 

+
此翻译可能过期。要了解最近的更改,请阅读英文版。

开发者页面的许多文档都来自于 Apache 1.3。当更新到 Apache 2.0 时,它们可能位于不同的阶段。请耐心等待,或者直接向 @@ -71,6 +72,6 @@

可用语言:  en  |  zh-cn 

\ No newline at end of file diff --git a/docs/manual/developer/modules.html.en b/docs/manual/developer/modules.html.en index 79e241ac..d59d2e1e 100644 --- a/docs/manual/developer/modules.html.en +++ b/docs/manual/developer/modules.html.en @@ -268,6 +268,6 @@ module MODULE_VAR_EXPORT module_name_module =

Available Languages:  en  |  ja 

\ No newline at end of file diff --git a/docs/manual/developer/modules.html.ja.utf8 b/docs/manual/developer/modules.html.ja.utf8 index 659136ec..1afbdf0d 100644 --- a/docs/manual/developer/modules.html.ja.utf8 +++ b/docs/manual/developer/modules.html.ja.utf8 @@ -18,7 +18,7 @@

モジュールの Apache 1.3 から Apache 2.0 への移植

-

Available Languages:  en  | +

翻訳済み言語:  en  |  ja 

@@ -266,9 +266,9 @@ module MODULE_VAR_EXPORT module_name_module =
-

Available Languages:  en  | +

翻訳済み言語:  en  |  ja 

\ No newline at end of file diff --git a/docs/manual/developer/request.html.en b/docs/manual/developer/request.html.en index 58d0648a..22a2c5cd 100644 --- a/docs/manual/developer/request.html.en +++ b/docs/manual/developer/request.html.en @@ -255,6 +255,6 @@ case SATISFY_ANY:

Available Languages:  en 

\ No newline at end of file diff --git a/docs/manual/developer/thread_safety.html.en b/docs/manual/developer/thread_safety.html.en index a5150927..f313b1b8 100644 --- a/docs/manual/developer/thread_safety.html.en +++ b/docs/manual/developer/thread_safety.html.en @@ -276,6 +276,6 @@

Available Languages:  en 

\ No newline at end of file -- cgit v1.2.3