Issue 99611 - OOo Deadlock when setting negative int as parameter on XIndexContainer.insertByIndex()
Summary: OOo Deadlock when setting negative int as parameter on XIndexContainer.insert...
Status: UNCONFIRMED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-25 09:00 UTC by tobiaskrais
Modified: 2013-02-24 21:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description tobiaskrais 2009-02-25 09:00:07 UTC
I created a Unit Test and detected a OOo deadlock when using the methods:
- XIndexContainer.insertByIndex(-2, properties);
- XIndexContainer.removeByIndex(-2);
- XIndexContainer.replaceByIndex(-2, properties);

I know the value is wrong, but the deadlock is too heavy...
Comment 1 jsc 2009-02-25 09:24:48 UTC
we need more info in which context you use the index container. It's a generic
interface and is used very often.

I agree that we shouldn't deadlock and shouldn't crash. In this case i would
expect an IndexOutOfBoundsException. 
Comment 2 tobiaskrais 2009-02-25 09:27:17 UTC
tobiaskrais -> jsc: I try to add, replace or remove a menu to the menubar. I
think (but did not test) this will also happen with menu items. Do you need more
information?
Comment 3 jsc 2009-03-23 11:10:34 UTC
jsc -> cd: seems to be one for you, can you please take care of this issue