| Summary: | qemu-mips segfault on mips x86_64 gmae-toolchain | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | liang li <liang.li2> |
| Component: | devtools / tool chain | Assignee: | Laurentiu Palcu <laurentiu.palcu> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | jessica.zhang, laurentiu.serban, meta.mr.watcher, meta.watcher, poky.adt.watcher, poky.watcher, yi.zhao |
| Version: | unspecified | ||
| Target Milestone: | 1.3 M5 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | (merged) | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
liang li
2012-09-20 10:24:09 UTC
Do you happen to know if this is a regression? Did it work previously? It looks like it's enough for the test.c file to contain an empty main() function and it still segfaults... (In reply to comment #1) > Do you happen to know if this is a regression? Did it work previously? not regression,such error not met before. error still exists in 1.3 M5 RC2 from: http://autobuilder.pokylinux.org/nightly/20120926-1/toolchain/x86_64/poky-eglibc-x86_64-mips-toolchain-gmae-1.2+snapshot-20120926.sh git info: 718eb85806e080d0b165344b272e531ef19421eb git branch: poky/1.3_M5 I isolated the issue doing a bisect on qemu repository and found that this issue was introduced by this commit: "linux-user: reserve 4GB of vmem for 32-on-64". Reverting it will make qemu-mips work again. After some investigations, it looks like the problem is in the translated code and a MMU fault is generated in the virtual CPU. Somehow, a kernel address is accessed from user/supervisor mode or supervisor address from user mode and a MMU fault is triggered. Everything works fine however if the guest virtual address space is limited to 2GB... Patch on the mailing list. Patch merged: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=0d43dc75e4ddf9b8966429f41355cb2e8895d0e2 no such error to nightly build 20121003-4: http://autobuilder.yoctoproject.org/pub/nightly/20121003-4/toolchain/x86_64/poky-eglibc-x86_64-mips-toolchain-gmae-1.3.sh git info:86c9aa8081f107420cd3763d0566d779daddc2b1 git branch:poky/danny |