Skip to content

mod_macro: Keep the "used on line" label in the config pool [2.4.x] - #1088

Merged
arturobernalg merged 1 commit into
apache:2.4.xfrom
arturobernalg:backport/httpd-70378-macro-info-filename
Nov 26, 2026
Merged

arturobernalg merged 1 commit into
apache:2.4.xfrom
arturobernalg:backport/httpd-70378-macro-info-filename

Conversation

@arturobernalg

Copy link
Copy Markdown
Member

Backport of #1085 (480ad66 on trunk) to 2.4.x. Only conflict was the module list in test/modules/core/env.py (2.4.x also loads suexec).

test_018_macro_info_filename.py fails on 2.4.x without the fix and passes with it.

BZ: https://bz.apache.org/bugzilla/show_bug.cgi?id=70378


  • Code follows the httpd style guide.
  • No new log messages.
  • changes-entries/70378.txt included.
  • pyhttpd test in test/modules/core; modules/core passes locally.

)

use_macro() built the label in cmd->temp_pool, but ap_build_config_sub()
stores only a pointer to it as the filename of each directive expanded
from the macro. The temporary pool is destroyed after the configuration
is read, so mod_info could print freed memory as "In file:".

Submitted by: Leo Bicknell <bicknell@ufp.org>

PR 70378.

(cherry picked from commit 480ad66)
@arturobernalg
arturobernalg merged commit 4dec03f into apache:2.4.x Nov 26, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants