<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>15132</bug_id>
          
          <creation_ts>2008-03-28 04:00:41 +0300</creation_ts>
          <short_desc>mustn&apos;t segfault in the absence of something (from PolicyKit-0.7-alt1)</short_desc>
          <delta_ts>2008-04-18 17:50:13 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>PolicyKit-gnome-demo</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>15025</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>aris</cc>
    
    <cc>at</cc>
    
    <cc>blake</cc>
    
    <cc>damir</cc>
    
    <cc>evyscr</cc>
    
    <cc>ktirf</cc>
    
    <cc>lav</cc>
    
    <cc>msp</cc>
    
    <cc>oddity</cc>
    
    <cc>shaba</cc>
    
    <cc>shrek</cc>
    
    <cc>syatskevich</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66866</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-03-28 04:00:42 +0300</bug_when>
    <thetext>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 &apos;*PolicyKit*&apos;
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
&lt;...&gt;
inotify_init()                          = 6
inotify_add_watch(6, &quot;/etc/PolicyKit/PolicyKit.conf&quot;,
IN_MODIFY|IN_ATTRIB|IN_CREATE) = -1 ENOENT (No such file or directory)
write(2, &quot;[WARN  6673] polkit-error.c:143:&quot;..., 80[WARN  6673]
polkit-error.c:143:polkit_error_get_error_message(): error != NULL
) = 80
write(2, &quot; Not built with -rdynamic so una&quot;..., 57 Not built with -rdynamic so
unable to print a backtrace
) = 57
brk(0x82ff000)                          = 0x82ff000
brk(0x82f7000)                          = 0x82f7000
write(2, &quot;\n** (polkit-gnome-example:6673):&quot;..., 92
** (polkit-gnome-example:6673): WARNING **: Failed to initialize PolicyKit
context: (null)
) = 92
write(2, &quot;[WARN  6673] polkit-error.c:156:&quot;..., 67[WARN  6673]
polkit-error.c:156:polkit_error_free(): error != NULL
) = 67
write(2, &quot; Not built with -rdynamic so una&quot;..., 57 Not built with -rdynamic so
unable to print a backtrace
) = 57
writev(4, [{&quot;l\1\1\1k\0\0\0\4\0\0\0\177\0\0\0\1\1o\0\25\0\0\0/org/fre&quot;..., 144},
{&quot;f\0\0\0type=&apos;signal&apos;,interface=&apos;org&quot;..., 107}], 2) = 251
writev(4, [{&quot;l\1\1\0016\0\0\0\5\0\0\0\177\0\0\0\1\1o\0\25\0\0\0/org/fre&quot;...,
144}, {&quot;1\0\0\0type=&apos;signal&apos;,sender=&apos;org.fr&quot;..., 54}], 2) = 198
write(2, &quot;\n(polkit-gnome-example:6673): GL&quot;..., 87
(polkit-gnome-example:6673): GLib-GObject-WARNING **: invalid (NULL) pointer
instance
) = 87
write(2, &quot;\n(polkit-gnome-example:6673): GL&quot;..., 131
(polkit-gnome-example:6673): GLib-GObject-CRITICAL **: g_signal_connect_data:
assertion `G_TYPE_CHECK_INSTANCE (instance)&apos; failed
) = 131
write(2, &quot;\n(polkit-gnome-example:6673): GL&quot;..., 87
(polkit-gnome-example:6673): GLib-GObject-WARNING **: invalid (NULL) pointer
instance
) = 87
write(2, &quot;\n(polkit-gnome-example:6673): GL&quot;..., 131
(polkit-gnome-example:6673): GLib-GObject-CRITICAL **: g_signal_connect_data:
assertion `G_TYPE_CHECK_INSTANCE (instance)&apos; failed
) = 131
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++
Process 6673 detached
$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66868</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-03-28 04:05:28 +0300</bug_when>
    <thetext>Related report to fix the dependencies:
https://bugzilla.altlinux.org/show_bug.cgi?id=15133 .

(This one is to fix the segfault.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67526</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2008-04-03 17:27:47 +0400</bug_when>
    <thetext>PolicyKit-gnome-0.7-alt2 required PolicyKit.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>