Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1088150 - qemu-img coredumpd when try to create a gluster format image
qemu-img coredumpd when try to create a gluster format image
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm (Show other bugs)
7.0
Unspecified Unspecified
low Severity medium
: rc
: ---
Assigned To: Jeff Cody
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-16 03:03 EDT by Qian Guo
Modified: 2015-03-05 03:06 EST (History)
9 users (show)

See Also:
Fixed In Version: qemu-kvm-1.5.3-70.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1088610 (view as bug list)
Environment:
Last Closed: 2015-03-05 03:06:21 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0349 normal SHIPPED_LIVE Important: qemu-kvm security, bug fix, and enhancement update 2015-03-05 07:27:34 EST

  None (edit)
Description Qian Guo 2014-04-16 03:03:34 EDT
Description of problem:
Try to create a gluster format image, qemu-img coredumpd, if do not support, should prompts:

qemu-img: test: Driver 'gluster' does not support image creation

Version-Release number of selected component (if applicable):
qemu-kvm-1.5.3-60.el7.x86_64
qemu-img-1.5.3-60.el7.x86_64
How reproducible:
100%

Steps to Reproduce:
1.Try to create a gluster format image:
# qemu-img create -f gluster test 1G

2.
3.

Actual results:
Formatting 'test', fmt=gluster size=1073741824 
Segmentation fault (core dumped)

Program received signal SIGSEGV, Segmentation fault.
0x000055555557dddf in qemu_gluster_init ()
(gdb) bt
#0  0x000055555557dddf in qemu_gluster_init ()
#1  0x000055555557e096 in qemu_gluster_create ()
#2  0x00005555555734c9 in bdrv_create_co_entry ()
#3  0x00005555555a912a in coroutine_trampoline ()
#4  0x00007ffff608d570 in ?? () from /lib64/libc.so.6
#5  0x00007fffffffda40 in ?? ()
#6  0x0000000000000000 in ?? ()
(gdb) bt ful
#0  0x000055555557dddf in qemu_gluster_init ()
No symbol table info available.
#1  0x000055555557e096 in qemu_gluster_create ()
No symbol table info available.
#2  0x00005555555734c9 in bdrv_create_co_entry ()
No symbol table info available.
#3  0x00005555555a912a in coroutine_trampoline ()
No symbol table info available.
#4  0x00007ffff608d570 in ?? () from /lib64/libc.so.6
No symbol table info available.
#5  0x00007fffffffda40 in ?? ()
No symbol table info available.
#6  0x0000000000000000 in ?? ()
No symbol table info available.
(gdb) 

Expected results:
If support creation, should not coredumpd, if not support, should print proper prompts

Additional info:
Comment 1 Qian Guo 2014-04-16 03:07:05 EDT
Not a regression, test with qemu-kvm-1.5.3-50.el7.x86_64 , won't hit such issue.
Comment 2 Qian Guo 2014-04-16 03:08:02 EDT
(In reply to Qian Guo from comment #1)
> Not a regression, test with qemu-kvm-1.5.3-50.el7.x86_64 , won't hit such
> issue.

sorry, wrong type here
should be
Test with qemu-kvm-1.5.3-50.el7.x86_64, hit same issue.
Comment 4 Jeff Cody 2014-04-16 17:06:06 EDT
This is fixed in upstream commit 24897a767bd778fc6a050537d024565f9272cd06: 'gluster: default scheme to gluster:// and host to localhost.'
Comment 10 Miroslav Rezanina 2014-09-12 08:55:32 EDT
Fix included in qemu-kvm-1.5.3-70.el7
Comment 11 Jun Li 2014-10-13 04:47:38 EDT
Reproduce this bz:

Version of components:
qemu-kvm-1.5.3-68.el7.x86_64

Steps as comment 0,
1.Try to create a gluster format image:
# qemu-img create -f gluster test 1G

2.
3.

Actual results:
Formatting 'test', fmt=gluster size=1073741824 
Segmentation fault (core dumped)

(gdb) bt
#0  0x000055555557e08f in qemu_gluster_init ()
#1  0x000055555557e346 in qemu_gluster_create ()
#2  0x00005555555736b9 in bdrv_create_co_entry ()
#3  0x00005555555a94ba in coroutine_trampoline ()
#4  0x00007ffff60821d0 in ?? () from /lib64/libc.so.6
#5  0x00007fffffffd9c0 in ?? ()
#6  0x0000000000000000 in ?? ()

As above show, this bz has been reproduced.
=============================
Verify:

Version of components:
qemu-kvm-1.5.3-75.el7.x86_64

Steps as comment 0,
1.Try to create a gluster format image:
# qemu-img create -f gluster test 1G

2.
3.

Actual results:
Formatting 'test', fmt=gluster size=1073741824 
qemu-img: Usage: file=gluster[+transport]://[server[:port]]/volname/image[?socket=...]
qemu-img: test: Could not create image: Invalid argument
-----------------
Version of components:
qemu-kvm-rhev-2.1.2-3.el7.x86_64

Steps as comment 0,
1.Try to create a gluster format image:
# qemu-img create -f gluster test 1G

2.
3.

Actual results:
Formatting 'test', fmt=gluster size=1073741824 
qemu-img: test: Usage: file=gluster[+transport]://[server[:port]]/volname/image[?socket=...]

Based on above testing, this bz has been verified.
Comment 15 errata-xmlrpc 2015-03-05 03:06:21 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-0349.html

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