This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


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

RE: Program hanging (with code and debug info)


Hi Hans, 

  Here are source of the java program and gdb result.

 public class Test
 {
      public static void main(String s[])
     {
       System.out.println("Hello");
     }
 }





g++                       gcjh                     
jv-convert
$ xemacs Test.java
/usr/bin/ksh: xemacs:  not found
$ . ~/.profile
$ xemacs Test.java
$ ./gcj --encoding=UTF-8 --main=Test Test.java
$ a.out
^C$ gdb a.out
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General
Public License, and you are
welcome to change it and/or distribute copies of it
under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show
warranty" for details.
This GDB was configured as "sparc-sun-solaris2.6"...
(gdb) run
Starting program: /transfer/zhou/GCC3.0/bin/a.out 
[New LWP    2        ]
[New LWP    3        ]

Program received signal SIGSEGV, Segmentation fault.
0xef734130 in GC_find_limit (p=0xeffff33c "", up=1) at
os_dep.c:644
644                     GC_noop1((word)(*result));
(gdb) continue 
Continuing.

Program received signal SIGSEGV, Segmentation fault.
_Z17parse_lsda_headerP15_Unwind_ContextPKhP16lsda_header_info
(context=0xefffe280, 
    p=0x3fc8f0 <Address 0x3fc8f0 out of bounds>,
info=0xefffde98) at exception.cc:140
140       lpstart_encoding = *p++;
Current language:  auto; currently c++
(gdb) continue 
Continuing.

Program received signal SIGSEGV, Segmentation fault.
_Z17parse_lsda_headerP15_Unwind_ContextPKhP16lsda_header_info
(context=0xefffd3f8, 
    p=0x3fc8f0 <Address 0x3fc8f0 out of bounds>,
info=0xefffd010) at exception.cc:140
140       lpstart_encoding = *p++;
(gdb) continue 
Continuing.

Program received signal SIGSEGV, Segmentation fault.
_Z17parse_lsda_headerP15_Unwind_ContextPKhP16lsda_header_info
(context=0xefffc570, 
    p=0x3fc8f0 <Address 0x3fc8f0 out of bounds>,
info=0xefffc188) at exception.cc:140
140       lpstart_encoding = *p++;
(gdb)   





--- "Boehm, Hans" <hans_boehm@hp.com> wrote:
> GC_find_limit is supposed to generate a SIGSEGV. 
> It's function is to find
> the end of a mapped memory segment.  Tell the
> debugger to continue and see
> what happens next.
> 
> Hans
> 
> -----Original Message-----
> From: Zhou Wu
> To: java@gcc.gnu.org
> Sent: 11/5/01 6:18 PM
> Subject: Program hanging
> 
> 
>   I built gcc-3.02 (I also tried gcc-3.0) using
> gcc-2.8
> and install it sucessfully on Solaris 2.6.  I can
> also
> compile the Test.java
> 
>    public class Test
>    {
>        public static void main(String s[])
>        {
>           System.out.println("Hello");
>        }
>    }
> 
>  to a.out. However, when I ran a.out, it just hanged
> there. Using GDB to see some segment default at
>   
>    GC_find_limit(p=0xffff374 "", up=1) at
> os_dep.c:640
> 
>   Any suggestion will be appreciated.
> 
>    Zhou
>  
> 
> __________________________________________________
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com


__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com


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