Menu

#923 Segmentation fault when jar not in classpath

open
nobody
None
5
2005-03-01
2005-03-01
Anonymous
No

graham.hall@asic.gov.au

Output from Jam:

...patience...
...found 1722 target(s)...
...updating 6 target(s)...
JavaBatchCompile /work/grahamh/p4/509F-
main/classes/lodge.jar
JavaBatchCompile /work/grahamh/p4/509F-
main/classes/509Fv001-ascotreply.jar
Segmentation fault (core dumped)

"/package/jikes-1.22-debug/bin/jikes" -Xstdout +Pno-
shadow +Punused-type-imports +Punused-package-
imports +Peffective-java +Pmodifier-order +Predundant-
modifiers -
classpath "/usr/local/jdk1.4.2/jre/lib/rt.jar:/work/grahamh/
p4/509F-main/classes/509Fv001-ascotreply-
obj:/work/grahamh/p4/509F-
main/classes/common.jar:/work/grahamh/p4/509F-
main/classes/database.jar:/work/grahamh/p4/509F-
main/classes/mi.jar:/work/grahamh/p4/509F-
main/classes/mi_common.jar:/work/grahamh/p4/509F-
main/classes/mihandler-
ascotreply.jar:/work/grahamh/p4/509F-
main/classes/mihandler_base.jar:/work/grahamh/p4/509F
-main/classes/mijob.jar:/work/grahamh/p4/509F-
main/classes/xml-apis.jar" -d "/work/grahamh/p4/509F-
main/classes/509Fv001-ascotreply-obj"
@/var/tmp/jamFMByTg

...failed JavaBatchCompile /work/grahamh/p4/509F-
main/classes/509Fv001-ascotreply.jar ...

Output from bt:

#0 Tuple<ShadowSymbol *>::Length (this=0x0) at
tuple.h:159
159 inline unsigned Length() const { return top; }
(gdb) bt
#0 Tuple<ShadowSymbol *>::Length (this=0x0) at
tuple.h:159
#1 0x081380a8 in SymbolSet::Union (this=0x86ab000,
set=@0x0) at set.cpp:75
#2 0x080aaa71 in Semantic::ProcessClassFile
(this=0x867f000, type=0x86ac300,
buffer=0x86dd000 "Ęţşž",
buffer_size=21604, tok=48) at class.cpp:1904
#3 0x080a9da5 in Semantic::ReadClassFile
(this=0x867f000, type=0x86ac300, tok=48) at
class.cpp:1676
#4 0x080c34ca in Semantic::ReadType
(this=<incomplete type>, file_symbol=0x863d800,
package=0x869ac80,
name_symbol=0x8636a80, tok=48) at decl.cpp:1521
#5 0x080a9998 in Semantic::ReadTypeFromSignature
(this=0x867f000, base_type=0x86a1300,

utf8_signature=0x86ae1c3 "au/gov/asic/ebusiness/datab
ase/RequestDocumentAccess;", length=52, tok=48)
at class.cpp:1599
#6 0x080a8ee4 in Semantic::ProcessSignature
(this=0x867f000, base_type=0x86a1300,
signature=@0xbfbfe888,
tok=48) at class.cpp:1388
#7 0x081431df in
MethodSymbol::ProcessMethodSignature
(this=0x86aa900, sem=0x867f000, token_location=48)
at symbol.cpp:1320
#8 0x080cd575 in
ExpandedMethodTable::FindOverloadMethodShadow
(this=<incomplete type>,
overload_method=0x86aa900, sem=0x867f000,
tok=48) at table.h:437
#9 0x080c7f2e in Semantic::AddInheritedMethods
(this=<incomplete type>, base_type=0x8694000,
super_type=0x86a1300, tok=48) at decl.cpp:2983
#10 0x080c8d47 in Semantic::ComputeMethodsClosure
(this=<incomplete type>, type=0x8694000, tok=48)
at decl.cpp:3263
#11 0x080c8bef in Semantic::ComputeMethodsClosure
(this=<incomplete type>, type=0x867a100, tok=48)
at decl.cpp:3230
#12 0x080c2697 in Semantic::CompleteSymbolTable
(this=<incomplete type>, class_body=0x867e9e4)
at decl.cpp:1238
#13 0x0813eba0 in TypeSymbol::CompleteSymbolTable
(this=0x867a100) at symbol.cpp:280
#14 0x080b8234 in Control::ProcessBodies
(this=0x81b9000, type=0x867a100) at control.cpp:1370
#15 0x080b79e6 in Control::ProcessFile
(this=0x81b9000, file_symbol=0x8674780) at
control.cpp:1185
#16 0x080b41d4 in Control::Control (this=0x81b9000,
arguments=0x81b6140, option_=@0x81b8000)
at control.cpp:352
#17 0x081182ad in JikesAPI::compile (this=0x81b6030,
filenames=0x81b6140) at jikesapi.cpp:211
#18 0x081179a7 in main (argc=13, argv=0xbfbff600) at
jikes.cpp:116
#19 0x080496d6 in _start ()

Notes:
This occurs when compiling a class which references
another class that is not in the classpath. The other
class is in a jar which is specified in the mainfest of
another jar which is in the classpath. When the missing
jar is added to the classpath, the program compiles
successfully. I could not reproduce this in a stand-alone
environment.

uname -a
FreeBSD pollux.asic.gov.au 4.8-RELEASE FreeBSD 4.8-
RELEASE #0: Thu Jan 22 14:28:54 EST 2004
root@pollux.asic.gov.au:/work/obj/usr/src/sys/X330-
SMP i386

Discussion


Log in to post a comment.