Bug 24089 - The rpm python dumps core
Summary: The rpm python dumps core
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 7.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-01-16 03:43 UTC by Red Hat Bugzilla
Modified: 2008-03-13 19:18 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-01-16 14:53:04 UTC
Embargoed:


Attachments (Terms of Use)

Description Red Hat Bugzilla 2001-01-16 03:43:53 UTC
The following script works under RedHat 7.0.

---foo-
#! /usr/bin/python

import sys
import os
import rpm

fd = os.open(sys.argv [1], 0)
try:
  (h, isSource) = rpm.headerFromPackage(fd)
  print isSource
  print h
except:
  pass
os.close(fd)
---

# ./foo ./foo
zsh: 1801 segmentation fault  ./foo ./foo

Comment 1 Red Hat Bugzilla 2001-01-16 14:51:32 UTC
Here's what I see (hjl is script above):
	bash$ ./hjl /D/7.0/i386/time-1.7-12.i386.rpm 
	0
	<header object at 80d9bf8>
Please reopen with more info.

Comment 2 Red Hat Bugzilla 2001-01-16 14:53:00 UTC
Ooops, got it now.

Comment 3 Red Hat Bugzilla 2001-01-16 14:58:50 UTC
This looks better:

Starting program: /usr/bin/python ./hjl ./hjl
[New Thread 1024 (LWP 18326)]
0
None

Fixed in CVS.


Note You need to log in before you can comment on or make changes to this bug.