V4 crash if executing a Qt Quick test without /proc mounted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtdeclarative-opensource-src (Ubuntu) |
Fix Released
|
Critical
|
Unassigned |
Bug Description
The ubuntu-ui-toolkit test segfaults (bug #1266707 etc) may be because V4 engine seems to crash if /proc is not mounted. I noticed this when building in a chroot environment with and without /proc mounted.
Just executing './tst_components -platform minimal' in ubuntu-
#0 __GI___libc_free (mem=0x18) at malloc.c:2888
#1 0x00007ffff4ed3cfd in __pthread_
#2 0x00007ffff579ed86 in QV4::MemoryMana
#3 0x00007ffff57843bc in QV4::ExecutionE
from /usr/lib/
#4 0x00007ffff59021f2 in QV8Engine:
#5 0x00007ffff577f294 in QJSEngine:
#6 0x00007ffff5834170 in QQmlEngine:
#7 0x00007ffff5e95298 in ?? () from /usr/lib/
#8 0x00007ffff7bc7689 in quick_test_
from /usr/lib/
#9 0x00007ffff7816ed5 in __libc_start_main (main=0x4005d0 <main(int, char**)>, argc=3, argv=0x7fffffff
fini=<optimized out>, rtld_fini=
#10 0x000000000040060c in _start ()
And it does not crash if /proc is mounted.
This is when using Qt 5.2 from ppa:canonical-
See https:/ /codereview. qt-project. org/#change, 75282