Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation core dumps #21

Open
GoogleCodeExporter opened this issue Sep 2, 2015 · 3 comments
Open

compilation core dumps #21

GoogleCodeExporter opened this issue Sep 2, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. I've tarred up the whole directory structure.  Go to the test/ subdir
2. java -jar ../../xruby/xruby-0.1.0.jar tc_rexml.rb
3. BOOM!

Exception in thread "main" java.lang.NullPointerException
        at
com.xruby.compiler.codedom.IfExpression.ensureVariablesAreInitialized(IfExpressi
on.java:75)
        at
com.xruby.compiler.codedom.CaseExpression.accept(CaseExpression.java:58)
        at
com.xruby.compiler.codedom.ExpressionStatement.accept(ExpressionStatement.java:2
2)

(lots more)


What is the expected output? What do you see instead?

Expect to produce a .jar


What version of the product are you using? On what operating system?

Mac OS X:
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 9 Feb 2007 at 2:38

Attachments:

@GoogleCodeExporter
Copy link
Author

Thank you Tim.

I have no problem to (at least) compile the code you provided on Windows (tried 
both 
trunk and 0.1.0):

>java -jar ..\xruby-0.1.0.jar -c tc_rexml.rb
Added tc_rexml/test_compare$1.class
Added tc_rexml/initialize$3.class
Added tc_rexml/doctype$4.class
Added tc_rexml/cdata$5.class
Added tc_rexml/comment$6.class
Added tc_rexml/instruction$7.class
Added tc_rexml/tag_end$8.class
Added tc_rexml/tag_start$9.class
Added tc_rexml/BLOCK$11.class
Added tc_rexml/text$10.class
Added tc_rexml/report$12.class
Added tc_rexml/main.class
Generated tc_rexml.jar

My OS is:
>java -version
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode)

Right now none of our developers owns OSX, but we will try Linux to see if it 
is 
reproducible.

Original comment by [email protected] on 9 Feb 2007 at 12:39

@GoogleCodeExporter
Copy link
Author

I just tried on Ubuntu Linux 6.06, still can not reproduce the problem.

$ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

$ uname -a
Linux ubuntu6 2.6.15-26-386 #1 PREEMPT Mon Jul 17 19:52:53 UTC 2006 i686 
GNU/Linux

$ java -jar ../../xruby/xruby-0.1.0.jar -c tc_rexml.rb
Added tc_rexml/test_compare$1.class
Added tc_rexml/initialize$3.class
Added tc_rexml/doctype$4.class
Added tc_rexml/cdata$5.class
Added tc_rexml/comment$6.class
Added tc_rexml/instruction$7.class
Added tc_rexml/tag_end$8.class
Added tc_rexml/tag_start$9.class
Added tc_rexml/BLOCK$11.class
Added tc_rexml/text$10.class
Added tc_rexml/report$12.class
Added tc_rexml/main.class
Generated tc_rexml.jar

Original comment by [email protected] on 9 Feb 2007 at 10:54

@GoogleCodeExporter
Copy link
Author

Tried on an OSX system and tc_rexml.rb compiles OK. I think Tim misspelled the 
name 
of the file.

I will keep this issue open until XRuby is able to run rexml.

Original comment by [email protected] on 28 Feb 2007 at 3:05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant