[voikko-devel] Core dump in Malaga 7.6

Hannu Väisänen hvaisane at joyx.joensuu.fi
Mon Sep 25 14:12:48 EEST 2006


Malaga version 7.6 dumps core if input to malaga is encoded in
ISO-8859-15. Of course it should not work because Malaga uses UTF-8
but is it possible to give an error message instead of a core dump?

Debugger says that the core dump comes from GLib's function
g_unichar_to_utf8 ().


> gdb malaga core*
GNU gdb Red Hat Linux (6.3.0.0-1.134.fc5rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

Reading symbols from shared object read from target memory...(no debugging symbols found)...done.
Loaded system supplied DSO at 0xa1e000
Core was generated by `malaga suomi.pro'.
Program terminated with signal 11, Segmentation fault.

warning: svr4_current_sos: Can't read pathname for load map: Input/output error

Reading symbols from /usr/lib/libglib-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libglib-2.0.so.0
Reading symbols from /usr/lib/libreadline.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libreadline.so.5
Reading symbols from /usr/lib/libncurses.so.5...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libncurses.so.5
Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...
(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x0016302e in g_unichar_to_utf8 ()
   from /usr/lib/libglib-2.0.so.0
(gdb) where
#0  0x0016302e in g_unichar_to_utf8 () from /usr/lib/libglib-2.0.so.0
#1  0x0804a85b in ?? ()
#2  0xffffffff in ?? ()
#3  0x08e32ffe in ?? ()
#4  0xbf9507f8 in ?? ()
#5  0x08e25f8b in ?? ()
#6  0x00000000 in ?? ()
(gdb)



More information about the devel mailing list