RCP: 0.7.7: TXM can't finalize the import
During a Windows import:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006dc5f29d, pid=1500, tid=14464
#
# JRE version: OpenJDK Runtime Environment (7.0-b30) (build 1.7.0-u60-unofficial-b30)
# Java VM: OpenJDK 64-Bit Server VM (24.60-b09 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [cqpjni.dll+0x1f29d]
#
# Failed to write core dum Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x0000000010846000): JavaThread "Worker-13" [_thread_in_native, id=14464, stack(0x000000000e4c0000,0x000000000e5c0000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000008
Solution
Fix cqplib and create new setups :
- corpmanag.c : replace “close_dir” with the glib close directory function “g_close_dir”
- coprmanag.c : prevent “DestroyAttributeList” call if pointer is NULL
Validation test
- Import a corpus from a directory containing accents
- load a corpus
MD: OK
(from redmine: issue id 1172, created on 2014/12/09 by Matthieu Decorde)