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

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

    <bug>
          <bug_id>18079</bug_id>
          
          <creation_ts>2008-12-02 23:03:03 +0300</creation_ts>
          <short_desc>psmTriggerPosttrans segfaults on valid NULL file transaction</short_desc>
          <delta_ts>2008-12-18 12:17:02 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>rpm</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Artem Zolochevskiy">azol</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>arseny</cc>
    
    <cc>evg</cc>
    
    <cc>glebfm</cc>
    
    <cc>icesik</cc>
    
    <cc>imz</cc>
    
    <cc>mike</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>82117</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Zolochevskiy">azol</who>
    <bug_when>2008-12-02 23:03:03 +0300</bug_when>
    <thetext>rpm &quot;сегфолтится&quot; при попытке удаления неустановленного пакета

# rpm -e nonexistent
error: package nonexistent is not installed
Segmentation fault

# rpm -q rpm
rpm-4.0.4-alt96.13</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82121</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-12-03 00:55:16 +0300</bug_when>
    <thetext>(gdb) r --dbpath $TMPDIR -e doesnotexist
Starting program: /usr/src/RPM/BUILD/rpm-4_0-4.0.4/.libs/rpmi --dbpath $TMPDIR -e doesnotexist
[Thread debugging using libthread_db enabled]
[New process 16021]
error: cannot open Name index using db3 - No such file or directory (2)
error: package doesnotexist is not installed
[New Thread 46912527210608 (LWP 16021)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912527210608 (LWP 16021)]
0x00002aaaaacef913 in psmStage (psm=0x7fff746c7980, stage=PSM_CHROOT_IN) at psm.c:1418
1418        HGE_t hge = fi-&gt;hge;
(gdb) p fi
$2 = (TFI_t) 0x0
(gdb) bt
#0  0x00002aaaaacef913 in psmStage (psm=0x7fff746c7980, stage=PSM_CHROOT_IN) at psm.c:1418
#1  0x00002aaaaacf26a8 in psmTriggerPosttrans (psm=0x7fff746c7980) at psm.c:2202
#2  0x00002aaaaad0a5f1 in rpmRunTransactions (ts=0x62a1a0, notify=0, notifyData=0x0, okProbs=0x0, 
    newProbs=0x7fff746c7cd0, transFlags=RPMTRANS_FLAG_REVERSE, ignoreSet=RPMPROB_FILTER_NONE)
    at transaction.c:2110
#3  0x00002aaaaacfa2a3 in rpmErase (rootdir=0x402c78 &quot;/&quot;, argv=0x605380, transFlags=RPMTRANS_FLAG_REVERSE, 
    interfaceFlags=UNINSTALL_NONE) at rpminstall.c:759
#4  0x0000000000402816 in main (argc=5, argv=0x7fff746c7ec8) at rpmqv.c:1060
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82122</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-12-03 01:11:14 +0300</bug_when>
    <thetext>Это побочный эффект 4.0.4-alt77.M40.5-1-g4ada155</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82123</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-12-03 01:39:49 +0300</bug_when>
    <thetext>4.0.4-alt77.M40.7-1-g62d33b6

2at: OK?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82195</commentid>
    <comment_count>4</comment_count>
    <who name="at@altlinux.org">at</who>
    <bug_when>2008-12-04 02:05:18 +0300</bug_when>
    <thetext>OK</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82516</commentid>
    <comment_count>5</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-12-10 01:15:25 +0300</bug_when>
    <thetext>Fixed:
4.0: 4.0.4-alt77.M40.8
4.1: 4.0.4-alt95.M41.11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82550</commentid>
    <comment_count>6</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-12-10 16:23:30 +0300</bug_when>
    <thetext>*** Bug 18173 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82674</commentid>
    <comment_count>7</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-12-13 02:56:33 +0300</bug_when>
    <thetext>4.0.4-alt96.14</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>