Bug 565671

Summary: [abrt] crash in ketchup-0.9.8-4.fc12
Product: [Fedora] Fedora Reporter: Kaloyan Petrov <kaloyan_petrov>
Component: ketchupAssignee: Benjamin Krill <ben>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: ben
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: abrt_hash:437585c1
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-16 09:44:28 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:
Attachments:
Description Flags
File: backtrace none

Description Kaloyan Petrov 2010-02-15 21:40:18 UTC
abrt 1.0.6 detected a crash.

architecture: x86_64
cmdline: /usr/bin/python /usr/bin/ketchup -k http://kernel.igor.onlinedirect.bg/pub/linux/kernel/ -d /home/Kaloyan/rpmbuild/SOURCES/kernel/linux-latest -r 2.6.33-rc8
component: ketchup
executable: /usr/bin/ketchup
kernel: 2.6.32.8-1
package: ketchup-0.9.8-4.fc12
release: Fedora release 12 (Constantine)

backtrace
-----
Summary: TB437585c1 ketchup:412:cmd:IOError: [Errno 32] Broken pipe

Traceback (most recent call last):
  File "/usr/bin/ketchup", line 737, in <module>
    transform(a, b)
  File "/usr/bin/ketchup", line 526, in transform
    apply_patch(prebase(b))
  File "/usr/bin/ketchup", line 421, in apply_patch
    err = cmd(p, r, 0)
  File "/usr/bin/ketchup", line 412, in cmd
    sys.stderr.write(open(".patchdiag").read())
IOError: [Errno 32] Broken pipe

Local variables in innermost frame:
dry: 0
reverse: ''
err: 33280
patch: '/home/Kaloyan/.ketchup/patch-2.6.33-rc8.bz2'
pipe: 'bzcat /home/Kaloyan/.ketchup/patch-2.6.33-rc8.bz2 | patch -l -p1'
p: '/home/Kaloyan/.ketchup/patch-2.6.33-rc8.bz2'
base: 'patch -l -p1'

comment
-----
I was updating kernel-2.6.32.8 to kernel-2.6.33-rc8 with a script, then pressed Ctrl-C to cancel.
This is my ketchup command
$ ketchup -k http://kernel.igor.onlinedirect.bg/pub/linux/kernel/ -d $KRN_SRC -r $KRN_VER

Comment 1 Kaloyan Petrov 2010-02-15 21:40:20 UTC
Created attachment 394410 [details]
File: backtrace

Comment 2 Benjamin Krill 2010-02-16 08:00:19 UTC
Is this behavior always reproducible and is it also reproducible without a script around (directly called from the console)?

Comment 3 Kaloyan Petrov 2010-02-16 09:28:52 UTC
(In reply to comment #2)
I wasn't able to reproduce it with or without the script.
Now it says:
^Cketchup: patch /home/Kaloyan/.ketchup/patch-2.6.33-rc8.bz2 failed: 2

Comment 4 Benjamin Krill 2010-02-16 09:44:28 UTC
So my assumption is, that in the first case the backtrace occurs because the stderr pipe was already closed. So it isn't really a bug, of course a try/except block would hit such errors, but I don't thing it is needed.