Bug 9089

Summary: segfault when importing rpmmodule.so into python
Product: [Retired] Red Hat Raw Hide Reporter: jdalbec
Component: glintAssignee: Erik Troan <ewt>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-02-03 15:35:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jdalbec 2000-02-03 04:44:08 UTC
$ python
>>> import rpm
segfaults.  I have reproduced this with the latest
python...rpm and rpm-python...rpm from rawhide.
There does not appear to be a more recent version of glint.
This makes the update agent unusable.
I'm filing this against glint b/c
$ rpm -q --file /usr/lib/python1.5/lib-dynload/rpm.so
glint-2.6.2-1

strace indicates the most recent system call reads
/usr/lib/rpm/rpmrc in one gulp.

gdb backtrace:
#0  0x4013b6d8 in main_arena () from /lib/libc.so.6
#1  0x4009fab7 in fputs () at iofputs.c:46
#2  0x401c127f in rpmError () from /usr/lib/python1.5/lib-dynload/rpm.so
#3  0x401bafe1 in doReadRC () from /usr/lib/python1.5/lib-dynload/rpm.so
#4  0x401ba7e4 in rpmReadRC () from /usr/lib/python1.5/lib-dynload/rpm.so
#5  0x401ba644 in rpmReadConfigFiles ()
   from /usr/lib/python1.5/lib-dynload/rpm.so
#6  0x401b5242 in initrpm () from /usr/lib/python1.5/lib-dynload/rpm.so
#7  0x805c414 in _PyImport_LoadDynamicModule ()
#8  0x805abb8 in PyImport_ExecCodeModuleEx ()
#9  0x805b655 in PyImport_ImportModuleEx ()
#10 0x805b2a7 in PyImport_ImportModuleEx ()
#11 0x805af98 in PyImport_ImportModule ()
#12 0x805b0b0 in PyImport_ImportModuleEx ()
#13 0x80740f0 in PyTuple_Fini ()
#14 0x8053ec0 in PyEval_CallObjectWithKeywords ()
#15 0x8053dd8 in PyEval_CallObjectWithKeywords ()
#16 0x8052aea in PyEval_EvalCode ()
#17 0x80512db in PyEval_EvalCode ()
etc.

Comment 1 Bill Nottingham 2000-02-03 15:35:59 UTC
glint will not work with rpm-3.0, period. Your best bet
is to remove that shared object; if you want to use
python RPM bindings, use the rpm-python module.