This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/14570] New: Runtime get SIGSEGV on initialisation


I'm making the port of the compiler (jc1) and libjava on Chorus C5 (i386).
Today I could make my first hello World.

I compiled libjava with:

$SOURCEDIR/configure \
 --with-gcc-version-trigger=$GCCSOURCE/gcc/version.c\
 --prefix=$BUILD/libjava \
 --target=i386-chorusos \
 --enable-languages=c,c++,java \
 --enable-threads=posix \
 --with-headers=$HEADERDIR \
 --host=i386-linux --build=i586-linux \
 --cache-file=/dev/null \
 --srcdir=$SOURCEDIR --with-target-subdir=i386-chorusos \
 --disable-shared --disable-multilib \
 --without-x --disable-java-awt

All this worked well, except some .h i had to fix... And I also had to modify 
boehm-gc for this target. The test program of boehm-gc worked well, I only had
to modify him for a more little target because he tries to allocate too much
memory and I anly have few (1MB) for the stack and +/-14MB for the heap.

the result is of the test is the following:

run one test end
run one heap stats start
Completed 3 tests
Allocated 295975 collectable objects
Allocated 303 uncollectable objects
Allocated 0 atomic objects
Allocated 0 stubborn objects
Finalized 828/828 objects - finalization is probably ok
Total number of bytes allocated is 9636312
Final heap size is 3821568 bytes
Collector appears to work
run one heap stats end
end main 3
Completed 32 collections
  

i Compile my Hello.java program with only static libraries.
And i didn't got my hello World.

but i have the trace of the programm:

(chgdb) where
#0  0xfff2e3d4 in java.util.Hashtable.hash(java.lang.Object) (this=@32a38,
key=@fffcd71e) at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/java/util/Hashtable.java:815
#1  0xfff2d7cb in java.util.Hashtable.put(java.lang.Object, java.lang.Object)
(this=@ff04bf78, key=@fffcd71e, value=@ff04ffa0) at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/java/util/Hashtable.java:427
#2  0xffee63cc in java.util.TimeZone.__U3c_clinit__U3e_() () at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/java/util/TimeZone.java:97
#3  0xffecb660 in java::lang::Class::initializeClass() ()
#4  0xffee5ce2 in java.util.TimeZone.getTimeZone(java.lang.String)
(ID=@ff02fa20) at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/java/util/TimeZone.java:954
#5  0xffedb545 in java.lang.System.getDefaultTimeZoneId() () at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/java/lang/System.java:61
#6  0xfff094ac in java::lang::System::init_properties() ()
#7  0xffedb8d9 in java.lang.System.getProperty(java.lang.String,
java.lang.String) (property=@ff02cc60, defval=@ff02fbb8) at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/java/lang/System.java:163
#8  0xffeec6b2 in gnu.gcj.runtime.VMClassLoader.init() () at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/gnu/gcj/runtime/VMClassLoader.java:27
#9  0xffeec643 in gnu.gcj.runtime.VMClassLoader.VMClassLoader() (this=@ff04efd8)
at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/gnu/gcj/runtime/VMClassLoader.java:20
#10 0xffeecaed in gnu.gcj.runtime.VMClassLoader.__U3c_clinit__U3e_() () at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/gnu/gcj/runtime/VMClassLoader.java:84
#11 0xffecb660 in java::lang::Class::initializeClass() ()
#12 0xffed56cd in java.lang.ClassLoader.getSystemClassLoader() () at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/java/lang/ClassLoader.java:49
#13 0xffecd72d in _Jv_FindClass(_Jv_Utf8Const*, java::lang::ClassLoader*) ()
#14 0xffeb5bdb in _Jv_FindClassFromSignature(char*, java::lang::ClassLoader*) ()
#15 0xffecd378 in _Jv_PrepareCompiledClass(java::lang::Class*) ()
#16 0xffecb7a7 in java::lang::Class::initializeClass() ()
#17 0xffee5ce2 in java.util.TimeZone.getTimeZone(java.lang.String)
(ID=@ff02fc18) at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/java/util/TimeZone.java:954
#18 0xffedb545 in java.lang.System.getDefaultTimeZoneId() () at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/java/lang/System.java:61
#19 0xfff094ac in java::lang::System::init_properties() ()
#20 0xffedb879 in java.lang.System.getProperty(java.lang.String)
(property=@ff02cea0) at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/java/lang/System.java:154
#21 0xffee0a7d in java.io.PrintStream.__U3c_clinit__U3e_() () at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/java/io/PrintStream.java:301
#22 0xffecb660 in java::lang::Class::initializeClass() ()
#23 0xffeb5655 in _Jv_AllocObjectNoFinalizer ()
#24 0xffedbb8c in java.lang.System.__U3c_clinit__U3e_() () at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/java/lang/System.java:240
#25 0xffecb660 in java::lang::Class::initializeClass() ()
#26 0xffedb84c in java.lang.System.getProperty(java.lang.String)
(property=@ff02cea0) at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/java/lang/System.java:150
#27 0xffef165b in java.security.PermissionCollection.__U3c_clinit__U3e_() () at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/java/security/PermissionCollection.java:82
#28 0xffecb660 in java::lang::Class::initializeClass() ()
#29 0xffecb6b0 in java::lang::Class::initializeClass() ()
#30 0xffeb5655 in _Jv_AllocObjectNoFinalizer ()
#31 0xffed64d4 in java.lang.ClassLoader.__U3c_clinit__U3e_() () at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/java/lang/ClassLoader.java:165
#32 0xffecb660 in java::lang::Class::initializeClass() ()
#33 0xffed56ac in java.lang.ClassLoader.getSystemClassLoader() () at
/home/jerome/Jaluna/gcc/BUILD-CDS2/build-CDS/Src/GCC/libjava/java/lang/ClassLoader.java:47
#34 0xffecd72d in _Jv_FindClass(_Jv_Utf8Const*, java::lang::ClassLoader*) ()
#35 0xffeb5bdb in _Jv_FindClassFromSignature(char*, java::lang::ClassLoader*) ()
#36 0xffecd378 in _Jv_PrepareCompiledClass(java::lang::Class*) ()
#37 0xffecb7a7 in java::lang::Class::initializeClass() ()
#38 0xffeb5655 in _Jv_AllocObjectNoFinalizer ()
#39 0xffeb5670 in _Jv_AllocObject ()
#40 0xffeb69bf in _Jv_JNI_Init() ()
#41 0xffeb6303 in _Jv_CreateJavaVM(void*) ()
#42 0xffeb643e in _Jv_RunMain(java::lang::Class*, char const*, int, char
const**, bool) ()
#43 0xffeb65cc in JvRunMain ()
#44 0xffeb504d in main (argc=1, argv=@ffd58008) at /tmp/cceRnoyO.i:11
#45 0xfff5cfbc in _premain ()
#46 0xffeb500b in _start ()

So I'm asking if somebody knows from where this problem could come. From the
runtime library or from the garbage collector. 


thanks for all the help or advices you could give me
jerome

-- 
           Summary: Runtime get SIGSEGV on initialisation
           Product: gcc
           Version: 3.2
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jerome dot esteves at free dot fr
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i585
  GCC host triplet: i586
GCC target triplet: i383-Chorusos


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14570


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]