Bug 16868 - Crash in polkit_dbus_error_parse_from_strings
Summary: Crash in polkit_dbus_error_parse_from_strings
Status: RESOLVED INVALID
Alias: None
Product: PolicyKit
Classification: Unclassified
Component: libpolkit (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: David Zeuthen (not reading bugmail)
QA Contact: David Zeuthen (not reading bugmail)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-27 17:12 UTC by Vincent Untz
Modified: 2009-10-21 10:36 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Vincent Untz 2008-07-27 17:12:40 UTC
GNOME bug http://bugzilla.gnome.org/show_bug.cgi?id=531459

Stack trace:

0x2967e809 in wait4 () from /lib/libc.so.6
#0  0x2967e809 in wait4 () from /lib/libc.so.6
#1  0x296597e3 in waitpid () from /lib/libc.so.6
#2  0x29601242 in waitpid () from /lib/libpthread.so.2
#3  0x294924c8 in g_spawn_sync () from /usr/local/lib/libglib-2.0.so.0
#4  0x2949277e in g_spawn_command_line_sync ()
   from /usr/local/lib/libglib-2.0.so.0
#5  0x29777ce8 in bugbuddy_segv_handle ()
   from /usr/local/lib/gtk-2.0/modules/libgnomebreakpad.so
#6  0x29608f81 in sigaction () from /lib/libpthread.so.2
#7  <signal handler called>
#8  0x296ecf89 in strlen () from /lib/libc.so.6
#9  0x28871a64 in polkit_dbus_error_parse_from_strings ()
   from /usr/local/lib/libpolkit-dbus.so.2
#10 0x2888ae6f in polkit_policy_file_entry_get_annotation ()
   from /usr/local/lib/libpolkit.so.2
#11 0x28ec6971 in doContent () from /usr/local/lib/libexpat.so.6
#12 0x28ec7282 in contentProcessor () from /usr/local/lib/libexpat.so.6
#13 0x28ec488a in doProlog () from /usr/local/lib/libexpat.so.6
#14 0x28ec5b57 in prologProcessor () from /usr/local/lib/libexpat.so.6
#15 0x28ebe702 in XML_ParseBuffer () from /usr/local/lib/libexpat.so.6
#16 0x28ebea7a in XML_Parse () from /usr/local/lib/libexpat.so.6
#17 0x2888b6bc in polkit_policy_file_new () from /usr/local/lib/libpolkit.so.2
#18 0x2888bc26 in polkit_policy_cache_unref ()
   from /usr/local/lib/libpolkit.so.2
#19 0x28887696 in polkit_context_get_policy_cache ()
   from /usr/local/lib/libpolkit.so.2
#20 0x28887848 in polkit_context_is_caller_authorized ()
   from /usr/local/lib/libpolkit.so.2
#21 0x28887a7b in polkit_context_can_caller_do_action ()
   from /usr/local/lib/libpolkit.so.2
#22 0x0806ac68 in ?? ()

Couldn't get a better stack trace from users so far :/
Comment 1 David Zeuthen (not reading bugmail) 2008-07-28 14:34:42 UTC
I wonder what .policy file causes this? Can you try running polkit-policy-file-validate /usr/share/PolicyKit/policy/*.policy' and, ideally, single in on the buggy file? And attach it here? Then it's easier to fix.

(And ideally, inform the owner of the package shipping that file that they need to run p-p-f-v in 'make check')

Either way we shouldn't crash...
Comment 2 Vincent Untz 2008-07-28 14:40:15 UTC
(In reply to comment #1)
> I wonder what .policy file causes this? Can you try running
> polkit-policy-file-validate /usr/share/PolicyKit/policy/*.policy' and, ideally,
> single in on the buggy file? And attach it here? Then it's easier to fix.
> 
> (And ideally, inform the owner of the package shipping that file that they need
> to run p-p-f-v in 'make check')
> 
> Either way we shouldn't crash...

I don't experience the crash myself, but I'll forward your comment.
Comment 3 David Zeuthen (not reading bugmail) 2009-10-21 10:36:57 UTC
This bug report is for the old version of PolicyKit. Closing as all of the code has been rewritten. Please reopen if the bug report applies to the latest version of PolicyKit. Thanks.


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.