[Bug 31121] telepathy-logger-0.1.5: _tpl_log_manager_add_message: Process /usr/libexec/telepathy-logger was killed by signal 11

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Dec 6 18:24:01 CET 2010


https://bugs.freedesktop.org/show_bug.cgi?id=31121

--- Comment #3 from Matthew Booth <mbooth at redhat.com> 2010-12-06 09:24:00 PST ---
(In reply to comment #1)
> There's a patch on https://bugzilla.redhat.com/show_bug.cgi?id=646715#c14, but
> I don't think it's correct. I've tested this and when I send empty lines, they
> don't trigger the problem and get logged.

You mean that when you send empty lines they don't generate an error, and do
appear in the log? If so, that's the intended behaviour :)

> In fact they are not null strings,
> they are '\n', so TPL_STR_EMPTY() won't return TRUE on them and so that can't
> be the cause.

I've traced this, and they're definitely empty strings. See my gdb output in
https://bugzilla.redhat.com/show_bug.cgi?id=646715#c17

> My fix sets the error before returning FALSE so that when we check the error on
> _tpl_log_manager_add_message(), it's set and we don't crash.

I don't believe this is correct. The reason being that every time somebody
enters a blank line, telepathy will trigger the following in log-manager.c:

          CRITICAL ("logstore name=%s: %s. "
              "Event may not be logged properly.",
              _tpl_log_store_get_name (store), loc_error->message);

By all means look for an alternative root cause, though. If you're convinced
that \n isn't supposed to be stripped, it would be worth looking for why it has
been stripped. Not being personally familiar with the codebase outside
debugging this one issue, I can't say for sure what the expected behaviour is.
However, I have noticed that it logs a separate message per line. Stripping
newlines does seem to make sense in this context.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list