[redland-dev] librdf_python_unicode_to_bytes malloc error

Uldis Bojars captsolo at gmail.com
Mon Feb 22 23:08:08 CET 2010


While developing an application that uses Redland, I ran into the
following error message:

.....Python(83648,0x7fff70218be0) malloc: *** error for object
0x1030dabe8: incorrect checksum for freed object - object was probably
modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Abort trap

I am not experienced with GDB and therefore can only guess, but the
issue might be related to librdf_python_unicode_to_bytes which appears
in backtrace:

Breakpoint 1, 0x00007fff81857951 in malloc_error_break ()
(gdb) bt
#0  0x00007fff81857951 in malloc_error_break ()
#1  0x00007fff81858aa8 in szone_error ()
#2  0x00007fff81781a75 in szone_free_definite_size ()
#3  0x00000001010c2f8c in librdf_python_unicode_to_bytes ()
#4  0x00000001000b8278 in PyEval_EvalFrameEx ()
#5  0x00000001000b8fd0 in PyEval_EvalCodeEx ()
#6  0x000000010003b45d in function_call ()

 - Mac OS X 10.6.2
 - Python 2.6.4
 - Redland 10.0.1
 - Redland bindings
(python and redland installed via macports)

As a workaround I added ".encode("utf-8")" when passing text strings
into Redland (RDF.Node() in this case) and the issue stopped

In case if more debug information would be helpful, could you suggest
where / how to look for this information?


More information about the redland-dev mailing list