Bug 18079 - psmTriggerPosttrans segfaults on valid NULL file transaction
Summary: psmTriggerPosttrans segfaults on valid NULL file transaction
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: rpm (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
: 18173 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-02 23:03 MSK by Artem Zolochevskiy
Modified: 2008-12-18 12:17 MSK (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artem Zolochevskiy 2008-12-02 23:03:03 MSK
rpm "сегфолтится" при попытке удаления неустановленного пакета

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

# rpm -q rpm
rpm-4.0.4-alt96.13
Comment 1 Dmitry V. Levin 2008-12-03 00:55:16 MSK
(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->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 "/", 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
Comment 2 Dmitry V. Levin 2008-12-03 01:11:14 MSK
Это побочный эффект 4.0.4-alt77.M40.5-1-g4ada155
Comment 3 Dmitry V. Levin 2008-12-03 01:39:49 MSK
4.0.4-alt77.M40.7-1-g62d33b6

2at: OK?
Comment 4 at@altlinux.org 2008-12-04 02:05:18 MSK
OK
Comment 5 Dmitry V. Levin 2008-12-10 01:15:25 MSK
Fixed:
4.0: 4.0.4-alt77.M40.8
4.1: 4.0.4-alt95.M41.11
Comment 6 Dmitry V. Levin 2008-12-10 16:23:30 MSK
*** Bug 18173 has been marked as a duplicate of this bug. ***
Comment 7 Dmitry V. Levin 2008-12-13 02:56:33 MSK
4.0.4-alt96.14