Segfault at slow sync

View: New views
1 Messages — Rating Filter:   Alert me  

Segfault at slow sync

by Tino Keitel-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I get a segmentation fault in opensync 0.39 when running
osynctool --sync tel --conflict 1:

Synchronizing group "tel"
The previous synchronization was unclean. Slow-syncing
Main sink of member 3 of type syncml-obex-client just connected
contact sink of member 1 of type evo2-sync just connected
Main sink of member 1 of type evo2-sync just connected
contact sink of member 3 of type syncml-obex-client just connected
All clients connected or error
Main sink of member 3 of type syncml-obex-client just sent all changes
Received an entry pas-id-4AC1C32100000025 (xmlformat-contact) from
member 1 (evo2-sync). Changetype ADDED
Received an entry pas-id-4AC1C3210000002E (xmlformat-contact) from
member 1 (evo2-sync). Changetype ADDED
...
Received an entry pas-id-4AC1C32200000063 (xmlformat-contact) from
member 1 (evo2-sync). Changetype ADDED
Received an entry pas-id-4AC1C3220000006C (xmlformat-contact) from
member 1 (evo2-sync). Changetype ADDED
contact sink of member 1 of type evo2-sync just sent all changes
Main sink of member 1 of type evo2-sync just sent all changes
Received an entry 890 (xmlformat-contact) from member 3
(syncml-obex-client). Changetype ADDED
Received an entry 861 (xmlformat-contact) from member 3
(syncml-obex-client). Changetype ADDED
...
Received an entry 918 (xmlformat-contact) from member 3
(syncml-obex-client). Changetype ADDED
Received an entry 899 (xmlformat-contact) from member 3
(syncml-obex-client). Changetype ADDED
contact sink of member 3 of type syncml-obex-client just sent all
changes
All clients sent changes or error
Conflict for Mapping 0x7f68a010fe40: Solving conflict
Conflict for Mapping 0x7f68a0138a50: Solving conflict
...
Conflict for Mapping 0x7f68a0148200: Solving conflict
Conflict for Mapping 0x7f68a0148340: Solving conflict
All changes got mapped
All conflicts have been reported
All changes got multiplied
Segmentation fault (core dumped)

Here is the backtrace, I hope it is usefull:

(gdb) bt
#0  xmlDocDumpFormatMemoryEnc__internal_alias
# (out_doc=0x540a0d3b3b3b616f, doc_txt_ptr=0x7f68ab589c48,
    doc_txt_len=0x7f68ab589c54, txt_encoding=0x0, format=1) at
xmlsave.c:2202
#1  0x00007f68b5b38784 in osync_xmlformat_assemble (xmlformat=<value
# optimized out>, buffer=0x7f68ab589c48,
    size=0x7f68ab589c54, error=<value optimized out>)
    at
/home/scratch2/src/opensync/0.39/libopensync-0.39/opensync/xmlformat/opensync_xmlformat.c:251
#2  0x00007f68b330c08a in conv_xmlformat_to_vcard (
    input=0x7f68a0019e20
"BEGIN:VCARD\r\nVERSION:2.1\r\nN:Restaurant;Goa;;;\r\nTEL;WORK:08921111789\r\nEND:VCARD\r\n",
    inpsize=<value optimized out>, output=0x7f68ab589ca8,
outpsize=0x7f68ab589cc0, free_input=0x7f68ab589cbc,
    config=0x7f68a000c970 "", error=0x7f68ab589e80, target=0)
    at
/home/scratch2/src/opensync/0.39/libopensync-plugin-vformat-0.39/src/xmlformat-vcard.c:1909
#3  0x00007f68b5b14f23 in osync_converter_invoke (converter=0x7d6dc0,
/data=0x7f68a0062250, config=0x7f68a000c970 "",
    error=0x7f68ab589e80) at
/home/scratch2/src/opensync/0.39/libopensync-0.39/opensync/format/opensync_converter.c:193
#4  0x00007f68b5b1660c in osync_format_env_convert (env=<value
/optimized out>, path=0x7f68a0071f00, data=0x7f68a0062250,
    error=0x7f68ab589e80) at
/home/scratch2/src/opensync/0.39/libopensync-0.39/opensync/format/opensync_format_env.c:1213
#5  0x00007f68b5b0f93e in osync_entry_engine_convert
/(entry_engine=0x7f68a013ea00, formatenv=0x7d3ed0,
/objtype_sink=0x62ee60,
    cachedpath=0x7f68ab589db0, error=0x7f68ab589e80)
    at
/home/scratch2/src/opensync/0.39/libopensync-0.39/opensync/engine/opensync_mapping_entry_engine.c:252
#6  0x00007f68b5b1363c in osync_sink_engine_convert_to_dest
/(engine=<value optimized out>, formatenv=0x7d3ed0,
    error=0x7f68ab589e80) at
/home/scratch2/src/opensync/0.39/libopensync-0.39/opensync/engine/opensync_sink_engine.c:196
#7  0x00007f68b5b10430 in osync_obj_engine_prepare_write
/(engine=0xcc1af0, error=0x7f68ab589e80)
    at
/home/scratch2/src/opensync/0.39/libopensync-0.39/opensync/engine/opensync_obj_engine.c:1459
#8  0x00007f68b5b12c83 in osync_obj_engine_command (engine=0xcc1af0,
/cmd=<value optimized out>, error=0x7f68ab589e80)
    at
/home/scratch2/src/opensync/0.39/libopensync-0.39/opensync/engine/opensync_obj_engine.c:1208
#9  0x00007f68b5b0bf1d in osync_engine_event (engine=0x7b3020,
/event=<value optimized out>)
    at
/home/scratch2/src/opensync/0.39/libopensync-0.39/opensync/engine/opensync_engine.c:1989
#10 0x00007f68b5b0df65 in _osync_engine_generate_multiplied_event
/(objengine=<value optimized out>,
    event=<value optimized out>, error=0x0, userdata=<value optimized
out>)
    at
/home/scratch2/src/opensync/0.39/libopensync-0.39/opensync/engine/opensync_engine.c:1153
#11 _osync_engine_generate_event (objengine=<value optimized out>,
/event=<value optimized out>, error=0x0,
    userdata=<value optimized out>) at
/home/scratch2/src/opensync/0.39/libopensync-0.39/opensync/engine/opensync_engine.c:1481
#12 _osync_engine_event_callback (objengine=<value optimized out>,
/event=<value optimized out>, error=0x0,
    userdata=<value optimized out>) at
/home/scratch2/src/opensync/0.39/libopensync-0.39/opensync/engine/opensync_engine.c:1515
#13 0x00007f68b5b10811 in osync_obj_engine_event (engine=0xcc1af0,
/event=OSYNC_ENGINE_EVENT_MULTIPLIED, error=0x0)
    at
/home/scratch2/src/opensync/0.39/libopensync-0.39/opensync/engine/opensync_obj_engine.c:1306
#14 0x00007f68b5b12d42 in osync_obj_engine_command (engine=0xcc1af0,
/cmd=<value optimized out>, error=0x7f68ab589f68)
    at
/home/scratch2/src/opensync/0.39/libopensync-0.39/opensync/engine/opensync_obj_engine.c:1203
#15 0x00007f68b5b0d03d in osync_engine_command (engine=0x7b3020,
/command=0x7f68a02296a0)
    at
/home/scratch2/src/opensync/0.39/libopensync-0.39/opensync/engine/opensync_engine.c:1828
#16 0x00007f68b5b0d3eb in _command_dispatch (source=<value optimized
/out>, callback=<value optimized out>,
    user_data=<value optimized out>) at
/home/scratch2/src/opensync/0.39/libopensync-0.39/opensync/engine/opensync_engine.c:365
#17 0x00007f68b585612a in g_main_context_dispatch () from
//lib/libglib-2.0.so.0
#18 0x00007f68b5859988 in ?? () from /lib/libglib-2.0.so.0
#19 0x00007f68b5859e5d in g_main_loop_run () from /lib/libglib-2.0.so.0
#20 0x00007f68b587ef84 in ?? () from /lib/libglib-2.0.so.0
#21 0x00007f68b4044f9a in start_thread () from /lib/libpthread.so.0
#22 0x00007f68b559656d in clone () from /lib/libc.so.6
#23 0x0000000000000000 in ?? ()

Regards,
Tino

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Opensync-users mailing list
Opensync-users@...
https://lists.sourceforge.net/lists/listinfo/opensync-users