Issue 52387 - gij/gcj-4.0 gets errors building officecfg on GNU/Linux Sparc
Summary: gij/gcj-4.0 gets errors building officecfg on GNU/Linux Sparc
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: current
Hardware: Sun Linux, all
: P3 Trivial (vote)
Target Milestone: DevTools
Assignee: sparcmoz
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-24 09:20 UTC by sparcmoz
Modified: 2006-02-15 10:34 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 sparcmoz 2005-07-24 09:20:43 UTC
Building officecfg on GNU/Linux sparc using gcj-4.0 and gij-4.0 gets numerous
errors. The error will go away if the build is re-started. Similar errors were
seen with blackdown java. There are also bus errors in helpcontent2.

This is a typical example. The exception is sometimes different, such as bus
error while processing tmp file.

/usr/bin/gij-4.0
-Dgnu.gcj.precompiled.db.path=/home/jim/ooo680/solver/680/unxlngs.pro/lib/openoffice.org.gcjdb
--classpath
/home/jim/ooo680/solver/680/unxlngs.pro/bin/xt.jar:/home/jim/ooo680/solver/680/unxlngs.pro/bin/parser.jar
-Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver
FormWizard.xcs ../../../../../util/sanity.xsl
../../../../../unxlngs.pro/misc/registry/schema/org/openoffice/Office/FormWizard.san
Exception in thread "main" java.lang.LinkageError: unexpected exception during
linking: com.jclark.xsl.expr.ExprParser
*** Got java.lang.NegativeArraySizeException while trying to print stack trace.
dmake:  Error code 1, while making
'../../../../../unxlngs.pro/misc/registry/schema/org/openoffice/Office/FormWizard.xcs'
'---* tg_merge.mk *---'

RE-run with strace:
im@sun:~/ooo680/officecfg$ strace /usr/bin/gij-4.0
-Dgnu.gcj.precompiled.db.path=/home/jim/ooo680/solver/680/unxlngs.pro/lib/openoffice.org.gcjdb
--classpath
/home/jim/ooo680/solver/680/unxlngs.pro/bin/xt.jar:/home/jim/ooo680/solver/680/unxlngs.pro/bin/parser.jar
-Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver
FormWizard.xcs ../../../../../util/sanity.xsl
../../../../../unxlngs.pro/misc/registry/schema/org/openoffice/Office/FormWizard.san
execve("/usr/bin/gij-4.0", ["/usr/bin/gij-4.0",
"-Dgnu.gcj.precompiled.db.path=/home/jim/ooo680/solver/680/unxlngs.pro/lib/openoffice.org.gcjdb",
"--classpath",
"/home/jim/ooo680/solver/680/unxlngs.pro/bin/xt.jar:/home/jim/ooo680/solver/680/unxlngs.pro/bin/parser.jar",
"-Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser",
"com.jclark.xsl.sax.Driver", "FormWizard.xcs", "../../../../../util/sanity.xsl",
"../../../../../unxlngs.pro/misc/registry/schema/org/openoffice/Office/FormWizard.san"],
[/* 250 vars */]) = 0
uname({sys="Linux", node="sun", ...})   = 0
brk(0)                                  = 0x22000
<snip>
read(3, "cpu  39358621 182950 66185835 69"..., 4096) = 275
close(3)                                = 0
mmap(NULL, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x713d0000
mmap(0x713e0000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x713e0000
mmap(0x713f0000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x713f0000
getpid()                                = 12535
Segmentation fault
jim@sun:~/ooo680/officecfg$ java.io.FileNotFoundException:
/home/jim/ooo680/officecfg/../../../../../util/sanity.xsl (No such file or
directory)

restart the build:
and it builds OK this time and moves on to the next...
<snip>
rm -f
../../../../../unxlngs.pro/misc/registry/schema/org/openoffice/Office/FormWizard.san
> /dev/null
-------------+ validating and stripping schema files
Comment 1 sparcmoz 2005-07-26 22:12:41 UTC
I restart a fresh build in this module 2 times and get the 2 typical errors at
different places.

cd officecfg
rm -rf unxlngs.pro
build

/usr/bin/gij-4.0
-Dgnu.gcj.precompiled.db.path=/home/jim/ooo680/solver/680/unxlngs.pro/lib/openoffice.org.gcjdb
--classpath
/home/jim/ooo680/solver/680/unxlngs.pro/bin/xt.jar:/home/jim/ooo680/solver/680/unxlngs.pro/bin/parser.jar:../../../../../unxlngs.pro/class/cfgimport.jar
-Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver
Writer.xcu ../../../../../util/alllang.xsl
../../../../../unxlngs.pro/misc/registry/data/org/openoffice/Office/Writer.tmp
xcs=/home/jim/ooo680/officecfg/registry/data/org/openoffice/Office/../../../../../registry/schema/org/openoffice/Office/Writer.xcs
schemaRoot=/home/jim/ooo680/officecfg/registry/data/org/openoffice/Office/../../../../../registry/schema
Bus error
dmake:  Error code 138, while making
'../../../../../unxlngs.pro/misc/registry/data/org/openoffice/Office/Writer.xcu'
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making
/home/jim/ooo680/officecfg/registry/data/org/openoffice/Office
jim@sun:~/ooo680/officecfg$       

rm -rf unxlngs.pro
build

/usr/bin/gij-4.0
-Dgnu.gcj.precompiled.db.path=/home/jim/ooo680/solver/680/unxlngs.pro/lib/openoffice.org.gcjdb
--classpath
/home/jim/ooo680/solver/680/unxlngs.pro/bin/xt.jar:/home/jim/ooo680/solver/680/unxlngs.pro/bin/parser.jar:../../../../../../unxlngs.pro/class/cfgimport.jar
-Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver
BaseWindowState.xcu
../../../../../../util/data_val.xsl../../../../../../unxlngs.pro/misc/registry/data/org/openoffice/Office/UI/BaseWindowState.val
xcs=/home/jim/ooo680/officecfg/registry/data/org/openoffice/Office/UI/../../../../../../registry/schema/org/openoffice/Office/UI/BaseWindowState.xcs
schemaRoot=/home/jim/ooo680/officecfg/registry/data/org/openoffice/Office/UI/../../../../../../registry/schema
Exception in thread "main" java.lang.LinkageError: unexpected exception during
linking: com.jclark.xsl.expr.ExprParser
*** Got java.lang.NegativeArraySizeException while trying to print stack trace.
dmake:  Error code 1, while making
'../../../../../../unxlngs.pro/misc/registry/data/org/openoffice/Office/UI/BaseWindowState.xcu'
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making
/home/jim/ooo680/officecfg/registry/data/org/openoffice/Office/UI

Comment 2 sparcmoz 2005-09-16 12:50:54 UTC
These mysterious Bus Errors and other errors have simply vanished, might be
fixed by recent gcc4 or OOo...ther hardware and the kernel have not changed but
i did get a new haircut.
Comment 3 sparcmoz 2006-02-15 10:34:16 UTC
closed as errors have gone.