Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4098911

segmentation violation adding menubar to a frame

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 1.1.6
    • 1.2.0
    • client-libs
    • 1.1.6
    • sparc
    • solaris_2.5.1, solaris_2.6
    • Verified

        This bug was found during I18N testing running TextEditor, one of Cindy's regression tools. I've isolated the code to the following lines:

        import java.awt.*;
        import java.awt.event.*;

        public class Test {
            public static void main(String args[]) {
        Frame f = new Frame("Test");
        MenuBar mb = new MenuBar();
        f.setMenuBar(mb);
        f.show();
            }
        }




        SIGSEGV 11* segmentation violation
            si_signo [11]: SIGSEGV 11* segmentation violation
            si_errno [0]: Error 0
            si_code [1]: SEGV_MAPERR [addr: 0x0]

                stackbase=F0000000, stackpointer=EFFFE598

        Full thread dump:
            "AWT-Motif" (TID:0xee303ec8, sys_thread_t:0x3f74c4, state:CW) prio=5
                at java.lang.Object.wait(Native Method)
                at sun.awt.motif.MToolkit.run(Native Method)
                at java.lang.Thread.run(Thread.java:484)
            "AWT-Input" (TID:0xee303ef0, sys_thread_t:0x3f0e2c, state:R) prio=5
                at sun.awt.motif.InputThread.run(Native Method)
            "AWT-EventQueue-0" (TID:0xee303ce8, sys_thread_t:0x3dc344, state:CW) prio=5
                at java.lang.Object.wait(Native Method)
                at java.lang.Object.wait(Object.java:309)
                at java.awt.EventQueue.getNextEvent(EventQueue.java:114)
                at java.awt.EventDispatchThread.run(EventDispatchThread.java:44)
            "CachedReference sweeper" (TID:0xee300d30, sys_thread_t:0x67c84, state:CW) prio=9
                at java.lang.Object.wait(Native Method)
                at java.lang.Object.wait(Object.java:309)
                at java.lang.Runtime.waitForMemoryAdvice(Runtime.java:569)
                at java.lang.ref.CachedReference$Sweeper.run(CachedReference.java:342)
                at java.lang.Thread.run(Thread.java:484)
            "Finalizer" (TID:0xee300368, sys_thread_t:0x4c7c4, state:CW) prio=8
                at java.lang.Object.wait(Native Method)
                at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:86)
                at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:99)
                at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:131)
            "Reference handler" (TID:0xee300438, sys_thread_t:0x52d3c, state:CW) prio=10
                at java.lang.Object.wait(Native Method)
                at java.lang.Object.wait(Object.java:309)
                at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:198)
            "Async Garbage Collector" (TID:0xee3001f8, sys_thread_t:0x478a4, state:CW) prio=1
            "Idle thread" (TID:0xee300240, sys_thread_t:0x4779c, state:R) prio=0
            "Clock" (TID:0xee300088, sys_thread_t:0x48104, state:CW) prio=12
            "main" (TID:0xee3000b0, sys_thread_t:0x209fc, state:R) prio=5 *current thread*
                at sun.awt.motif.MFramePeer.pSetMenuBar(Native Method)
                at sun.awt.motif.MFramePeer.setMenuBar(MFramePeer.java:159)
                at java.awt.Frame.addNotify(Frame.java:173)
                at java.awt.Window.show(Window.java:167)
                at Test.main(Test.java:9)
        Monitor Cache Dump:
            sun.awt.motif.MToolkit@EE303D68/EE36B9B0: owner "main" (0x209fc, 1 entry)
                Waiting to be notified:
                    "AWT-Motif" (0x3f74c4)
        Registered Monitor Dump:
            utf8 hash table: <unowned>
            JNI pinning lock: <unowned>
            JNI global reference lock: <unowned>
            BinClass lock: <unowned>
            Class linking lock: <unowned>
            Code rewrite lock: <unowned>
            Heap lock: <unowned>
            Monitor IO lock: <unowned>
            Child death monitor: <unowned>
            Event monitor: <unowned>
            I/O monitor: owner "AWT-Input" (0x3f0e2c, 1 entry)
            Alarm monitor: <unowned>
                Waiting to be notified:
                    "Clock" (0x48104)
            Sbrk lock: <unowned>
            Monitor cache expansion lock: <unowned>
            Thread queue lock: <unowned>
            Monitor registry: owner "main" (0x209fc, 1 entry)
        Thread Alarm Q:
            sys_thread_t 0x3f74c4 [Timeout in 56 ms]
            sys_thread_t 0x3f0e2c [Timeout in 202 ms]
            sys_thread_t 0x478a4 [Timeout in 426 ms]
        Abort


        The TextEditor (see Attachments) core dump still occurs (please see the attachment for the core file)

              duke J. Duke
              dkumsunw David Kum (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: