Opened 7 years ago
Closed 5 years ago
#17896 closed defect (wontfix)
Attempting to run cmake in vboxvfs shared folder cause cmake core dump and vboxvfs filesystem hang forever
Reported by: | ae_der | Owned by: | |
---|---|---|---|
Component: | shared folders | Version: | VirtualBox 5.2.16 |
Keywords: | Cc: | ||
Guest type: | BSD | Host type: | Windows |
Description
Attempting to run cmake in vboxvfs shared folder cause cmake core dump and vboxvfs filesystem hang forever.
Configuration: Windows host machine, freebsd 11.1-release 64_x86 guest machine: FreeBSD freebsd64 11.1-RELEASE-p10 FreeBSD 11.1-RELEASE-p10 #0: Tue May 8 05:21:56 UTC 2018 root@…:/usr/obj/usr/src/sys/GENERIC amd64
Windows folder d:/home mounted as /home/der under guest mackine:
#################################################
[der@freebsd64 ~]$ cat /etc/fstab # Device Mountpoint FStype Options Dump Pass# /dev/ada0s1a / ufs rw 1 1 /dev/ada0s1b none swap sw 0 0
linproc /usr/compat/linux/proc linprocfs rw 0 0
home /home/der vboxvfs rw,uid=1001,gid=1001 0 0
############################################################
[der@freebsd64 ~]$ mount -v /dev/ada0s1a on / (ufs, local, journaled soft-updates, writes: sync 9 async 379, reads: sync 1518 async 355) devfs on /dev (devfs, local, multilabel) linprocfs on /usr/compat/linux/proc (linprocfs, local) home on /usr/home/der (vboxvfs, local)
##############################################################
Everything works fine, until I attempted to run cmake over some sources in /home/der/... tree:
[der@freebsd64 ~]$ [der@freebsd64 ~]$ cd cts/gen/utils/konfig/konfig-1.0cur/impl/ [der@freebsd64 ~/cts/gen/utils/konfig/konfig-1.0cur/impl]$ [der@freebsd64 ~/cts/gen/utils/konfig/konfig-1.0cur/impl]$ mkdir build mkdir: build: File exists [der@freebsd64 ~/cts/gen/utils/konfig/konfig-1.0cur/impl]$ cd build [der@freebsd64 ~/cts/gen/utils/konfig/konfig-1.0cur/impl/build]$ ls cmake.core [der@freebsd64 ~/cts/gen/utils/konfig/konfig-1.0cur/impl/build]$ rm cmake.core [der@freebsd64 ~/cts/gen/utils/konfig/konfig-1.0cur/impl/build]$ [der@freebsd64 ~/cts/gen/utils/konfig/konfig-1.0cur/impl/build]$ [der@freebsd64 ~/cts/gen/utils/konfig/konfig-1.0cur/impl/build]$ cmake ../src/ Assertion failed: (cmSystemTools::FileExists(currentStart, true)), function Configure, file /wrkdirs/usr/ports/devel/cmake/work/cmake-3.11.4/Source/cmMakefile.cxx, line 1414. Abort trap (core dumped) [der@freebsd64 ~/cts/gen/utils/konfig/konfig-1.0cur/impl/build]$
#######################################################
core dump was created,
[der@freebsd64 ~/cts/gen/utils/konfig/konfig-1.0cur/impl/build]$ ls -la total 10 drwxrwxrwx 1 der der 0 Jul 27 14:27 . drwxrwxrwx 1 der der 0 Jul 27 13:56 .. -rwxrwxrwx 1 der der 5402624 Jul 27 14:27 cmake.core
but attempts to change to parent directory failed:
[der@freebsd64 ~/cts/gen/utils/konfig/konfig-1.0cur/impl/build]$ cd .. cd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
After that, filesystem become unstable:
[der@freebsd64 ~]$ [der@freebsd64 ~]$ [der@freebsd64 ~]$ pwd /home/der [der@freebsd64 ~]$ ls cts proba test [der@freebsd64 ~]$ cd cts/ [der@freebsd64 ~/cts]$ ls gen libs mpcgs utils internal MPC_EL_Ru uso [der@freebsd64 ~/cts]$ [der@freebsd64 ~/cts]$ ls gen ls: gen: No such file or directory [der@freebsd64 ~/cts]$ ls gen libs mpcgs utils internal MPC_EL_Ru uso [der@freebsd64 ~/cts]$ cd gen -bash: cd: gen: No such file or directory [der@freebsd64 ~/cts]$ [der@freebsd64 ~/cts]$ ls gen libs mpcgs utils internal MPC_EL_Ru uso [der@freebsd64 ~/cts]$ ls -l ls: gen: No such file or directory total 0 drwxrwxrwx 1 der der 0 Jul 27 13:53 internal drwxrwxrwx 1 der der 0 Jul 27 13:54 libs drwxrwxrwx 1 der der 0 Jul 27 13:54 MPC_EL_Ru drwxrwxrwx 1 der der 0 Jul 27 13:53 mpcgs drwxrwxrwx 1 der der 0 Jul 27 13:54 uso drwxrwxrwx 1 der der 0 Jul 27 13:53 utils [der@freebsd64 ~/cts]$
As you can see, ls can see gen folder, and ls -l can't.
If I try to reboot host machine, it hangs forever.
Of course, attempt to run cmake in non-shared folder succeed.
################################################################
[der@freebsd64 ~/cts/gen/utils/konfig/konfig-1.0cur/impl/build]$ gdb /usr/local/bin/cmake cmake.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)... Core was generated by `cmake ../src/'. Program terminated with signal 6, Aborted. Reading symbols from /usr/lib/libexecinfo.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libexecinfo.so.1 Reading symbols from /usr/local/lib/libexpat.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libexpat.so.1 Reading symbols from /lib/libz.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/libz.so.6 Reading symbols from /usr/local/lib/libarchive.so.13...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libarchive.so.13 Reading symbols from /usr/local/lib/libcurl.so.4...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libcurl.so.4 Reading symbols from /usr/local/lib/libjsoncpp.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libjsoncpp.so.1 Reading symbols from /usr/local/lib/libuv.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libuv.so.1 Reading symbols from /usr/local/lib/librhash.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/librhash.so.0 Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done. Loaded symbols for /lib/libthr.so.3 Reading symbols from /usr/lib/libc++.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libc++.so.1 Reading symbols from /lib/libcxxrt.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libcxxrt.so.1 Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done. Loaded symbols for /lib/libm.so.5 Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libgcc_s.so.1 Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.7 Reading symbols from /lib/libelf.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libelf.so.2 Reading symbols from /lib/libcrypto.so.8...(no debugging symbols found)...done. Loaded symbols for /lib/libcrypto.so.8 Reading symbols from /usr/local/lib/liblzo2.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/liblzo2.so.2 Reading symbols from /usr/lib/liblzma.so.5...(no debugging symbols found)...done. Loaded symbols for /usr/lib/liblzma.so.5 Reading symbols from /usr/local/lib/liblz4.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/liblz4.so.1 Reading symbols from /usr/lib/libbz2.so.4...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libbz2.so.4 Reading symbols from /usr/local/lib/libnghttp2.so.14...(no debugging symbols found)...done. Loaded symbols for /usr/local/lib/libnghttp2.so.14 Reading symbols from /usr/lib/libssl.so.8...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libssl.so.8 Reading symbols from /usr/lib/libheimntlm.so.11...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libheimntlm.so.11 Reading symbols from /usr/lib/libhx509.so.11...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libhx509.so.11 Reading symbols from /usr/lib/libcom_err.so.5...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libcom_err.so.5 Reading symbols from /usr/lib/libasn1.so.11...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libasn1.so.11 Reading symbols from /usr/lib/libwind.so.11...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libwind.so.11 Reading symbols from /usr/lib/libheimbase.so.11...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libheimbase.so.11 Reading symbols from /usr/lib/libroken.so.11...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libroken.so.11 Reading symbols from /lib/libcrypt.so.5...(no debugging symbols found)...done. Loaded symbols for /lib/libcrypt.so.5 Reading symbols from /usr/lib/libkrb5.so.11...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libkrb5.so.11 Reading symbols from /usr/lib/libgssapi.so.10...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libgssapi.so.10 Reading symbols from /usr/lib/libgssapi_krb5.so.10...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libgssapi_krb5.so.10 Reading symbols from /usr/lib/librt.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/librt.so.1 Reading symbols from /usr/lib/libprivateheimipcc.so.11...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libprivateheimipcc.so.11 Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x0000000802a9b84a in thr_kill () from /lib/libc.so.7 (gdb) bt #0 0x0000000802a9b84a in thr_kill () from /lib/libc.so.7 #1 0x0000000802a9b814 in raise () from /lib/libc.so.7 #2 0x0000000802a9b789 in abort () from /lib/libc.so.7 #3 0x0000000802b16e61 in assert () from /lib/libc.so.7 #4 0x000000000045bf0b in std::1::tree<std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char> >, std::1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char> > >, std::1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char> > > >::find<std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char> > > () #5 0x000000000067d88b in std::1::deque_base<Json::Reader::ErrorInfo, std::__1::allocator<Json::Reader::ErrorInfo> >::clear () #6 0x000000000068f7e3 in std::1::deque_base<Json::Reader::ErrorInfo, std::__1::allocator<Json::Reader::ErrorInfo> >::clear () #7 0x00000000004e36d2 in std::1::tree<std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char> >, std::1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char> > >, std::1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char> > > >::find<std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char> > > () #8 0x00000000004e243d in std::1::tree<std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char> >, std::1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char> > >, std::_---Type <return> to continue, or q <return> to quit--- _1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char> > > >::find<std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char> > > () #9 0x00000000004e47fa in std::1::tree<std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char> >, std::1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char> > >, std::1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char> > > >::find<std::__1::basic_string<char, std::__1::char_traits<char>, std::1::allocator<char> > > () #10 0x000000000040f8c9 in ?? () #11 0x000000000040e083 in ?? () #12 0x000000000040decf in ?? () #13 0x0000000800a88000 in ?? () #14 0x0000000000000000 in ?? () (gdb)
Attachments (1)
Change History (2)
by , 7 years ago
Attachment: | freebsd64-2018-07-27-17-12-42.log added |
---|
comment:1 by , 5 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
The FreeBSD VBox shared folder driver is not officially supported by VirtualBox but a FreeBSD community effort, so we can't investigate any reports unfortunately.