JDK-4024010 : Solaris: calling java.awt.Toolkit.getDefaultToolkit (with no motif) => segfau
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5.1,windows_nt
  • CPU: x86,sparc
  • Submitted: 1997-01-04
  • Updated: 2000-03-14
  • Resolved: 2000-03-14
Related Reports
Duplicate :  
Description

Name: el35337			Date: 01/03/97


Calling java.awt.Toolkit.getDefaultToolkit when there's no motif
libraries installed causes a segfault, as follows. (Java 1.1)

SIGSEGV   11*  segmentation violation
    si_signo [11]: SIGSEGV   11*  segmentation violation
    si_errno [0]: Error 0
    si_code [1]: SEGV_ACCERR [addr: 0xee076000]
    stackbase=EE0A2000, stackpointer=EE09D210

    Full thread dump:
    "Request Delegator" (TID:0xee400560, sys_thread_t:0xee0a1de0) prio=5 *curren
t thread*
    sun.awt.motif.MToolkit.<init>(MToolkit.java:41)
    java.awt.Toolkit.getDefaultToolkit(Toolkit.java:191)
    g2.Images.<clinit>(Images.java:26)

======================================================================

Comments
WORK AROUND Install a motif library.
11-06-2004

PUBLIC COMMENTS Calling java.awt.Toolkit.getDefaultToolkit when motif libraries aren't installed causes a segfault.
10-06-2004

EVALUATION We could add some code that checks for this condion and exits gracefully. ---------------------------------------------------------------- This is a bug on Windows. It needs to be investigated further. mike.bronson@eng 1997-11-24 This will be resolved with headless Java (4281163). michael.martak@Eng 2000-03-13
24-11-1997