Bug 36178 - xml log store sometimes asserts when getting entities
Summary: xml log store sometimes asserts when getting entities
Status: RESOLVED NOTABUG
Alias: None
Product: Telepathy
Classification: Unclassified
Component: logger (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 11:00 UTC by Emilio Pozuelo Monfort
Modified: 2011-04-15 11:38 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Emilio Pozuelo Monfort 2011-04-12 11:00:11 UTC
From time to time I see the logger assert when getting entities. May be because of concurrent calls. I guess there should be a mutex to access/set self->priv->basedir


tp-logger-CRITICAL **: log_store_xml_set_basedir: assertion `self->priv->basedir == NULL' failed
aborting...

tp-logger-CRITICAL **: log_store_xml_set_basedir: assertion `self->priv->basedir == NULL' failed
aborting...

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffdb5cd700 (LWP 11439)]
0x00007fffee1a5165 in raise (sig=<value optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64	../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
	in ../nptl/sysdeps/unix/sysv/linux/raise.c
(gdb) bt
#0  0x00007fffee1a5165 in raise (sig=<value optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007fffee1a7f70 in abort () at abort.c:92
#2  0x00007fffee52332a in g_logv (log_domain=0x7ffff3265ba0 "tp-logger", 
    log_level=<value optimized out>, 
    format=0x7fffee569f88 "%s: assertion `%s' failed", args1=0x7fffdb5cc9a0)
    at /tmp/buildd/glib2.0-2.28.4/./glib/gmessages.c:557
#3  0x00007fffee5233b3 in g_log (log_domain=<value optimized out>, 
    log_level=<value optimized out>, format=<value optimized out>)
    at /tmp/buildd/glib2.0-2.28.4/./glib/gmessages.c:577
#4  0x00007ffff325627f in log_store_xml_get_basedir (self=0x8d2590)
    at log-store-xml.c:1511
#5  0x00007ffff32563d0 in log_store_xml_get_dir (self=0x8d2590, 
    account=<value optimized out>, target=0x0) at log-store-xml.c:333
#6  0x00007ffff32566a5 in log_store_xml_get_entities (store=0x8d2590, 
    account=0x98f060) at log-store-xml.c:1465
#7  0x00007ffff3253e7d in _tpl_log_manager_get_entities (
    manager=<value optimized out>, account=0x98f060) at log-manager.c:671
#8  0x00007ffff3253f3b in _get_entities_async_thread (simple=0x7fffe0097360, 
    object=<value optimized out>, cancellable=<value optimized out>)
    at log-manager.c:1237
#9  0x00007fffef08e8cc in run_in_thread (job=<value optimized out>, c=0x0, 
    _data=0xafcf40)
    at /tmp/buildd/glib2.0-2.28.4/./gio/gsimpleasyncresult.c:838
#10 0x00007fffef0802a6 in io_job_thread (data=0xa8dbb0, 
    user_data=<value optimized out>)
    at /tmp/buildd/glib2.0-2.28.4/./gio/gioscheduler.c:181
#11 0x00007fffee5443e4 in g_thread_pool_thread_proxy (
    data=<value optimized out>)
    at /tmp/buildd/glib2.0-2.28.4/./glib/gthreadpool.c:319
#12 0x00007fffee541cf6 in g_thread_create_proxy (data=0xa38fc0)
    at /tmp/buildd/glib2.0-2.28.4/./glib/gthread.c:1897
#13 0x00007ffff47198ba in start_thread (arg=<value optimized out>)
    at pthread_create.c:300
#14 0x00007fffee2423cd in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()
(gdb)
Comment 1 Nicolas Dufresne 2011-04-15 11:38:16 UTC
Concurrent calls are not allowed.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.