Mac Os Crash

221 views
Skip to first unread message

jeremy

unread,
May 3, 2010, 3:35:58 AM5/3/10
to Colorer
Hi,

I just install colorer on my eclipse.
And when i open a file with colorer or if i try to go to the
properties my eclipse just shutdown!
If you have any idea.

thanks

jeremy


Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000d5fff1fb
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Application Specific Information:

Java information:
Exception type: Bus Error (0xa) at pc=0x3c2c88f8

Java VM: Java HotSpot(TM) Client VM (14.3-b01-101 mixed mode macosx-
x86)

Current thread (0x12800000): JavaThread "main" [_thread_in_native,
id=-1610115872, stack(0xbf800000,0xc0000000)]
Stack: [0xbf800000,0xc0000000]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.eclipse.swt.internal.carbon.OS.ATSUSetRunStyle(IIII)I+0
J org.eclipse.swt.graphics.TextLayout.computeRuns()V
j org.eclipse.swt.graphics.TextLayout.getLineCount()I+5
j org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(IIII)Lorg/
eclipse/swt/graphics/TextLayout;+1945
j org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(I)Lorg/
eclipse/swt/graphics/TextLayout;+23
j org.eclipse.swt.custom.StyledText.getPointAtOffset(I)Lorg/eclipse/
swt/graphics/Point;+100
J org.eclipse.swt.custom.StyledText.setStyleRanges(II[I[Lorg/eclipse/
swt/custom/StyleRange;Z)V
j org.eclipse.swt.custom.StyledText.setStyleRanges([Lorg/eclipse/swt/
custom/StyleRange;)V+29
j org.eclipse.jface.text.TextViewer.applyTextPresentation(Lorg/
eclipse/jface/text/TextPresentation;)V+97
j org.eclipse.jface.text.TextViewer.changeTextPresentation(Lorg/
eclipse/jface/text/TextPresentation;Z)V+109
j net.sf.colorer.eclipse.jface.TextColorer
$AsyncReconcyler.repairPresentation(Z)V+365
j net.sf.colorer.eclipse.jface.TextColorer
$AsyncReconcyler.textChanged(Lorg/eclipse/jface/text/TextEvent;)V+80
j org.eclipse.jface.text.TextViewer.updateTextListeners(Lorg/eclipse/
jface/text/TextViewer$WidgetCommand;)V+91
j org.eclipse.jface.text.TextViewer.invalidateTextPresentation()V+60
j net.sf.colorer.eclipse.jface.TextColorer.invalidateSyntax()V+14
j net.sf.colorer.eclipse.jface.TextColorer.setRegionMapper(Ljava/lang/
String;Z)V+102
j net.sf.colorer.eclipse.editors.ColorerEditor.propertyChange(Lorg/
eclipse/jface/util/PropertyChangeEvent;)V+86
j net.sf.colorer.eclipse.editors.ColorerEditor.relinkColorer()V+57
j net.sf.colorer.eclipse.editors.ColorerEditor.handleAttachComplete()V
+27
j net.sf.colorer.eclipse.jface.TextColorer
$AsyncReconcyler.inputDocumentChanged(Lorg/eclipse/jface/text/
IDocument;Lorg/eclipse/jface/text/IDocument;)V+16
j org.eclipse.jface.text.TextViewer.fireInputDocumentChanged(Lorg/
eclipse/jface/text/IDocument;Lorg/eclipse/jface/text/IDocument;)V+32
j org.eclipse.jface.text.TextViewer.setDocument(Lorg/eclipse/jface/
text/IDocument;)V+51
j org.eclipse.jface.text.source.SourceViewer.setDocument(Lorg/eclipse/
jface/text/IDocument;Lorg/eclipse/jface/text/source/
IAnnotationModel;II)V+44
j
org.eclipse.jface.text.source.projection.ProjectionViewer.setDocument(Lorg/
eclipse/jface/text/IDocument;Lorg/eclipse/jface/text/source/
IAnnotationModel;II)V+66
j org.eclipse.jface.text.source.SourceViewer.setDocument(Lorg/eclipse/
jface/text/IDocument;Lorg/eclipse/jface/text/source/IAnnotationModel;)V
+5
j
org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(Lorg/
eclipse/ui/IEditorInput;)V+34
j org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(Lorg/
eclipse/swt/widgets/Composite;)V+823
j org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(Lorg/
eclipse/swt/widgets/Composite;)V+70
j
org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(Lorg/
eclipse/swt/widgets/Composite;)V+2
j org.eclipse.ui.internal.EditorReference.createPartHelper()Lorg/
eclipse/ui/IEditorPart;+321
j org.eclipse.ui.internal.EditorReference.createPart()Lorg/eclipse/ui/
IWorkbenchPart;+27
j org.eclipse.ui.internal.WorkbenchPartReference.getPart(Z)Lorg/
eclipse/ui/IWorkbenchPart;+65
j org.eclipse.ui.internal.EditorReference.getEditor(Z)Lorg/eclipse/ui/
IEditorPart;+2
j org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(Lorg/
eclipse/ui/IEditorInput;Ljava/lang/String;ZILorg/eclipse/ui/
IMemento;)Lorg/eclipse/ui/IEditorPart;+233
j org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Lorg/eclipse/
ui/IEditorInput;Ljava/lang/String;ZILorg/eclipse/ui/IMemento;)Lorg/
eclipse/ui/IEditorPart;+27
j org.eclipse.ui.internal.WorkbenchPage.access$11(Lorg/eclipse/ui/
internal/WorkbenchPage;Lorg/eclipse/ui/IEditorInput;Ljava/lang/
String;ZILorg/eclipse/ui/IMemento;)Lorg/eclipse/ui/IEditorPart;+8
j org.eclipse.ui.internal.WorkbenchPage$10.run()V+29
j org.eclipse.swt.custom.BusyIndicator.showWhile(Lorg/eclipse/swt/
widgets/Display;Ljava/lang/Runnable;)V+116
j org.eclipse.ui.internal.WorkbenchPage.openEditor(Lorg/eclipse/ui/
IEditorInput;Ljava/lang/String;ZILorg/eclipse/ui/IMemento;)Lorg/
eclipse/ui/IEditorPart;+59
j org.eclipse.ui.internal.WorkbenchPage.openEditor(Lorg/eclipse/ui/
IEditorInput;Ljava/lang/String;ZI)Lorg/eclipse/ui/IEditorPart;+7
j org.eclipse.ui.internal.WorkbenchPage.openEditor(Lorg/eclipse/ui/
IEditorInput;Ljava/lang/String;Z)Lorg/eclipse/ui/IEditorPart;+5
j org.eclipse.ui.ide.IDE.openEditor(Lorg/eclipse/ui/
IWorkbenchPage;Lorg/eclipse/core/resources/IFile;ZZ)Lorg/eclipse/ui/
IEditorPart;+36
j org.eclipse.ui.ide.IDE.openEditor(Lorg/eclipse/ui/
IWorkbenchPage;Lorg/eclipse/core/resources/IFile;Z)Lorg/eclipse/ui/
IEditorPart;+4
j org.eclipse.ui.actions.OpenFileAction.openFile(Lorg/eclipse/core/
resources/IFile;)V+17
j org.eclipse.ui.actions.OpenSystemEditorAction.run()V+35
j
org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAction(Lorg/
eclipse/jface/viewers/IStructuredSelection;)V+26
j
org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAction(Lorg/
eclipse/jface/viewers/IStructuredSelection;)V+5
j org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen(Lorg/
eclipse/jface/viewers/ISelection;)V+15
j org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Lorg/
eclipse/jface/viewers/ISelection;Z)V+5
j org.eclipse.ui.OpenAndLinkWithEditorHelper
$InternalListener.open(Lorg/eclipse/jface/viewers/OpenEvent;)V+25
j org.eclipse.jface.viewers.StructuredViewer$2.run()V+8
J org.eclipse.core.runtime.SafeRunner.run(Lorg/eclipse/core/runtime/
ISafeRunnable;)V
j org.eclipse.core.runtime.Platform.run(Lorg/eclipse/core/runtime/
ISafeRunnable;)V+1
j org.eclipse.ui.internal.JFaceUtil$1.run(Lorg/eclipse/core/runtime/
ISafeRunnable;)V+1
j org.eclipse.jface.util.SafeRunnable.run(Lorg/eclipse/core/runtime/
ISafeRunnable;)V+4
j org.eclipse.jface.viewers.StructuredViewer.fireOpen(Lorg/eclipse/
jface/viewers/OpenEvent;)V+32
j org.eclipse.jface.viewers.StructuredViewer.handleOpen(Lorg/eclipse/
swt/events/SelectionEvent;)V+31
j org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Lorg/
eclipse/swt/events/SelectionEvent;)V+5
j org.eclipse.jface.util.OpenStrategy.fireOpenEvent(Lorg/eclipse/swt/
events/SelectionEvent;)V+38
j org.eclipse.jface.util.OpenStrategy.access$2(Lorg/eclipse/jface/
util/OpenStrategy;Lorg/eclipse/swt/events/SelectionEvent;)V+2
j org.eclipse.jface.util.OpenStrategy$1.handleEvent(Lorg/eclipse/swt/
widgets/Event;)V+37
J org.eclipse.swt.widgets.EventTable.sendEvent(Lorg/eclipse/swt/
widgets/Event;)V
j org.eclipse.swt.widgets.Widget.sendEvent(Lorg/eclipse/swt/widgets/
Event;)V+25
j org.eclipse.swt.widgets.Widget.sendEvent(ILorg/eclipse/swt/widgets/
Event;Z)V+73
j org.eclipse.swt.widgets.Widget.sendEvent(ILorg/eclipse/swt/widgets/
Event;)V+4
j org.eclipse.swt.widgets.Widget.notifyListeners(ILorg/eclipse/swt/
widgets/Event;)V+19
j org.eclipse.swt.widgets.Display.runDeferredEvents()Z+96
j org.eclipse.swt.widgets.Control.sendTrackEvents()V+6
j org.eclipse.swt.widgets.Control.kEventControlTrack(III)I+158
J org.eclipse.swt.widgets.Widget.controlProc(III)I
J org.eclipse.swt.widgets.Display.controlProc(III)I
v ~StubRoutines::call_stub
j org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(II)I+0
j org.eclipse.swt.widgets.Tree.kEventMouseDown(III)I+29
j org.eclipse.swt.widgets.Widget.mouseProc(III)I+68
j org.eclipse.swt.widgets.Display.mouseProc(III)I+476
v ~StubRoutines::call_stub
j org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(II)I+0
j org.eclipse.swt.widgets.Display.readAndDispatch()Z+52
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+393
j org.eclipse.ui.internal.Workbench.access$4(Lorg/eclipse/ui/internal/
Workbench;)I+1
j org.eclipse.ui.internal.Workbench$5.run()V+55
j org.eclipse.core.databinding.observable.Realm.runWithDefault(Lorg/
eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V+12
j org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/
eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/
WorkbenchAdvisor;)I+18
j org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/
widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
j org.eclipse.ui.internal.ide.application.IDEApplication.start(Lorg/
eclipse/equinox/app/IApplicationContext;)Ljava/lang/Object;+84
j org.eclipse.equinox.internal.app.EclipseAppHandle.run(Ljava/lang/
Object;)Ljava/lang/Object;+135
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;+149
j org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/
String;Ljava/lang/Runnable;)Ljava/lang/Object;+183
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;+161
j org.eclipse.equinox.launcher.Main.invokeFramework([Ljava/lang/
String;[Ljava/net/URL;)V+211
j org.eclipse.equinox.launcher.Main.basicRun([Ljava/lang/String;)V
+114
j org.eclipse.equinox.launcher.Main.run([Ljava/lang/String;)I+4
v ~StubRoutines::call_stub

Igor Russkih

unread,
May 3, 2010, 4:58:25 AM5/3/10
to col...@googlegroups.com
Hi Jeremy.

Can you tell me if it crashes with previous 0.8.0 or 0.7.2 builds?

Because between these native part has no changes.

 Igor
Message has been deleted
Message has been deleted

jeremy

unread,
May 3, 2010, 7:50:41 AM5/3/10
to Colorer
Hi Igor,
something strange, with the 0.7.2, the crashes take about 20secondes
to occur...
For the 0.8.0 the craches take 1-2secondes to occur.

Its immediate for the 0.9.0 or 0.9.1


here is the bug for the 0.7.2:
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Lorg/eclipse/
swt/internal/cocoa/objc_super;IIIIZ)I+0
j
org.eclipse.swt.widgets.Display.applicationNextEventMatchingMask(IIIIII)I
+72
j org.eclipse.swt.widgets.Display.applicationProc(IIIIII)I+29
v ~StubRoutines::call_stub
j org.eclipse.swt.internal.cocoa.OS.objc_msgSend(IIIIIZ)I+0
J
org.eclipse.swt.internal.cocoa.NSApplication.nextEventMatchingMask(ILorg/
eclipse/swt/internal/cocoa/NSDate;Lorg/eclipse/swt/internal/cocoa/
NSString;Z)Lorg/eclipse/swt/internal/cocoa/NSEvent;
j org.eclipse.swt.widgets.Display.readAndDispatch()Z+88
Thanks Jeremy

On 3 mai, 13:38, jeremy <semh...@gmail.com> wrote:
> Apple have his own java, so it can not be reinstalled...
>
> On 3 mai, 13:36, jeremy <semh...@gmail.com> wrote:
>
>
>
> > Hi Igor,
>
> > It crashes with the previous version too...
> > I'm trying to reinstall java
>
> > Jeremy

Igor Russkih

unread,
May 3, 2010, 8:42:09 AM5/3/10
to col...@googlegroups.com
This looks like a corruption, since traces point out not to the colorer's code.

This somehow explains why the time to crash is different in different situation.

However, the man who compiled this build for macos x86 says colorer works great on his environment.

This may be some hidden error in colorer's JNI code which crashes it on latest macosx, but runs fine on previous versions... Unfortunately I have no access to macos h/w, so can't debug and investigate on this..

 Igor

Igor Russkih

unread,
May 4, 2010, 4:18:29 PM5/4/10
to col...@googlegroups.com
Jeremy,

As I suggest in parallel thread for win32 64-bit, could you please try the latest trunk on your system? It  has a bit more 'standard' JNI handling and possibly could change situation with macos build...

 Igor

jeremy

unread,
May 5, 2010, 5:39:08 AM5/5/10
to Colorer
Hi Igor,

I try to get the lastest trunk, and i think i need to build it, so i
run the ant command
I got an error:
Target "eclipseplugin-native-macosx-x86" does not exist in the project
"net.sf.colorer".

in my build.properties i have this:
source.colorer.jar = src/
output.colorer.jar = bin/
bin.includes = plugin.xml,\
META-INF/,\
colorer.jar,\
icons/

eclipseplugin-version=0.9.2

#
# Path to Eclipse IDE dir.
# Used to compile EclipseColorer plugin
#
eclipse.dir=/Users/jeremy/Downloads/eclipse 2/
#eclipse.dir=d:/programs/devel/eclipse
this.eclipse.dir=d:/programs/devel/eclipseplugins/eclipse

target.os=macosx
target.arch=x86


maybe i've done something wrong?

thanks

Jeremy

On 4 mai, 22:18, Igor Russkih <iruss...@gmail.com> wrote:
> Jeremy,
>
> As I suggest in parallel thread for win32 64-bit, could you please try the
> latest trunk on your system? It  has a bit more 'standard' JNI handling and
> possibly could change situation with macos build...
>
>  Igor
>
>
>
> On Mon, May 3, 2010 at 4:42 PM, Igor Russkih <iruss...@gmail.com> wrote:
> > This looks like a corruption, since traces point out not to the colorer's
> > code.
>
> > This somehow explains why the time to crash is different in different
> > situation.
>
> > However, the man who compiled this build for macos x86 says colorer works
> > great on his environment.
>
> > This may be some hidden error in colorer's JNI code which crashes it on
> > latest macosx, but runs fine on previous versions... Unfortunately I have no
> > access to macos h/w, so can't debug and investigate on this..
>
> >  Igor
>

Igor Russkih

unread,
May 5, 2010, 8:24:43 AM5/5/10
to col...@googlegroups.com
Hi Jeremy,

to build native lib you still have to manually do
make -f makefile.macos
in libnative folder

build.xml for now is only used to package the stuff. I'll fix the below stuff, in the mean time you may just copy jnilib manually.


 Igor

jeremy

unread,
May 5, 2010, 10:39:20 AM5/5/10
to Colorer
Igor,

I just run the make and i got this error:
g++ -bundle -arch i386 -arch ppc7400 -o libnet_sf_colorer.jnilib objs/
net_sf_colorer.o objs/adler32.o objs/crc32.o objs/inffast.o objs/
inflate.o objs/inftrees.o objs/uncompr.o objs/zutil.o objs/unzip.o
objs/ioapi.o objs/Logging.o objs/xmldom.o objs/cregexp.o objs/
BitArray.o objs/Character.o objs/CharacterClass.o objs/String.o objs/
DString.o objs/SString.o objs/StringBuffer.o objs/UnicodeTools.o objs/
Encodings.o objs/Exception.o objs/MemoryChunks.o objs/InputSource.o
objs/FileInputSource.o objs/HTTPInputSource.o objs/JARInputSource.o
objs/SharedInputSource.o objs/Writer.o objs/StreamWriter.o objs/
FileWriter.o objs/ParserFactory.o objs/ErrorHandlerWriter.o objs/
FileErrorHandler.o objs/LineRegionsCompactSupport.o objs/
LineRegionsSupport.o objs/RegionMapperImpl.o objs/StyledHRDMapper.o
objs/TextHRDMapper.o objs/BaseEditor.o objs/Outliner.o objs/
HRCParserImpl.o objs/HRCParserHelpers.o objs/TextParserImpl.o objs/
TextParserHelpers.o objs/ConsoleTools.o objs/TextConsoleViewer.o objs/
TextLinesStore.o objs/malloc.o -lstdc++
Undefined symbols for architecture i386:
"_fseeko64", referenced from:
_fseek64_file_func in ioapi.o
"_fopen64", referenced from:
_fopen64_file_func in ioapi.o
(maybe you meant: _fill_fopen64_filefunc)
"_ftello64", referenced from:
_ftell64_file_func in ioapi.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Undefined symbols for architecture ppc:
"_fseeko64", referenced from:
_fseek64_file_func in ioapi.o
"_fopen64", referenced from:
_fopen64_file_func in ioapi.o
(maybe you meant: _fill_fopen64_filefunc)
"_ftello64", referenced from:
_ftell64_file_func in ioapi.o
ld: symbol(s) not found for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/fA/fAnvAxVZFLaorCU0KhFHIU++
+TI/-Tmp-//ccmzIQg3.out (No such file or directory)
make: *** [libnet_sf_colorer.jnilib] Error 1

i am installing a latest version of gcc

Jeremy

jeremy

unread,
May 10, 2010, 5:46:35 AM5/10/10
to Colorer
Hi Igor,

I just finish to compile and test my colorer, and ... it works!
The 64library in mac has no fopen64, fseeko64 or ftello64,
so i have to make some modification in the file colorer/src/zlib/
contrib/minizip/ioapi.c, i added:


#define fopen64 fopen
#define fseeko64 fseeko
#define ftello64 ftello

and for my os, i can't compile the ppc version so i remove the -arch
ppc7000

and with all this changes, the trunk version don't crash.

Thanks for your help.

I'm triying to attach the file in this group

Jeremy

Igor Russkih

unread,
May 10, 2010, 9:25:00 AM5/10/10
to col...@googlegroups.com
Hi Jeremy, thats great!

Regarding your ioapi.c patch, could you please try to do the same, but just defining a -DUSE_FILE32API in your makefile? Thats abit more straightforward way..

And then, could you please send me your modifications diff so I can integrate it for future users?

I've got your file, is my understanding correct that you are placing it under /os/macosx/x86 ? I then put it into next release...

 Igor

jeremy

unread,
May 10, 2010, 11:11:43 AM5/10/10
to Colorer
Hi Igor,

I'll do the modification in the makefile asap.

That's right, i've put the file under /os/macosx/x86 .
If i've enough time, i'll try to do a x86_64, but's it's not yet
done...
Thanks again for your help.

Jeremy
Reply all
Reply to author
Forward
0 new messages