Bugzilla – Attachment 633370 Details for
Bug 929826
zypper hangs on double Ctrl-C
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
reproducer script
zyppersegfault.pl (text/plain), 668 bytes, created by
Bernhard Wiedemann
on 2015-05-06 08:01:22 UTC
(
hide
)
Description:
reproducer script
Filename:
MIME Type:
Creator:
Bernhard Wiedemann
Created:
2015-05-06 08:01:22 UTC
Size:
668 bytes
patch
obsolete
>#!/usr/bin/perl -w >#(set -x ; while sleep 5 ; do timeout 2m ./zyppersegfault.pl ; mv core core.`date +%s` ; done) >use strict; >use Time::HiRes "sleep"; > >sub randsleep($) >{ my $max = shift; > my $t = rand()*$max; > print "sleeping for $t seconds\n"; > sleep($t); >} > >while(1) { > my $pid = fork(); > if ($pid) { # parent > randsleep(4); > kill("INT", $pid); > for(1..2) { > randsleep(1); > kill("INT", $pid); > } > print "gdb -p $pid /usr/bin/zypper\n"; > waitpid(-1, 0); > print "zypper ret code:".($?>>8).":".($?&255)."\n"; > die "segfaulted" if $? == 139; > system(qw"killall -9 zypper gpg-agent"); > sleep 1; > } else { > exec(qw(zypper -n in -f mcelog)) or die $!; > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 929826
:
633369
| 633370 |
634719