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

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

    <bug>
          <bug_id>225</bug_id>
          
          <creation_ts>2001-12-11 21:11:53 +0300</creation_ts>
          <short_desc>RPM segfaults when --repackage option is given</short_desc>
          <delta_ts>2003-08-25 15:18:25 +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>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>P4</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Bokovoy">ab</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>at</cc>
    
    <cc>glebfm</cc>
    
    <cc>imz</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>214</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Bokovoy">ab</who>
    <bug_when>2001-12-11 21:11:53 +0300</bug_when>
    <thetext>RPM 4.0.3-alt1 does not support --repackage option. It segfaults on start when this option is specified in conjunction with -e.
---
rpm -e --repackage &amp;lt;some-package&amp;gt;
---
strace rpm -e --repackage aptitude
execve(\&amp;quot;/bin/rpm\&amp;quot;, [\&amp;quot;rpm\&amp;quot;, \&amp;quot;-e\&amp;quot;, \&amp;quot;--repackage\&amp;quot;, \&amp;quot;aptitude\&amp;quot;], [/* 32 vars */]) = 0
fcntl64(0, F_GETFD)                     = 0
fcntl64(1, F_GETFD)                     = 0
fcntl64(2, F_GETFD)                     = 0
uname({sys=\&amp;quot;Linux\&amp;quot;, node=\&amp;quot;pc152.belcaf.minsk.by\&amp;quot;, ...}) = 0
geteuid32()                             = 0
getuid32()                              = 0
getegid32()                             = 0
getgid32()                              = 0
brk(0)                                  = 0x81dd988
brk(0x81dd9a8)                          = 0x81dd9a8
brk(0x81de000)                          = 0x81de000
open(\&amp;quot;/usr/lib/rpm/rpmpopt-4.0.3\&amp;quot;, O_RDONLY) = 3
lseek(3, 0, SEEK_END)                   = 16053
lseek(3, 0, SEEK_SET)                   = 0
read(3, \&amp;quot;#/*! \\\\page config_rpmpopt Defaul\&amp;quot;..., 16053) = 16053
close(3)                                = 0
brk(0x81df000)                          = 0x81df000
brk(0x81e0000)                          = 0x81e0000
brk(0x81e1000)                          = 0x81e1000
open(\&amp;quot;/etc/popt\&amp;quot;, O_RDONLY)             = -1 ENOENT (No such file or directory)
getuid32()                              = 0
geteuid32()                             = 0
open(\&amp;quot;/root/.popt\&amp;quot;, O_RDONLY)           = -1 ENOENT (No such file or directory)
time([1008093402])                      = 1008093402
open(\&amp;quot;/etc/localtime\&amp;quot;, O_RDONLY)        = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=767, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40000000
read(3, \&amp;quot;TZif\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\v\\0\\0\\0\\v\\0\&amp;quot;..., 4096) = 767
close(3)                                = 0
munmap(0x40000000, 4096)                = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2847</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2002-04-03 20:05:39 +0400</bug_when>
    <thetext>Still segfaults with
rpm-4.0.4-alt0.3?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6212</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2002-04-03 20:05:39 +0400</bug_when>
    <thetext>Still segfaults with
rpm-4.0.4-alt0.3?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2848</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2002-05-30 17:35:53 +0400</bug_when>
    <thetext>Fixed in
rpm-4.0.4-alt0.6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6213</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2002-05-30 17:35:53 +0400</bug_when>
    <thetext>Fixed in
rpm-4.0.4-alt0.6</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>