Bug 15132 - mustn't segfault in the absence of something (from PolicyKit-0.7-alt1)
Summary: mustn't segfault in the absence of something (from PolicyKit-0.7-alt1)
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: PolicyKit-gnome-demo (show other bugs)
Version: unstable
Hardware: all Linux
: P2 critical
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks: 15025
  Show dependency tree
 
Reported: 2008-03-28 04:00 MSK by Ivan Zakharyaschev
Modified: 2008-04-18 17:50 MSD (History)
12 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2008-03-28 04:00:42 MSK
PolicyKit-gnome-demo-0.7-alt1 (perhaps this is a bug of libPolicyKit-0.7-alt1)

Discovered by https://bugzilla.altlinux.org/show_bug.cgi?id=15025#c2 .

It segfaults in the absence of something from PolicyKit-0.7-alt1.

Having these pkgs installed:

$ rpm -qa '*PolicyKit*'
libPolicyKit-0.7-alt1
PolicyKit-gnome-0.7-alt1
PolicyKit-gnome-demo-0.7-alt1
libPolicyKit-gnome-0.7-alt1
$ 

the following happens:
Steps to Reproduce:
$ strace -e trace=all -fF polkit-gnome-example
<...>
inotify_init()                          = 6
inotify_add_watch(6, "/etc/PolicyKit/PolicyKit.conf",
IN_MODIFY|IN_ATTRIB|IN_CREATE) = -1 ENOENT (No such file or directory)
write(2, "[WARN  6673] polkit-error.c:143:"..., 80[WARN  6673]
polkit-error.c:143:polkit_error_get_error_message(): error != NULL
) = 80
write(2, " Not built with -rdynamic so una"..., 57 Not built with -rdynamic so
unable to print a backtrace
) = 57
brk(0x82ff000)                          = 0x82ff000
brk(0x82f7000)                          = 0x82f7000
write(2, "\n** (polkit-gnome-example:6673):"..., 92
** (polkit-gnome-example:6673): WARNING **: Failed to initialize PolicyKit
context: (null)
) = 92
write(2, "[WARN  6673] polkit-error.c:156:"..., 67[WARN  6673]
polkit-error.c:156:polkit_error_free(): error != NULL
) = 67
write(2, " Not built with -rdynamic so una"..., 57 Not built with -rdynamic so
unable to print a backtrace
) = 57
writev(4, [{"l\1\1\1k\0\0\0\4\0\0\0\177\0\0\0\1\1o\0\25\0\0\0/org/fre"..., 144},
{"f\0\0\0type='signal',interface='org"..., 107}], 2) = 251
writev(4, [{"l\1\1\0016\0\0\0\5\0\0\0\177\0\0\0\1\1o\0\25\0\0\0/org/fre"...,
144}, {"1\0\0\0type='signal',sender='org.fr"..., 54}], 2) = 198
write(2, "\n(polkit-gnome-example:6673): GL"..., 87
(polkit-gnome-example:6673): GLib-GObject-WARNING **: invalid (NULL) pointer
instance
) = 87
write(2, "\n(polkit-gnome-example:6673): GL"..., 131
(polkit-gnome-example:6673): GLib-GObject-CRITICAL **: g_signal_connect_data:
assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
) = 131
write(2, "\n(polkit-gnome-example:6673): GL"..., 87
(polkit-gnome-example:6673): GLib-GObject-WARNING **: invalid (NULL) pointer
instance
) = 87
write(2, "\n(polkit-gnome-example:6673): GL"..., 131
(polkit-gnome-example:6673): GLib-GObject-CRITICAL **: g_signal_connect_data:
assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
) = 131
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++
Process 6673 detached
$
Comment 1 Ivan Zakharyaschev 2008-03-28 04:05:28 MSK
Related report to fix the dependencies:
https://bugzilla.altlinux.org/show_bug.cgi?id=15133 .

(This one is to fix the segfault.)
Comment 2 Alexey Shabalin 2008-04-03 17:27:47 MSD
PolicyKit-gnome-0.7-alt2 required PolicyKit.