Bug 35864

Summary: status worker doesn't list workers
Product: Tomcat Connectors Reporter: Martin Goldhahn <mgoldhahn>
Component: CommonAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: major CC: Tim.Whittington
Priority: P1    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: Patch that fixes the bug

Description Martin Goldhahn 2005-07-26 12:45:48 UTC
The cause of problem is that the map that stores the worker properties is free'd
after being read. The values of properties, worker_env.worker_list stores just
pointers to the property map. After the property map is free'd the pointers are
invalid. This crashes if one tries to list the workers with the status worker.

Solutions: 1. copy the values (need proper allocation and freeing mem many places)
 2. keep the map during the whole lifetime of the ISAPI filter

The patch I attached uses the second solution.

I started with the first solution but this makes changes in many places necessary.
Comment 1 Martin Goldhahn 2005-07-26 12:48:12 UTC
Created attachment 15778 [details]
Patch that fixes the bug

patch for jakarta-tomcat-connectors\jk\native\iis\jk_isapi_plugin.c
see bug description
Comment 2 Martin Goldhahn 2005-07-26 12:59:27 UTC
This seems to be related to bug 35862
Comment 3 Mladen Turk 2005-09-12 16:11:40 UTC
*** Bug 35924 has been marked as a duplicate of this bug. ***
Comment 4 Mladen Turk 2005-09-12 16:12:26 UTC
Commited. Thanks!