Ruben Fonseca
2007-07-24 11:00:03 UTC
Hi!
I'm using the colorer binaries and the Java bindings to syntax highlight
some HTML on a SWT StyledText widget.
Everything went ok, but now everytime I need to show code, my java
process crashes wiht a segfault.
I narrowed my problem to the TextColorer.setRegionMapper function. If I
comment this call, everything goes smoothly (i.e., the code is presented
without any syntax highlight). As soon as I uncomment the line, java
crashes.
Here is the usefull part of the backtrace.
glibc detected *** /usr/lib/jvm/java-6-sun-1.6.0.02/bin/java: double
free or corruption (out): 0x093985e8 ***
======= Backtrace: =========
/lib/i686/cmov/libc.so.6[0xb7e4bd55]
/lib/i686/cmov/libc.so.6(cfree+0x90)[0xb7e4f7f0]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb3f7feb1]
/usr/lib/libstdc++.so.6(_ZdaPv+0x1d)[0xb3f7ff0d]
/media/ROOT/workspace/WebAppViewer/colorer/os/linux/x86/libnet_sf_colorer.so(_ZN6VectorIP13_jobjectArrayE14ensureCapacityEi+0x7f)[0xb2161f1f]
/media/ROOT/workspace/WebAppViewer/colorer/os/linux/x86/libnet_sf_colorer.so(_ZN6VectorIP13_jobjectArrayE7setSizeEi+0x57)[0xb2161a77]
/media/ROOT/workspace/WebAppViewer/colorer/os/linux/x86/libnet_sf_colorer.so(Java_net_sf_colorer_impl_BaseEditorNative_getLineRegions+0x98)[0xb2160318]
Is this solved in SVN? I tried to build the svn version on linux
(following the INSTALL file) but it fails somewhere in a XSD conversion.
Can you PLEASE help me somehow? I really need this library to work so I
can finnish my project :(
TIA
Ruben
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
I'm using the colorer binaries and the Java bindings to syntax highlight
some HTML on a SWT StyledText widget.
Everything went ok, but now everytime I need to show code, my java
process crashes wiht a segfault.
I narrowed my problem to the TextColorer.setRegionMapper function. If I
comment this call, everything goes smoothly (i.e., the code is presented
without any syntax highlight). As soon as I uncomment the line, java
crashes.
Here is the usefull part of the backtrace.
glibc detected *** /usr/lib/jvm/java-6-sun-1.6.0.02/bin/java: double
free or corruption (out): 0x093985e8 ***
======= Backtrace: =========
/lib/i686/cmov/libc.so.6[0xb7e4bd55]
/lib/i686/cmov/libc.so.6(cfree+0x90)[0xb7e4f7f0]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb3f7feb1]
/usr/lib/libstdc++.so.6(_ZdaPv+0x1d)[0xb3f7ff0d]
/media/ROOT/workspace/WebAppViewer/colorer/os/linux/x86/libnet_sf_colorer.so(_ZN6VectorIP13_jobjectArrayE14ensureCapacityEi+0x7f)[0xb2161f1f]
/media/ROOT/workspace/WebAppViewer/colorer/os/linux/x86/libnet_sf_colorer.so(_ZN6VectorIP13_jobjectArrayE7setSizeEi+0x57)[0xb2161a77]
/media/ROOT/workspace/WebAppViewer/colorer/os/linux/x86/libnet_sf_colorer.so(Java_net_sf_colorer_impl_BaseEditorNative_getLineRegions+0x98)[0xb2160318]
Is this solved in SVN? I tried to build the svn version on linux
(following the INSTALL file) but it fails somewhere in a XSD conversion.
Can you PLEASE help me somehow? I really need this library to work so I
can finnish my project :(
TIA
Ruben
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/