I copied your program in my linux box pentium 75 MHz Red Hat 4.2 and VM
1.1.5 and worked very well.

I supposed your computer has few memory because I wrote this code in a
work station HP and it crashed and generated a core file. In other WS HP
with more memory and the frame worked well.

greetings

On Wed, 24 Mar 1999, S Balamurugan wrote:

> Hi,
> 
>  I have jdk1.1.7 installed on my Linux m/c. javac compiles fine, but
>  when I try to run applications with user interface it crashes with
>  a SEGV. 
> 
> The code is 
> ------------------------------------------------------------------
> import java.awt.*;
> import java.awt.event.*;
> 
> public class hwapp1
> {
>  public static void main(String[] args)
>   {
>    Frame F = new Frame("Hello World");
>    F.add(new Label("Hello World!!"));
>    F.pack();
>    F.setVisible(true);
>   }
> }
> ------------------------------------------------------------------
> 
> SIGSEGV   11*  segmentation violation
>         stackbase=BF9FFD5C, stackpointer=BF9FF82C
> 
> Full thread dump:
>     "AWT-Motif" (TID:0x406624a8, sys_thread_t:0x820e8a8, state:CW,
> thread_t: t@5125, sp:0x0 threadID:0x3377, stack_base:0xbf1ffd68,
> stack_size:0x200000) prio=10
>         java.lang.Thread.run(Thread.java)
>     "AWT-EventQueue-0" (TID:0x406624b8, sys_thread_t:0x81f21b8,
> state:CW, thread_t: t@4100, sp:0x0 threadID:0x3376,
> stack_base:0xbf3ffd68, stack_size:0x200000prio=10
>         java.lang.Object.wait(Object.java)
>         java.awt.EventQueue.getNextEvent(EventQueue.java:158)
>         java.awt.EventDispatchThread.run(EventDispatchThread.java:75)
>     "SIGQUIT handler" (TID:0x4065e2a0, sys_thread_t:0x81a59d0, state:R,
> thread_t: t@3075, sp:0x0 threadID:0x3375, stack_base:0xbf5ffd68,
> stack_size:0x200000) prio=10
>     "Finalizer thread" (TID:0x4065e088, sys_thread_t:0x81a5948,
> state:CW, thread_t: t@2050, sp:0x0 threadID:0x3374,
> stack_base:0xbf7ffd68, stack_size:0x200000) prio=10
>     "main" (TID:0x4065e0b0, sys_thread_t:0x8186938, state:R, thread_t:
> t@1025, sp:0x0 threadID:0x3373, stack_base:0xbf9ffd5c,
> stack_size:0x200000) prio=0 *current thread*
>         sun.awt.motif.MComponentPeer.<init>(MComponentPeer.java:108)
>         sun.awt.motif.MCanvasPeer.<init>(MCanvasPeer.java:39)
>         sun.awt.motif.MPanelPeer.<init>(MPanelPeer.java:33)
>         sun.awt.motif.MFramePeer.<init>(MFramePeer.java:71)
>         sun.awt.motif.MToolkit.createFrame(MToolkit.java:129)
>         java.awt.Frame.addNotify(Frame.java:204)
>         java.awt.Window.pack(Window.java:128)
>         hwapp1.main(hwapp1.java:22)
> Monitor Cache Dump:
>     java.awt.EventQueue@1080435264/1080799856: <unowned>
>         Waiting to be notified:
>     "AWT-Motif" (0x820e8a8)
>     java.lang.Object@1080434784/1080793848: owner "main" (0x8186938, 1
> entry)
> Registered Monitor Dump:
>     Thread queue lock: <unowned>
>     Name and type hash table lock: <unowned>
>     String intern lock: <unowned>
>     JNI pinning lock: <unowned>
>     JNI global reference lock: <unowned>
>     BinClass lock: <unowned>
>     Class loading lock: <unowned>
>     Java stack lock: <unowned>
>     Code rewrite lock: <unowned>
>     Heap lock: <unowned>
>     Has finalization queue lock: <unowned>
>     Finalize me queue lock: <unowned>
>         Waiting to be notified:
>             "Finalizer thread" (0x81a5948)
>     Monitor registry: owner "main" (0x8186938, 1 entry)
> Abort
> 
> Attached is the output of ldconfig -D
> I am running Red Hat Linux 5 and JDK 1.1.7 glibc
> 
> Any help would be greatly appreciated.
> Thanks

Carlos Alberto Roman Zamitiz
Departamento de Ingenieria en Computacion, Facultad de Ingenieria, UNAM
[EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to