Bug 140843 - JVM crash when running RCP application on HP-UX
Summary: JVM crash when running RCP application on HP-UX
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.2   Edit
Hardware: Other HP-UX
: P3 critical (vote)
Target Milestone: 3.2 RC5   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords: greatbug
Depends on:
Blocks:
 
Reported: 2006-05-09 13:03 EDT by Raajesh B.Kashyap CLA
Modified: 2006-05-23 09:56 EDT (History)
5 users (show)

See Also:


Attachments
Debugging patch (1.41 KB, patch)
2006-05-16 17:01 EDT, Silenio Quarti CLA
no flags Details | Diff
Patch for the problem (740 bytes, patch)
2006-05-16 17:09 EDT, Silenio Quarti CLA
no flags Details | Diff
Plugin with debug info (1.58 MB, application/x-zip-compressed)
2006-05-16 18:24 EDT, Silenio Quarti CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raajesh B.Kashyap CLA 2006-05-09 13:03:16 EDT
I am running an Eclipse RCP application on HP-UX. It was built using Eclipse 3.2RC3, but this was also tried using 3.2m4 before. After the application launches, trying to bring up the login dialog crashes the application, and the failure is shown in the libswt library, specifically in the setXEventFields method. (This application works fine on Windows and Solaris). The application also has other parts that do not require a login. When I go into one of those parts of the application, for example, a feature which fills in a JTable with key value pairs read from a file, it crashes with the same error when populating that table.

The output of the JVM crash log is here below:


#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (11) at pc=de2ec118, pid=29091, tid=1
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0.03 jinteg:02.13.06-16:15 PA2.0 (aCC_AA) mixed mode)
# Problematic frame:
# C  [libswt-motif-3232.sl+0xac118]  setXEventFields+0x88
#

---------------  T H R E A D  ---------------

Current thread (00062b20):  JavaThread "main" [_thread_in_native, id=1, lwp_id=1147987]

siginfo:si_signo=11, si_errno=0, si_code=0, si_addr=00000007

Registers:
   r1: 77962e90   rp: de2e7607   r3: 00062b20   r4: 00000000
   r5: 7a003cd0   r6: 70168a58   r7: 7a003c90   r8: 7016a7d8
   r9: 00000000  r10: 7a0035f8  r11: 00000000  r12: 00000002
  r13: 6f830060  r14: 4001d554  r15: 00000000  r16: 00000006
  r17: 00000000  r18: 77c11b98  r19: 7795c068  r20: 00062bec
  r21: 79ebf888  r22: 79db7eda  r23: 00000000  r24: 00000022
  r25: 7a003c90  r26: 00062bec   dp: 00012c90 ret0: 00000092
 ret1: 00062c18   sp: 7a003e80  r31: 00000007
Stack pointer: (sp=7a003e80)
7a003e60:   7795c068 00000002 00062b20 00062b20
7a003e70:   00000000 00000006 00000000 77c11b98 
Instructions:  (pc=de2ec118)
de2ec0f8:   4bd43f39 4a950000 4ab60368 4bda3f39
de2ec108:   4bd93f31 4a613fc1 48380010 4bdf3f29
de2ec118:   4bf70000 e8400000 2852bfff 34210ba0 

Stack: [79dfe000,7a000000),  sp=7a003e80,  free space=2071k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libswt-motif-3232.sl+0xac118]  setXEventFields+0x88

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.eclipse.swt.internal.motif.OS.memmove(Lorg/eclipse/swt/internal/motif/XPropertyEvent;II)V+0
j  org.eclipse.swt.widgets.Composite.XPropertyChange(IIII)I+45
j  org.eclipse.swt.widgets.Widget.windowProc(IIII)I+234
j  org.eclipse.swt.widgets.Display.windowProc(IIII)I+21
v  ~StubRoutines::call_stub
j  org.eclipse.swt.internal.motif.OS._XtDispatchEvent(I)Z+0
j  org.eclipse.swt.internal.motif.OS.XtDispatchEvent(I)Z+8
j  org.eclipse.swt.widgets.Display.readAndDispatch()Z+91
j  org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Display;)V+9
j  org.eclipse.ui.internal.Workbench.runUI()I+222
j  org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+11
j  org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
j  com.teamcenter.rac.aifrcp.Application.run(Ljava/lang/Object;)Ljava/lang/Object;+30
j  org.eclipse.core.internal.runtime.PlatformActivator$1.run(Ljava/lang/Object;)Ljava/lang/Object;+219
j  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+103
j  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+29
j  org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+135
j  org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+60
v  ~StubRoutines::call_stub
j  sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j  sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87
j  sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111
j  org.eclipse.core.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+181
j  org.eclipse.core.launcher.Main.basicRun([Ljava/lang/String;)V+107
j  org.eclipse.core.launcher.Main.run([Ljava/lang/String;)I+4
j  org.eclipse.core.launcher.Main.main([Ljava/lang/String;)V+10
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  01720528 JavaThread "LoginDialog" [_thread_blocked, id=31, lwp_id=1148024]
  01720378 JavaThread "Image Fetcher 1" daemon [_thread_blocked, id=30, lwp_id=1148023]
  017201c8 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=29, lwp_id=1148022]
  0104d7f0 JavaThread "AIFDesktop$LoadApplicationOperation 0" [_thread_in_native, id=28, lwp_id=1148021]
  000642c0 JavaThread "AIFServer" [_thread_in_native, id=26, lwp_id=1148019]
  0104d640 JavaThread "TimerQueue" daemon [_thread_blocked, id=25, lwp_id=1148013]
  01720018 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=23, lwp_id=1148011]
  00063f60 JavaThread "AWT-Shutdown" [_thread_blocked, id=20, lwp_id=1148008]
  00063db0 JavaThread "Worker-0" [_thread_blocked, id=19, lwp_id=1148007]
  00063c00 JavaThread "AWT-XAWT" daemon [_thread_blocked, id=16, lwp_id=1148002]
  00063a50 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=15, lwp_id=1148001]
  000638a0 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=14, lwp_id=1148000]
  000636f0 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=13, lwp_id=1147999]
  00063540 JavaThread "State Data Manager" daemon [_thread_blocked, id=12, lwp_id=1147998]
  00063390 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=11, lwp_id=1147997]
  002a03d8 JavaThread "CompilerThread1" daemon [_thread_blocked, id=9, lwp_id=1147995]
  002a01f8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=8, lwp_id=1147994]
  002a0018 JavaThread "AdapterThread" daemon [_thread_blocked, id=7, lwp_id=1147993]
  000631e0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6, lwp_id=1147992]
  00063030 JavaThread "Finalizer" daemon [_thread_blocked, id=5, lwp_id=1147991]
  00062e80 JavaThread "Reference Handler" daemon [_thread_blocked, id=4, lwp_id=1147990]
=>00062b20 JavaThread "main" [_thread_in_native, id=1, lwp_id=1147987]

Other Threads:
  0019ea28 VMThread [id=3, lwp_id=1147989]
  0019eae0 WatcherThread [id=10, lwp_id=1147996]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 5440K, used 3144K [76400000, 769e0000, 77950000)
  eden space 4864K,  62% used [76400000, 766f4b00, 768c0000)
  from space 576K,  20% used [768c0000, 768dd5c0, 76950000)
  to   space 576K,   0% used [76950000, 76950000, 769e0000)
 tenured generation   total 11908K, used 8768K [73800000, 743a1000, 762b0000)
   the space 11908K,  73% used [73800000, 74090338, 74090400, 743a1000)
 compacting perm gen  total 22528K, used 22379K [6f800000, 70e00000, 73800000)
   the space 22528K,  99% used [6f800000, 70ddafe0, 70ddb000, 70e00000)
No shared spaces configured.

Dynamic libraries:
/opt/java1.5/jre/bin/PA_RISC2.0/java_v2
    text:0x00001000-0x00010c74 data:0x00011000-0x00012f18
/opt/java1.5/jre/bin/PA_RISC2.0/../../lib/PA_RISC2.0/server/libjvm_v2.sl
    text:0xc3c00000-0xc49af000 data:0x79d7d000-0x79fdf000
/usr/lib/libpthread.1
    text:0xc0040000-0xc0058000 data:0x79d5a000-0x79d5d000
/usr/lib/libm.2
    text:0xc0080000-0xc00ac000 data:0x79d5d000-0x79d5e000
/usr/lib/librt.2
    text:0xc00f8000-0xc00fc000 data:0x79d5e000-0x79d5f000
/usr/lib/libcl.2
    text:0xc03c0000-0xc04ab000 data:0x79d62000-0x79d6e000
/usr/lib/libisamstub.1
    text:0xc00b5000-0xc00b6000 data:0x79d5f000-0x79d60000
/usr/lib/libCsup_v2.2
    text:0xc2150000-0xc216c000 data:0x79d6e000-0x79d71000
/usr/lib/libc.2
    text:0xc0100000-0xc0246000 data:0x79fe6000-0x79ff9000
/usr/lib/libdld.2
    text:0xc0005000-0xc0008000 data:0x79fe1000-0x79fe2000
/opt/graphics/OpenGL/lib/libogltls.sl
    text:0xc0004000-0xc0005000 data:0x79ff9000-0x79ffa000
/opt/java1.5/jre/lib/PA_RISC2.0/native_threads/libhpi.sl
    text:0xc2bc0000-0xc2bd1000 data:0x79d51000-0x79d53000
/opt/java1.5/jre/lib/PA_RISC2.0/libverify.sl
    text:0xc1ce8000-0xc1cf5000 data:0x79ccd000-0x79cce000
/opt/java1.5/jre/lib/PA_RISC2.0/libjava.sl
    text:0xc2c00000-0xc2c2e000 data:0x79ccb000-0x79ccd000
/opt/java1.5/jre/lib/PA_RISC2.0/libzip.sl
    text:0xc2c30000-0xc2c44000 data:0x79cc7000-0x79cc9000
/opt/java1.5/jre/lib/PA_RISC2.0/libnet.sl
    text:0xc2dd0000-0xc2de3000 data:0x79c05000-0x79c06000
/opt/java1.5/jre/lib/PA_RISC2.0/libnio.sl
    text:0xc1cf8000-0xc1d00000 data:0x79c02000-0x79c03000
/opt/java1.5/jre/lib/PA_RISC2.0/libawt.sl
    text:0xdb940000-0xdb9ef000 data:0x7799b000-0x779c6000
/opt/java1.5/jre/lib/PA_RISC2.0/./libmlib_image.sl
    text:0xe2d00000-0xe2e65000 data:0x7798f000-0x7799b000
/opt/java1.5/jre/lib/PA_RISC2.0/xawt/libmawt.sl
    text:0xc2e00000-0xc2e41000 data:0x7798a000-0x7798d000
/usr/lib/X11R6/libXext.3
    text:0xc1520000-0xc1536000 data:0x77975000-0x77976000
/usr/lib/X11R6/libX11.3
    text:0xc2900000-0xc2a13000 data:0x7797c000-0x7798a000
/usr/lib/libnss_files.1
    text:0xc00ac000-0xc00b5000 data:0x77974000-0x77975000
/usr/lib/libnss_dns.1
    text:0xc031c000-0xc031f000 data:0x77973000-0x77974000
/opt/java1.5/jre/lib/PA_RISC2.0/libfontmanager_v2.sl
    text:0xdcb40000-0xdcbc9000 data:0x77968000-0x77973000
/tmp/x_raajes/x_raajes_rac_hp_test/hpp/rcp/rac/configuration/org.eclipse.osgi/bundles/25/1/.cp/libswt-motif-3232.sl
    text:0xde240000-0xde30a000 data:0x7795c000-0x77964000
/usr/lib/libXm.4
    text:0xe2600000-0xe284b000 data:0x762c1000-0x762ee000
/usr/lib/libXt.3
    text:0xc2b40000-0xc2b9d000 data:0x762f3000-0x762fe000
/usr/lib/X11R6/libSM.2
    text:0xc1354000-0xc135e000 data:0x762ee000-0x762f0000
/usr/lib/X11R6/libICE.2
    text:0xc2ba0000-0xc2bb6000 data:0x762f0000-0x762f3000
/usr/lib/libXp.2
    text:0xc1c34000-0xc1c3d000 data:0x77950000-0x77951000
/usr/lib/libXtst.2
    text:0xc216c000-0xc2172000 data:0x77951000-0x77952000

VM Arguments:
java_command: /tmp/x_raajes/x_raajes_rac_hp_test/hpp/rcp/rac/startup.jar -os hpux -ws motif -arch PA_RISC -launcher /tmp/x_raajes/x_raajes_rac_hp_test/hpp/rcp/rac/Teamcenter -name Teamcenter -showsplash 600 -exitdata c16 -vm /opt/java1.5/jre/bin/PA_RISC2.0/java_v2 -vmargs -jar /tmp/x_raajes/x_raajes_rac_hp_test/hpp/rcp/rac/startup.jar
Launcher Type: generic

Environment Variables:
JAVA_HOME=/opt/java1.5
JRE_HOME=/opt/java1.5/jre
PATH=/iproot/devops/bin:/iproot/devops/bin/hpp:/iproot/devops/UDU/tools/bin/:/iproot/devops/UDU/tools/bin/unx:/tmp/x_raajes/x_raajes_rac_hp_test/src/build/tools:/tmp/x_raajes/plm2007.23/src/build/tools:/tmp/x_raajes/plm2007.23/dbin/hpp:/tmp/x_raajes/plm2007.23/dbin/unx:/tmp/x_raajes/plm2007.23/dbin:/opt/java1.5/jre/bin:/opt/java1.5/bin:/iproot/devops/bin:/iproot/devops/bin/hpp:/mnt/n3vol5ns/iproot/devops/UDU/tools:/mnt/n3vol5ns/iproot/devops/UDU/tools/bin/unx:/iproot/devops/perl/bin/hpp:/iproot/devops/UDU/tools/bin/:/iproot/devops/UDU/tools/bin/unx:/mnt/n3vol3/users/kars/icad/doc/frame/bin:/bin:/usr/bin:/etc:/tool_box:/usr/local/bin:/usr/etc:/usr/bin/X11:/usr/contrib/bin/X11:/usr/vue/bin:/ips/devbin:/tool_shed/clearjeeves/bin:/vobs/imported_products/gnu/hpp:/vobs/tool_shed/clearjeeves/bin:/tool_shed/clearjeeves/triggers:/vobs/tool_shed/clearjeeves/triggers:/usr/atria/bin:/users/x_raajes/bin:.
LD_LIBRARY_PATH=/mnt/n3vol5ns/iproot/devops/UDU/tools/lib/hpp:/usr/lib
SHELL=/bin/ksh
DISPLAY=cii3w053:0.0
SHLIB_PATH=/tmp/x_raajes/plm2007.23/src/imported/nx/hpp/lib:/tmp/x_raajes/plm2007.23/src/imported/tao/hpp/lib:/tmp/x_raajes/plm2007.23/src/imported/xml4c/hpp/lib:/mnt/n3vol5ns/iproot/devops/UDU/tools/lib/hpp:/usr/ingres/lib

Signal Handlers:
SIGSEGV: [libjvm_v2.sl+0x3f4ea], sa_mask[0]=0xff7ffeff, sa_flags=0x00000040
SIGBUS: [libjvm_v2.sl+0x3f4ea], sa_mask[0]=0xff7ffeff, sa_flags=0x00000040
SIGFPE: [libjvm_v2.sl+0x3d632], sa_mask[0]=0xff7ffeff, sa_flags=0x00000050
SIGPIPE: [libjvm_v2.sl+0x3d632], sa_mask[0]=0xff7ffeff, sa_flags=0x00000050
SIGILL: [libjvm_v2.sl+0x3d632], sa_mask[0]=0xff7ffeff, sa_flags=0x00000051
SIGUSR1: [libjvm_v2.sl+0x3d63a], sa_mask[0]=0x00008000, sa_flags=0x00000010
SIGUSR2: [libjvm_v2.sl+0x3a512], sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGHUP: [libjvm_v2.sl+0x3d62a], sa_mask[0]=0xff7ffeff, sa_flags=0x00000040
SIGINT: [libjvm_v2.sl+0x3d62a], sa_mask[0]=0xff7ffeff, sa_flags=0x00000040
SIGQUIT: [libjvm_v2.sl+0x3d62a], sa_mask[0]=0xff7ffeff, sa_flags=0x00000040
SIGTERM: [libjvm_v2.sl+0x3d62a], sa_mask[0]=0xff7ffeff, sa_flags=0x00000040


---------------  S Y S T E M  ---------------

OS:HP-UX
uname:HP-UX B.11.11 U 9000/800
rlimit: STACK 98252k, CORE 2097151k, NOFILE 2048, AS infinity
load average:1.70 1.02 0.81

CPU:total 1

Memory: 4k page, physical 2095104k

vm_info: Java HotSpot(TM) Server VM ("jinteg:02.13.06-16:15") for hp-ux-pa-risc, built on Feb 13 2006 19:26:11 by jinteg with aCC
Comment 1 Steve Northover CLA 2006-05-09 13:55:05 EDT
1) Does the crash happen every time?
2) You will need to give us something to work with (a snippet, your app)

We are able to invoke Eclipse a bunch of SWT examples on HPUX without any problem.
Comment 2 Raajesh B.Kashyap CLA 2006-05-09 14:08:59 EDT
Yes, the crash happens everytime. On going through the code, it appears that it crashes with code that implements the java.beans.PropertyChangeListener. The login dialog mentioned below implements this. I will try and post more info once I debug further.

The log shows:
org.eclipse.swt.internal.motif.OS.memmove(Lorg/eclipse/swt/internal/motif/XPropertyEvent;II)V+0
j  org.eclipse.swt.widgets.Composite.XPropertyChange

Could it be happening whenever a property change is detected?
Comment 3 Raajesh B.Kashyap CLA 2006-05-09 14:13:00 EDT
Some information I did not add the first time was that I am using Exceed from a Windows machine to login to this HP-UX machine. So its a remote login... if that makes a difference.
Comment 4 Steve Northover CLA 2006-05-09 15:13:20 EDT
Does the local login crash?  I see you are running the SWT_AWT bridge.
Comment 5 Raajesh B.Kashyap CLA 2006-05-09 15:55:19 EDT
By remote login, I meant that I am logged into the HP-UX machine from a Windows machine using Exceed. The application is being launched on HP-UX, and so its display is exported to the windows machine (export DISPLAY=<windows_machine>:0 on the HP-UX machine). Separately, the app is such that it requires a login (into the app's database, not the OS) when you click on certain features. So when I click on such a feature, thereby bringing up the app's login dialog, the app itself crashes with the VM log I sent.

I am wondering if it has something to do with the X display too, as was reported in bug 86145, where a similar problem with the VM crashing with the org.eclipse.swt.internal.motif.OS.memmove was reported.
Comment 6 Steve Northover CLA 2006-05-09 16:17:13 EDT
Not sure if I am missing something but can you walk over to the HP machine, try the RCP app and see if it still crashes?
Comment 7 Steve Northover CLA 2006-05-09 16:19:49 EDT
The other thing to do is to find out what Billy did to fix bug 86145 to see whether it is the same thing.

Billy?
Comment 8 Raajesh B.Kashyap CLA 2006-05-09 16:40:14 EDT
Unfortunately, the HP machine is located at a different office in another state, so its not possible for me to try it directly on the HP machine. I am trying to see if I can get it setup on a locally available machine.
Comment 9 Steve Northover CLA 2006-05-09 16:57:08 EDT
Ok, maybe call up the office that has the machine and get someone to try it?  Anyhow, let us know when you have something.  Can you confirm that you are using the SWT_AWT bridge?
Comment 10 Raajesh B.Kashyap CLA 2006-05-09 16:58:37 EDT
Yes, we are using the SWT_AWT bridge.
Comment 11 Raajesh B.Kashyap CLA 2006-05-09 17:00:55 EDT
I can also launch the Eclipse IDE itself on HP, just the RCP application fails (works on Windows and Solaris).
Comment 12 Raajesh B.Kashyap CLA 2006-05-16 15:45:37 EDT
We did quite a bit of debugging on a local HP-UX machine last week on this issue, and realized that this crash does not happen when a call to a super class (which is a JDialog), is not passed the "true" to set this dialog to modal. So we tried doing the call as just:

super( frame );

... and then later doing a setModal() before the setVisible(), and it still crashed when setVisible() was called. Commenting out the setModal() also stops the crash when calling setVisible(). We have trimmed down the portion of the application we are dealing with, to inherit from a JDialog, and the only call it has is to create the dialog, and the following calls in its run() method:

pack();
validate();
setResizable(false);
setModal(true);
setVisible(true);

We have tried a standalone SWT application that is nearly similar to this, but we still couldn't get that to crash in a similar way to duplicate it. This issue  has got very critical within our company and will be significantly affecting the release of the product, so I have raised the priority on this one. We have hit a block at this point, and have run out of ideas to debug or understand this further. Is there some setting or some way to get more information on what is going wrong here? I can provide the logs and attempt debugging with any settings that will provide more info. We are using Eclipse 3.2RC3 on HP-UX to debug this.
Comment 13 Raajesh B.Kashyap CLA 2006-05-16 16:31:49 EDT
I just tried the sample HelloWorld program from bug 86145 on HP-UX and it crashed for me. However, the error was slightly different, and it said:

Java_org_eclipse_swt_internal_motif_OS__1XtAppCreateShell + 0x144  [/u/x_raajes/workspace/.metadata/.plugins/org.eclipse.pde.ui/-1147940471655.swt/libswt-motif-3232.sl]
Comment 14 Silenio Quarti CLA 2006-05-16 17:01:28 EDT
Created attachment 41658 [details]
Debugging patch

Could apply this patch to SWT, make the problem happen and attach the output of the console?
Comment 15 Silenio Quarti CLA 2006-05-16 17:09:43 EDT
Created attachment 41662 [details]
Patch for the problem

Please could you try this patch as well and see if the problem goes away?
Comment 16 Raajesh B.Kashyap CLA 2006-05-16 17:15:19 EDT
How do I apply the patches? I am not so familiar with that.. could you outline
some steps to do it?
Comment 17 Silenio Quarti CLA 2006-05-16 17:45:06 EDT
1) Load these projects into Eclipse

org.eclipse.swt
org.eclipse.swt.motif.hpux.XXX (where XXX is your processor arch)

from CVS   
    :pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse

2) Copy "org.eclipse.swt/.classpath_motif" to "org.eclipse.swt/.classpath in the "Navigator" view

3) After compile is done, select the project "org.eclipse.swt" in the "Package Explorer", open the popup menu and select "Team->Appy Patch"

4) Follow the instructions in the dialog
Comment 18 Raajesh B.Kashyap CLA 2006-05-16 17:55:33 EDT
I currently use the 3.2RC3 binary download, and the application has org.eclipse.swt.motif.hpux.PA_RISC_3.2.0.v3232.jar added as a plugin.

Correct me if I am wrong, but this is what I think I must do to try it out:

1. Download the source for those two projects you mentioned.
2. Use CVS to get the changed files (is CVS present in the Eclipse IDE, or do I have to add it?).
3. Follow the rest of the instructions you mentioned.

Comment 19 Silenio Quarti CLA 2006-05-16 18:24:16 EDT
Created attachment 41668 [details]
Plugin with debug info

I guess that is ok. The Eclipse IDE has CVS support in it.

Anyways, replace your plugin with this one which is 3.2 RC4 hacked to include the patches above.
Comment 20 Raajesh B.Kashyap CLA 2006-05-16 20:18:50 EDT
Thanks Silenio! Seems like its now working with that JAR file you sent. It did not crash when I brought up the login dialog on our app. I'll confirm tomorrow with a little more testing in the areas where it was originally crashing (login, message boxes etc...).
Comment 21 Raajesh B.Kashyap CLA 2006-05-16 20:22:25 EDT
Also, I think these are debug statements you intended to see... I see them on the console, in case you wanted to know:

call_data=181928
call_data=181928
call_data=181928
call_data=181928
call_data=181928
call_data=181928
call_data=181928
Comment 22 Raajesh B.Kashyap CLA 2006-05-16 20:37:21 EDT
Now that it looks positive, if things go fine after the complete test tomorrow, I wanted to check which version this will go into...? Our organization has committed to using 3.2 for the product, and is currently using 3.2RC3 while in development (we moved up from 3.2M4 recently). Do we have 3.2RC5 coming?
Comment 23 Michael Valenta CLA 2006-05-17 11:29:55 EDT
+1
Comment 24 John Arthorne CLA 2006-05-17 12:20:46 EDT
Reviewed with Silenio.

+1 for RC5.
Comment 25 Silenio Quarti CLA 2006-05-17 12:29:08 EDT
+1 for RC5.

Kevin, I need PMC approval for this one. It is a simple fix (see comment#15). The size of the C structure is wrong and memmove() crashes because it is addressing memory outside of the java VM memory space. I checked all Motif platforms and it should be 32 bytes instead of 40 bytes. 
Comment 26 John Arthorne CLA 2006-05-17 13:35:49 EDT
I nominate this as a greatbug.  The originator did a great job of narrowing down the problem to the line causing the problem, and he rapidly responded when asked for more details and to verify the fix.  As a GPF, clearly this bug fix adds great value for all SWT Motif users.
Comment 27 Raajesh B.Kashyap CLA 2006-05-18 10:48:56 EDT
I just wanted to confirm that the crash does not happen now in the other areas too (message boxes etc.). Seems like its completely fixed. Its good to know that the bug fix is going to make it to 3.2. If there is an approximate date when RC5 (or whenever this fix will make it), will be officially available, please let me know and we can plan our development move accordingly.

Thanks all!
Comment 28 Grant Gayed CLA 2006-05-18 10:55:11 EDT
RC5 happens at the end of tommorrow.
Comment 29 Kevin Haaland CLA 2006-05-19 11:27:42 EDT
+1
Comment 30 Silenio Quarti CLA 2006-05-19 11:28:29 EDT
Fixed for RC5.
Comment 31 Silenio Quarti CLA 2006-05-19 14:27:53 EDT
RB, please could you try this build I20060519-1206 and confirm if the problem is fixed? 

Comment 32 Raajesh B.Kashyap CLA 2006-05-23 09:56:59 EDT
I downloaded RC5 and tried it, and the problem is fixed. Thanks!