masaori335 commented on issue #9331:
URL: https://github.com/apache/trafficserver/issues/9331#issuecomment-1403225725

   I got repro. The steps are below.
   
   1. load s3_auth plugin with the expiration setting in the past
   .e.g - `expiration=1660768600`
   2. change the expiration set to 0 and wait for the s3_auth plugin to reload 
the config automatically
   3. touch remap.config
   4. run `traffic_ctl config reload`
   
   ```
   traffic_server: received signal 10 (Bus error: 10)
   traffic_server - STACK TRACE:
   0   traffic_server                      0x000000000d88cd80 
_Z19crash_logger_invokeiP9__siginfoPv + 112
   1   libsystem_platform.dylib            0x00007ff817055c1d _sigtramp + 29
   2   ???                                 0x0000000000000048 0x0 + 72
   3   s3_auth.so                          0x000000000e468bf3 
TSRemapDeleteInstance + 19
   4   traffic_server                      0x000000000d9a8833 
_ZN15RemapPluginInfo12doneInstanceEPv + 35
   5   traffic_server                      0x000000000d9ad231 
_ZN13PluginFactory10deactivateEv + 177
   6   traffic_server                      0x000000000d9b4149 
_ZN10UrlRewriteD2Ev + 153
   7   traffic_server                      0x000000000d9b44be 
_ZN10UrlRewriteD0Ev + 14
   8   traffic_server                      0x000000000dae6748 
_ZN19DeleterContinuationI10UrlRewriteE8dieEventEiPv + 24
   9   traffic_server                      0x000000000db6fe0f 
_ZN7EThread13process_eventEP5Eventi + 607
   10  traffic_server                      0x000000000db7020a 
_ZN7EThread13process_queueEP5QueueI5EventNS1_9Link_linkEEPiS5_ + 458
   11  traffic_server                      0x000000000db7060a 
_ZN7EThread15execute_regularEv + 442
   12  traffic_server                      0x000000000db70be5 
_ZN7EThread7executeEv + 373
   13  traffic_server                      0x000000000db6f2eb 
_ZL21spawn_thread_internalPv + 75
   14  libsystem_pthread.dylib             0x00007ff81702b259 _pthread_start + 
125
   15  libsystem_pthread.dylib             0x00007ff817026c7b thread_start + 15
   ```
   
   The problem is the s3_auth plugin's auto-reloading config feature scheduled 
an event that is tracked by `S3Config:: _conf_rld_act`. However, it's not 
cleared when the event is handled. So when ATS reloads the remap config, the 
destructor of `S3Config` tries to cancel the already done event. 
   
   This is fixed by #9329.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to