You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Rupert Smith <ru...@googlemail.com> on 2007/10/02 17:27:06 UTC
Bug in IdentityHashMap
https://issues.apache.org/jira/browse/DIRMINA-452
Hi, I am contributing to the Qpid incubator project, and have discovered a
bug in IdentityHashMap, that Mina is exposed to. I notice that
IdentityHashMap is used a fair amount within the Mina code base, so thought
I would take the additional step of mailing your dev list.
Occasionally, certain sequences of put and iterator.remove() can fool the
map into allowing put() to be called with a full table. It then loops
forever looking for a free slot in the table. See the JIRA for sample code
to expose the bug.
This is a problem for Qpid as thgouh the VmPipeIdleStatusChcker class, but
there may be other usages of IdentityHashMap.iterator.remove() in the Mina
code base.
Is there any possibility of creating a new 1.0.x release with a fix for this
issue?
Thanks.
Rupert
Re: Bug in IdentityHashMap
Posted by Trustin Lee <tr...@gmail.com>.
On 10/2/07, Rupert Smith <ru...@googlemail.com> wrote:
> Looks like you are putting out releases fairly frequently. Approximately
> when will the next one be?
Every two weeks hopefully. However, there's no 100% guarantee.
Please nag me in case I forgot to fire a release vote. ;)
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6
Re: Bug in IdentityHashMap
Posted by Rupert Smith <ru...@googlemail.com>.
Looks like you are putting out releases fairly frequently. Approximately
when will the next one be?
On 02/10/2007, Trustin Lee <tr...@gmail.com> wrote:
>
> On 10/2/07, Rupert Smith <ru...@googlemail.com> wrote:
> > https://issues.apache.org/jira/browse/DIRMINA-452
> >
> > Hi, I am contributing to the Qpid incubator project, and have discovered
> a
> > bug in IdentityHashMap, that Mina is exposed to. I notice that
> > IdentityHashMap is used a fair amount within the Mina code base, so
> thought
> > I would take the additional step of mailing your dev list.
> >
> > Occasionally, certain sequences of put and iterator.remove() can fool
> the
> > map into allowing put() to be called with a full table. It then loops
> > forever looking for a free slot in the table. See the JIRA for sample
> code
> > to expose the bug.
> >
> > This is a problem for Qpid as thgouh the VmPipeIdleStatusChcker class,
> but
> > there may be other usages of IdentityHashMap.iterator.remove() in the
> Mina
> > code base.
> >
> > Is there any possibility of creating a new 1.0.x release with a fix for
> this
> > issue?
>
> Unfortunately, I've just cut the release, so the fix will be released
> in 1.0.7 and 1.1.4. Of course, therefore, the fix will be included in
> the next release.
>
> Trustin
> --
> what we call human nature is actually human habit
> --
> http://gleamynode.net/
> --
> PGP Key ID: 0x0255ECA6
>
Re: Bug in IdentityHashMap
Posted by Trustin Lee <tr...@gmail.com>.
On 10/2/07, Rupert Smith <ru...@googlemail.com> wrote:
> https://issues.apache.org/jira/browse/DIRMINA-452
>
> Hi, I am contributing to the Qpid incubator project, and have discovered a
> bug in IdentityHashMap, that Mina is exposed to. I notice that
> IdentityHashMap is used a fair amount within the Mina code base, so thought
> I would take the additional step of mailing your dev list.
>
> Occasionally, certain sequences of put and iterator.remove() can fool the
> map into allowing put() to be called with a full table. It then loops
> forever looking for a free slot in the table. See the JIRA for sample code
> to expose the bug.
>
> This is a problem for Qpid as thgouh the VmPipeIdleStatusChcker class, but
> there may be other usages of IdentityHashMap.iterator.remove() in the Mina
> code base.
>
> Is there any possibility of creating a new 1.0.x release with a fix for this
> issue?
Unfortunately, I've just cut the release, so the fix will be released
in 1.0.7 and 1.1.4. Of course, therefore, the fix will be included in
the next release.
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6