Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 682368 Details for
Bug 877110
segmentation fault in qemuDomainObjEndJob
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Crash reproducer
demo.c (text/plain), 2.25 KB, created by
Daniel Berrangé
on 2013-01-18 11:54:27 UTC
(
hide
)
Description:
Crash reproducer
Filename:
MIME Type:
Creator:
Daniel Berrangé
Created:
2013-01-18 11:54:27 UTC
Size:
2.25 KB
patch
obsolete
>#include <libvirt/libvirt.h> >#include <libvirt/virterror.h> >#include <stdio.h> >#include <pthread.h> >#include <string.h> >#include <unistd.h> >#include <stdlib.h> >#include <sys/syscall.h> > >#define NUM_THREADS 8 > >const char *XML = "<domain type='kvm'>" >" <name>XXXXXXXX</name>" >" <memory unit='KiB'>220160</memory>" >" <currentMemory unit='KiB'>60000</currentMemory>" >" <vcpu placement='static'>1</vcpu>" >" <os>" >" <type arch='x86_64'>hvm</type>" >" <boot dev='hd'/>" >" </os>" >" <features>" >" <acpi/>" >" </features>" >" <devices>" >" <emulator>/bin/qemu-kvm</emulator>" >" <disk type='file' device='disk'>" >" <driver name='qemu' type='qcow2'/>" >" <source file='/home/berrange/VirtualMachines/plain.qcow'/>" >" <target dev='vda' bus='virtio'/>" >" <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>" >" <shareable/>" >" </disk>" >" <console type='pty'>" >" <target type='serial' port='0'/>" >" </console>" >" <input type='mouse' bus='ps2'/>" >" <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0'/>" >" </devices>" >"</domain>"; > > >static pid_t gettid(void) >{ > return syscall(SYS_gettid); >} > >static void *one_thread(void *arg) >{ > int i; > virConnectPtr conn = arg; > virConnectRef(conn); > > for (i = 0 ; i < 10 ; i++) { > char *xml = strdup(XML); > > if (!xml) > goto cleanup; > > char *tmp = strstr(xml, "XXXX"); > snprintf(tmp, 9, "vm%06d", gettid()); > tmp[8] = '<'; > fprintf(stderr, "%d: %d\n", gettid(), i); > virDomainPtr dom = virDomainCreateXML(conn, xml, 0); > > virDomainDestroy(dom); > > free(xml); > } > > cleanup: > virConnectClose(conn); > return NULL; >} > >int main(int argc, char **argv) { > virConnectPtr conn; > int ret = -1; > pthread_t threads[NUM_THREADS]; > int i; > > if (!(conn = virConnectOpen("qemu:///session"))) > goto error; > > for (i = 0 ; i < NUM_THREADS ; i++) { > if (pthread_create(&threads[i], NULL, > one_thread, conn) < 0) > goto error; > } > > for (i = 0 ; i < NUM_THREADS ; i++) { > if (pthread_join(threads[i], NULL) < 0) > goto error; > } > > ret = 0; > error: > if (ret != 0) { > virErrorPtr err = virGetLastError(); > fprintf(stderr, "error: %s\n", err ? err->message : "<unknown>"); > } > if (conn) > virConnectClose(conn); > exit(ret); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 877110
: 682368