Bug 200721 - import of java file failed, Umbrello crashed with signal 11
Summary: import of java file failed, Umbrello crashed with signal 11
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Ralf Habacker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-19 01:11 UTC by juergen.jaeschke
Modified: 2014-09-24 15:43 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.0
Sentry Crash Report:


Attachments
umbrello stack trace (3.25 KB, text/plain)
2009-08-03 20:42 UTC, juergen.jaeschke
Details
the java-file I want to import (4.10 KB, text/x-java)
2009-08-03 20:43 UTC, juergen.jaeschke
Details
patch fixing the runtime error (683 bytes, patch)
2011-11-30 09:43 UTC, Ralf Habacker
Details
List view after import of attachment 35817 (41.03 KB, image/png)
2014-09-23 19:49 UTC, Oliver Kellogg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description juergen.jaeschke 2009-07-19 01:11:18 UTC
Version:           2.2.2 (using 4.2.2 (KDE 4.2.2), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.28-13-generic

1) File->New
2)Save->...
3)Code->Import classes->
Select file with follo
Comment 1 Oliver Kellogg 2009-07-20 04:43:13 UTC
> Select file with follo

? Looks truncated to me; please complete.
Comment 2 juergen.jaeschke 2009-08-03 20:42:41 UTC
Created attachment 35816 [details]
umbrello stack trace
Comment 3 juergen.jaeschke 2009-08-03 20:43:53 UTC
Created attachment 35817 [details]
the java-file I want to import
Comment 4 Ralf Habacker 2011-11-30 09:28:27 UTC
the bug is reproducable on windows using recent svn msvc build
Comment 5 Ralf Habacker 2011-11-30 09:43:47 UTC
Created attachment 66219 [details]
patch fixing the runtime error

The problem here is that the java importer crashes when a java file is imported
from a location outside the regular java package hierachy. 
While finding unknown classes the parser tries to step up in the package
hierachy to find the package root, which fails with a runtime error when the
path do not fit into the package hierachy. 

Because java package hierachy is very important for the java import I suggest
to add a user warning if file pathes of imported files are outside the java
package hierachy.
Comment 6 Ralf Habacker 2011-11-30 15:27:13 UTC
fixed in svn
Comment 7 Ralf Habacker 2013-11-06 17:34:01 UTC
set version-fixed-in from 4.8.0 changelog
Comment 8 mparchet 2014-09-23 17:09:03 UTC
Hello,

Now I have a computer with ubuntu 14.04 LTS 64 bit and I have the same probleme with the umbrello 4.4.13-0 ubuntu0.1 package.

Could you help me please

Best regards

mparchet
Comment 9 Oliver Kellogg 2014-09-23 19:49:32 UTC
Created attachment 88821 [details]
List view after import of attachment 35817 [details]

(In reply to mparchet from comment #8)
> 
> Now I have a computer with ubuntu 14.04 LTS 64 bit and I have the same
> probleme with the umbrello 4.4.13-0 ubuntu0.1 package.

Cannot reproduce using umbrello-2.14.x:
* Download attachment 35817 [details]
* mkdir -p de/jjae/util/metaprogramming/set
* mv SetOperationForDouble.java de/jjae/util/metaprogramming/set/
* Start Umbrello
* In Code -> Activate Language select Java
* In Code -> Import Project... navigate to the "de" directory created above
* Press <OK>
* No crash, list view appears as in this screenshot.
Comment 10 Oliver Kellogg 2014-09-23 20:03:50 UTC
(In reply to juergen.jaeschke from comment #2)
> Created attachment 35816 [details]
> umbrello stack trace

Your stack trace begins as follows:
> This backtrace appears to be of no use.
> This is probably because your packages are built in a way which prevents creation of proper
> backtraces, or the stack frame was seriously corrupted in the crash.

It is impossible to tell what really happened here.
Comment 11 mparchet 2014-09-24 15:43:16 UTC
Hello,

To reporoduce this bug.

1.