Actually, here's the patch I just did, based on the comments in that bug report
--- jk_map_orig.c 2013-10-24 10:42:53.000000000 -0500 +++ jk_map.c 2013-10-24 10:43:34.000000000 -0500 @@ -184,13 +184,14 @@ int jk_map_get_int(jk_map_t *m, const char *name, int def) { char buf[100]; + char buf2[100]; const char *rc; size_t len; int int_res; int multit = 1; - sprintf(buf, "%d", def); - rc = jk_map_get_string(m, name, buf); + sprintf(buf2, "%d", def); + rc = jk_map_get_string(m, name, buf2); len = strlen(rc); if (len) { That seemed to do it for me - mod_jk no longer crashes. I'm curious as to why this is necessary though - what difference does creating a second buffer on the stack make? -p On Thu, Oct 24, 2013 at 8:19 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Peter, > > On 10/24/13 8:47 AM, Peter Aarestad wrote: > > If you could provide a patch, that would be great! I'd be more > > than happy to try that out. > > Okay, I'll try to get you one today. I'm just about to upgrade to > Mavericks so I can suffer, too ;) > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.14 (Darwin) > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQIcBAEBCAAGBQJSaR5jAAoJEBzwKT+lPKRYJRgQAIjthlw1WNJHZbmURWKTplwI > C6zRtem7CpskphYhTmx1DtTQykxYyA9dwm9d9tvZkspVjTbTZgUyNi2qNmDLy13U > FMIorRPyEoYWkF+t5XjocV4gMIQfnf9MC8eDzbEGWB/Ik5qnvZk5UVS4dc95BZt5 > i3vjHqiNX7LpcLYIalh83I14MldJ9kF2yQrtmsotQ92QZKjZB4H/F85lYhdV+z6n > 321FaIf5WAVVlItq5GzSMwnixnboMXdvMR+DL5e7Lr/5aGPrG6Xb57z9GXd4LQhm > lcDuGPIKb6p9RUYdN7MWuTjIfP7a7yGJMlMDn7/VJdU96KsFJ/gNZfSIlKu4hBoJ > LrxdwRoYlnn6iVr/h4sOWHOOBflb7j/CJINz4qxYUu0tD2nfHQGPJseNsm4TEFps > oD4nL9talSKfIjzuG1evAxvbBNLOeCiab6y6zlT1C/QSQoZhzNAwwUYOBV/6JBTO > M2XmJMtF3nzT3Eqz5p8BwD0Z6Rv+Kxebbvk8o/HOzkhOX5v5H/MC1t4Cq3fgkKoH > 1n9FgsenATOOQaK49bpUU0hH7QdPLrc1pSCtb1P+bHxbQYjZftjHBQWUFULD7aO4 > kozDrLbGPxzWyzG/tkAsy0Uxjrc15ENaFvzuY5/rc65nJyfYegww552WVD8zBOD8 > ys4Bc924vOCF3OB4ThiH > =WMN7 > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Peter M Aarestad aares...@gmail.com Wir sein pettler. Hoc est verum.