trafficserver icon indicating copy to clipboard operation
trafficserver copied to clipboard

Move plugin_init for verify cmd

Open ezelkow1 opened this issue 3 years ago • 2 comments

plugin_init calls api_init which will intialize all the global hooks needed for lifecycle and other plugins. Without doing this those hook objects are empty so if a plugin (such as lua) makes a call to add a lifecycle hook on remapinit, this will crash since they haven't been initialized. This occurs during the urlRewriteVerify step of verification where it tries to load plugins or at least initialize them, these will crash

ezelkow1 avatar Sep 22 '22 21:09 ezelkow1

[approve ci]

ezelkow1 avatar Sep 23 '22 16:09 ezelkow1

Cherry-picked to v9.2.x

zwoop avatar Oct 04 '22 15:10 zwoop