Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jul 2008 23:31:39 +0400 (MSD)
From:      Chagin Dmitry <chagin.dmitry@gmail.com>
To:        "Sean C. Farley" <scf@freebsd.org>
Cc:        freebsd-emulation@freebsd.org, Chagin Dmitry <chagin.dmitry@gmail.com>
Subject:   Re: kern/122318 (CMake core dumping, chroot exiting)
Message-ID:  <alpine.BSF.1.10.0807252318130.1162@ora.chd.net>
In-Reply-To: <alpine.BSF.1.10.0807251231050.30805@thor.farley.org>
References:  <alpine.BSF.1.10.0807231236140.12600@thor.farley.org> <20080723184450.GA25356@freebsd.org> <alpine.BSF.1.10.0807231459030.12600@thor.farley.org> <alpine.BSF.1.10.0807240016340.28898@ora.chd.net> <alpine.BSF.1.10.0807231616570.12600@thor.farley.org> <20080725082156.GA41887@freebsd.org> <20080725083122.GA42835@freebsd.org> <alpine.BSF.1.10.0807251233470.1710@ora.chd.net> <alpine.BSF.1.10.0807251231050.30805@thor.farley.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 25 Jul 2008, Sean C. Farley wrote:

> On Fri, 25 Jul 2008, Chagin Dmitry wrote:
>
>> 
>> yes, but I remember it was a question about chroot...
>
> I have the trouble in and out of the chroot (FC2-based) but also with
> linux_base-f{c4,c6,8}.  I just ran it outside of the chroot to get the
> ktrace much more easily.  This is on a FreeBSD 7 amd64 system running a
> 32-bit chroot.
>

ugh... my head, sorry (((

>> Sean, can you provide full command which you run?
>
> Steps to recreate:
> mkdir a
> cd a
> touch CMakeLists.txt
> /home/sfarley/chroot/usr/bin/cmake .
>
> System setup for 7-STABLE as of July 14th:
> compat.ia32.maxvmem: 0
> compat.ia32.maxssiz: 67108864
> compat.ia32.maxdsiz: 536870912
> compat.linux.oss_version: 198144
> compat.linux.osrelease: 2.6.16
> compat.linux.osname: Linux
> compat.linux32.maxvmem: 0
> compat.linux32.maxssiz: 67108864
> compat.linux32.maxdsiz: 536870912
>
> BTW, switching to compat.linux.osrelease=2.4.2, running some Linux
> applications and switching back to 2.6.16 does not leave Linux emulation
> in a happy state.  Simple Linux applications such as uname start core
> dumping.
>

uname must work on all supported linuxulators

I can't reproduce problem, my output on linuxulator64:

ora# chroot /compat/linux /bin/bash
bash-3.2#
bash-3.2# whereis cmake
cmake: /usr/bin/cmake /usr/share/cmake /usr/share/man/man1/cmake.1.gz
bash-3.2#
bash-3.2# cd /opt
bash-3.2# mkdir a
bash-3.2# cd a
bash-3.2# touch CMakeLists.txt
bash-3.2# /usr/bin/cmake .
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/a
bash-3.2#

at me only one idea - create shell script like this:

#!/bin/sh
sleep 30
/usr/bin/cmake .

run it,
ps -ax | grep you_script_name
ktrace -di -p you_script_pid -f /ttt/tracefile.out

and show result. thnx!

-- 
Have fun!
chd



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.1.10.0807252318130.1162>