Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361658

Summary: o.e.swt.internal.win32.OS.MoveMemory seemingly random crash
Product: [Eclipse Project] Platform Reporter: Pierre Queinnec <pierre.queinnec>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 4.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
JVM crash log 1
none
JVM crash log 2 none

Description Pierre Queinnec CLA 2011-10-21 10:13:23 EDT
Build Identifier: M20110210-1200

Our RCP application crashes hard when doing a rotation on an image. This is probably not due to the rotation itself, as sometimes to reproduce the crash we have to try and rotate tens of images and for the last one usually we also do it tens of times by manually clicking our button that calls the code.

It is nonetheless completely reproducible, but it takes time. We thought of a PermGen issue also we can also reproduce it with an initial PermGen allocated that is way larger than used.

We ran it through jProfiler and there's no sign of something else than a native crash in the Java_org_eclipse_swt_internal_C_memmove__I_3BI function.

We can reproduce both with an Eclipse 3.5.2 target, or with a 3.6.2 target.

Reproducible: Sometimes
Comment 1 Pierre Queinnec CLA 2011-10-21 10:15:18 EDT
Created attachment 205725 [details]
JVM crash log 1
Comment 2 Pierre Queinnec CLA 2011-10-21 10:17:56 EDT
Created attachment 205727 [details]
JVM crash log 2
Comment 3 Pierre Queinnec CLA 2011-10-21 10:22:27 EDT
Will attach the caller code. In the meantime and FYI, we're investigating the only foreign DLL in the libraries loaded, one that is shipped with Sophos anti-virus, in a way similar to Bug #87798.
Comment 4 Felipe Heidrich CLA 2011-10-21 10:23:25 EDT
any chances that we can get simple swt snippet that can be used to reproduce the crash ?
Comment 5 Pierre Queinnec CLA 2011-10-21 10:30:22 EDT
Hi Felipe, thanks a lot for looking into this. We're currently trying to write that testcase and we'll post it here.

As an aside, caller code is the SWTImageCanvas from the classic article at:
  http://www.eclipse.org/articles/Article-Image-Viewer/Image_viewer.html
Comment 6 Pierre Queinnec CLA 2012-05-16 13:19:10 EDT
Hi Felipe, sorry we've been trying to reproduce this on a smaller case, but we can't. I'll close this as INVALID for now and if we find out, I'll attach a solution.