Bug 369518 - StackOverflowException when rebasing
Summary: StackOverflowException when rebasing
Status: NEW
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-24 09:02 EST by Markus Duft CLA
Modified: 2012-01-24 09:02 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Duft CLA 2012-01-24 09:02:32 EST
Build Identifier: 

I today rebased a branch with an (admittedly quite big) commit on top of origin/master (which was quite some ahead), and got this:

java.lang.StackOverflowError
    at org.eclipse.jgit.diff.SubsequenceComparator.equals(SubsequenceComparator.java:72)
    at org.eclipse.jgit.diff.SubsequenceComparator.equals(SubsequenceComparator.java:1)
    at org.eclipse.jgit.diff.HashedSequenceComparator.equals(HashedSequenceComparator.java:70)
    at org.eclipse.jgit.diff.HistogramDiffIndex.tryLongestCommonSequence(HistogramDiffIndex.java:247)
    at org.eclipse.jgit.diff.HistogramDiffIndex.findLongestCommonSequence(HistogramDiffIndex.java:178)
    at org.eclipse.jgit.diff.HistogramDiff$State.diffReplace(HistogramDiff.java:156)
    at org.eclipse.jgit.diff.HistogramDiff$State.diff(HistogramDiff.java:195)
    at org.eclipse.jgit.diff.HistogramDiff$State.diffReplace(HistogramDiff.java:166)
    at org.eclipse.jgit.diff.HistogramDiff$State.diff(HistogramDiff.java:195)
    at org.eclipse.jgit.diff.HistogramDiff$State.diffReplace(HistogramDiff.java:167)
    at org.eclipse.jgit.diff.HistogramDiff$State.diff(HistogramDiff.java:195)
    at org.eclipse.jgit.diff.HistogramDiff$State.diffReplace(HistogramDiff.java:167)
    at org.eclipse.jgit.diff.HistogramDiff$State.diff(HistogramDiff.java:195)
    at org.eclipse.jgit.diff.HistogramDiff$State.diffReplace(HistogramDiff.java:167)
    at org.eclipse.jgit.diff.HistogramDiff$State.diff(HistogramDiff.java:195)
    at org.eclipse.jgit.diff.HistogramDiff$State.diffReplace(HistogramDiff.java:167)
[snip a few hundred lines repeating]
    at org.eclipse.jgit.diff.HistogramDiff$State.diff(HistogramDiff.java:195)
    at org.eclipse.jgit.diff.HistogramDiff$State.diffReplace(HistogramDiff.java:167)
    at org.eclipse.jgit.diff.HistogramDiff$State.diff(HistogramDiff.java:195)
    at org.eclipse.jgit.diff.HistogramDiff$State.diffReplace(HistogramDiff.java:167)
    at org.eclipse.jgit.diff.HistogramDiff$State.diff(HistogramDiff.java:195)
    at org.eclipse.jgit.diff.HistogramDiff$State.diffReplace(HistogramDiff.java:167)


Reproducible: Always

Steps to Reproduce:
Not easily. it was a commit with approx 2100 changed files, rebased on a branch approx 100 commits ahead. we solved it using the cgit command line.