Granite's logger service is not thread-safe

Bug #958914 reported by Victor Martinez on 2012-03-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Granite
Fix Released
High
Marcus Lundgren

Bug Description

Granite's Logger service crashes applications. It seems to happen randomly.

Program received signal SIGSEGV, Segmentation fault.
0xb7c11707 in granite_services_logger_log_message_get_Level () from /usr/lib/libgranite.so.0
(gdb) bt
#0 0xb7c11707 in granite_services_logger_log_message_get_Level () from /usr/lib/libgranite.so.0
#1 0xb7c10b15 in granite_services_logger_print_log () from /usr/lib/libgranite.so.0
#2 0xb7c1076e in granite_services_logger_write () from /usr/lib/libgranite.so.0
#3 0xb7c1141b in granite_services_logger_glib_log_func () from /usr/lib/libgranite.so.0
#4 0xb7c0ffe1 in _granite_services_logger_glib_log_func_glog_func () from /usr/lib/libgranite.so.0
#5 0xb72ac713 in g_logv () from /lib/i386-linux-gnu/libglib-2.0.so.0
#6 0xb72ac8d3 in g_log () from /lib/i386-linux-gnu/libglib-2.0.so.0

Related branches

tags: added: crash
Cody Garver (codygarver) on 2012-04-14
Changed in granite:
milestone: none → 0.1.1

Could you provide Granite version number in which the bug happens?
Also, do you have any code samples which trigger the bug? (I'm no coder but it looks like funtions being non-thread-safe or something like that and that doesn't occur in "ordinary" code).

Victor Martinez (victored) wrote :

Yeah, I forgot about this report tbh. The right title is "Granite's logger service is not thread-safe". So far it has only crashed when called from a thread.

summary: - Segfault in granite_services_logger_log_message_get_Level ()
+ Granite's logger service is not thread-safe
Changed in granite:
importance: Undecided → High
status: New → In Progress
Changed in granite:
status: In Progress → Fix Committed
Changed in granite:
status: Fix Committed → In Progress
Cody Garver (codygarver) on 2012-06-19
Changed in granite:
status: In Progress → Fix Committed
Changed in granite:
assignee: nobody → Marcus Lundgren (marcus-lundgren)
Changed in granite:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers