Bug 1187226 - rhsrvany crashes when run as a service
Summary: rhsrvany crashes when run as a service
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mingw-srvany
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1187231 1198608
TreeView+ depends on / blocked
 
Reported: 2015-01-29 15:15 UTC by Roman Kagan
Modified: 2015-08-01 02:26 UTC (History)
3 users (show)

Fixed In Version: mingw-srvany-1.0-15.20150115gitfd659e77.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1198608 (view as bug list)
Environment:
Last Closed: 2015-03-13 17:06:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Roman Kagan 2015-01-29 15:15:23 UTC
Description of problem:

If rhsrvany is called without non-option arguments, as is the case when
it's run as a service, compat_tmain(argc, argv) accesses argv[argc]
which is invalid.  For me it crashes reliably in 64bit Windows.


Version-Release number of selected component (if applicable):

mingw32-srvany-1.0-14.20131118git5774c46c.fc21.noarch


How reproducible:

sporadically


Additional info:

The fix to this problem is committed upstream:
https://github.com/rwmjones/rhsrvany/commit/fd659e77cdd9da484fdc9dcbe0605c62ec26fa30

The Fedora package needs to be updated to include it.

Note also that RHEL7.1beta libguestfs includes the binary of rhsrvany.exe from this Fedora package, and is thus affected, too.

Comment 1 Richard W.M. Jones 2015-03-04 14:03:16 UTC
Fixed in F21/F22/Rawhide package >=
mingw-srvany-1.0-15.20150115gitfd659e77

Comment 2 Fedora Update System 2015-03-04 14:16:27 UTC
mingw-srvany-1.0-15.20150115gitfd659e77.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/mingw-srvany-1.0-15.20150115gitfd659e77.fc21

Comment 3 Fedora Update System 2015-03-04 14:16:50 UTC
mingw-srvany-1.0-15.20150115gitfd659e77.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/mingw-srvany-1.0-15.20150115gitfd659e77.fc22

Comment 4 Fedora Update System 2015-03-04 21:08:48 UTC
Package mingw-srvany-1.0-15.20150115gitfd659e77.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mingw-srvany-1.0-15.20150115gitfd659e77.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-3124/mingw-srvany-1.0-15.20150115gitfd659e77.fc22
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-03-13 17:06:40 UTC
mingw-srvany-1.0-15.20150115gitfd659e77.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2015-08-01 02:26:23 UTC
mingw-srvany-1.0-15.20150115gitfd659e77.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.


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