Bug 1255144
| Summary: | qemu-kvm Segmentation fault in ahci_write_fis_d2h ahci.c | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Dick Marinus <dick> | ||||
| Component: | qemu | Assignee: | Fedora Virtualization Maintainers <virt-maint> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 22 | CC: | amit.shah, berrange, cfergeau, crobinso, dwmw2, itamar, jsnow, pbonzini, rjones, virt-maint | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2015-09-05 18:48:06 UTC | Type: | Bug | ||||
| 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
Dick Marinus
2015-08-19 18:21:34 UTC
jsnow, this look familiar at all? It looks like ad->cur_cmd is possibly invalid, which was a case that occurred during migration, and should be disabled for 2.3.x. This is a variable that I suspect is prone to races and I tried to reduce its usage for 2.4.0, so newer versions might actually alleviate this crash. It looks like the stack trace here has some optimizations compiled in, so it's strange to read. If it's at all possible, I recommend building QEMU from upstream source ( https://github.com/qemu/qemu/archive/v2.3.1.tar.gz ) and compiling with something like # ./configure --target-list=x86_64-softmmu --enable-debug Then you can use the qemu-system-x86_64 binary and attempt to reproduce the crash. Try "bt full" and "print ad->cur_cmd" in the frame where it faults. You can also try upgrading to the 2.4 version, but I'm curious about the nature of the crash in the 2.3.1 version in case it is exposing a problem elsewhere in the code. I'm pretty interested to see your results either way, since I don't have an OSX image to test with. Created attachment 1069114 [details] BZ1255144-gdb-bt-full.txt The backtrace completely changed but it is reproducable using qemu-2.3.1 compiled with: './configure' '--target-list=x86_64-softmmu' '--enable-debug' '--enable-kvm' '--enable-spice' '--prefix=/home/meeuw/git/qemu/' print ad->cur_cmd obviously doesn't work for this backtrace. I've tried qemu (git) master a few weeks ago and it didn't segfault but OS X crashed (freezed) anyway. This bug seems to be related to e1000-82545em and slirp. Sorry for the fuzz (In reply to Dick Marinus from comment #4) > This bug seems to be related to e1000-82545em and slirp. Sorry for the fuzz I tried asking upstream, but the stacktrace didn't make a lot of sense to the SLIRP maintainers either. If you run into it again, try "thread apply all bt full" to see if one of the other threads is the one actually segfaulting, so we can see what's really going on. No worries on the noise. --js |