The core was the following:
+++
(gdb) where
#0 jk2_endpoint_init (env=0x8108b40, bean=0x8157de0)
at ../../common/jk_endpoint.c:89
#1 0x403b13ab in jk2_workerEnv_addEndpoint (env=0x8108b40, wEnv=0x80f2668,
ep=0x8157e58) at ../../common/jk_workerEnv.c:583
#2 0x403b26de in jk2_worker_ajp13_getEndpoint (env=0x8108b40,
ajp13=0x810f428, eP=0xbffff518) at ../../common/jk_worker_ajp13.c:599
#3 0x403b276c in jk2_worker_ajp13_service (env=0x8108b40, w=0x810f428,
s=0x8155db8) at ../../common/jk_worker_ajp13.c:623
#4 0x403b73b6 in jk2_handler (r=0x814fda0)
at ../../server/apache2/mod_jk2.c:600
+++
The patch did not help because the return codes are not tested... (It cores
somewhere else :-((.
The real problem is why the createSlot fails!
[EMAIL PROTECTED] wrote:
> jfclere 2002/06/12 02:56:57
>
> Modified: jk/native2/common jk_endpoint.c
> Log:
> Prevent core when createSlot fails.
>
> Revision Changes Path
> 1.19 +7 -1 jakarta-tomcat-connectors/jk/native2/common/jk_endpoint.c
>
> Index: jk_endpoint.c
> ===================================================================
> RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_endpoint.c,v
> retrieving revision 1.18
> retrieving revision 1.19
> diff -u -r1.18 -r1.19
> --- jk_endpoint.c 10 Jun 2002 21:55:06 -0000 1.18
> +++ jk_endpoint.c 12 Jun 2002 09:56:57 -0000 1.19
> @@ -86,8 +86,14 @@
> snprintf( shmName, 128, "epStat.%d", wEnv->childId );
>
> wEnv->epStat=wEnv->shm->createSlot( env, wEnv->shm, shmName, 8096 );
> + if (wEnv->epStat==NULL) {
> + env->l->jkLog(env, env->l, JK_LOG_ERROR,
> + "workerEnv.init() create slot %s failed\n",
>shmName );
> + return JK_ERR;
> + }
> wEnv->epStat->structCnt=0;
> - env->l->jkLog(env, env->l, JK_LOG_ERROR, "workerEnv.init() create
>slot %s\n", shmName );
> + env->l->jkLog(env, env->l, JK_LOG_ERROR,
> + "workerEnv.init() create slot %s\n", shmName );
> }
> }
>
>
>
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>