tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49595] Tomcat crashes in tcnative-1.dll frequently
Date Fri, 12 Aug 2011 07:11:32 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49595

--- Comment #7 from Hiroshi Shirosaki <h.shirosaki@gmail.com> 2011-08-12 07:11:32 UTC
---
Created attachment 27380
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27380
fix a issue of destroying a same socket more than one

While my ajax web application was accessed by two browsers at the same time,
tomcat sometimes crashed.

When tomcat crashes at apr_pollset_remove(), fd->desc.s is NULL in do_remove()
function of tomcat-native poll.c.
It seems that a socket has been already destroyed.

I checked which method calls destorySocket() of AprEndpoint.
At line 1261 destroySocket(addS[i]), a same socket was destroyed within a
second.

I commented out line 1261, tomcat works fine.

Before line 1261, Poll.add return value was APR_EBADF(= 9).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message