[
https://issues.jboss.org/browse/JBRULES-3488?page=com.atlassian.jira.plug...
]
Jean-Marc Vanel commented on JBRULES-3488:
------------------------------------------
This loop goes wild at line 460
in class FromNode in :
public void updateSink( final LeftTupleSink sink,
final PropagationContext context,
final InternalWorkingMemory workingMemory) {
for ( RightTuple rightTuple = rightTuples; rightTuple != null; rightTuple = (RightTuple)
rightIter.next( rightTuples ) ) {
And the stack is :
Daemon Thread [SwingWorker-pool-3-thread-1] (Suspended (breakpoint at line 477 in
FromNode))
FromNode.updateSink(LeftTupleSink, PropagationContext, InternalWorkingMemory) line: 477
RightInputAdapterNode.attach(InternalWorkingMemory[]) line: 240
BuildUtils.attachNode(BuildContext, BaseNode) line: 149
AccumulateBuilder.build(BuildContext, BuildUtils, RuleConditionElement) line: 74
PatternBuilder.attachPattern(BuildContext, BuildUtils, Pattern) line: 126
PatternBuilder.build(BuildContext, BuildUtils, RuleConditionElement) line: 79
GroupElementBuilder$AndBuilder.build(BuildContext, BuildUtils, RuleConditionElement) line:
116
GroupElementBuilder.build(BuildContext, BuildUtils, RuleConditionElement) line: 72
ReteooRuleBuilder.addSubRule(BuildContext, GroupElement, int, Rule) line: 154
ReteooRuleBuilder.addRule(Rule, InternalRuleBase, IdGenerator) line: 125
ReteooBuilder.addRule(Rule) line: 116
ReteooRuleBase.addRule(Rule) line: 445
ReteooRuleBase(AbstractRuleBase).addRule(Package, Rule) line: 955
ReteooRuleBase(AbstractRuleBase).addPackages(Collection<Package>) line: 626
ReteooRuleBase.addPackages(Collection<Package>) line: 472
ReteooRuleBase.addPackage(Package) line: 479
N3SourcetoDrools.droolsCompile(String, String) line: 425
infinite loop in rule with accumulate, even if the then part does
nothing
-------------------------------------------------------------------------
Key: JBRULES-3488
URL:
https://issues.jboss.org/browse/JBRULES-3488
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-core (expert)
Affects Versions: 5.4.0.CR1
Environment: Debian 6
% uname -a
Linux oem-laptop 2.6.32-5-amd64 #1 SMP Thu Mar 22 17:26:33 UTC 2012 x86_64 GNU/Linux
% java -version
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b04)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
Reporter: Jean-Marc Vanel
Assignee: Edson Tirelli
There is an infinite loop .
It happens in the addPackage step.
It happens whatever is in the then part
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira