kern/122318 (CMake core dumping, chroot exiting)
Chagin Dmitry
chagin.dmitry at gmail.com
Sat Jul 26 10:17:35 UTC 2008
On Fri, 25 Jul 2008, Sean C. Farley wrote:
>>>>>
>>>>
>>>> uname must work on all supported linuxulators
>>>
>>> I agree, and it does work until I start playing with the Linux
>>> version. This problem may or may not be related to the cmake issue.
>>>
>>>> I can't reproduce problem, my output on linuxulator64:
>>>
>>> 8-CURRENT vs 7-STABLE issue maybe?
>>>
>>
>> don't think so
>>
>>>> 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!
>>>
>>> OK. I obtained a trace file[1]. Amusingly, bash also died in this
>>> scenario.
>>>
>>> Sean
>>> 1. http://www.farley.org/freebsd/tmp/ktrace.out.bz2
>>
>> I can't use it on -current, ktrace abi was changed. please, make
>> itself linux_kdump :)
>
> Picky, picky! :) Here[2] you go.
>
> Sean
> 2. http://www.farley.org/freebsd/tmp/ktrace.txt
>
With COMPAT_LINUX32 the mistake really exists...
ora# chroot /compat/linux /bin/bash
bash-3.2#
bash-3.2# uname -a
Linux ora.chd.net 2.6.16 FreeBSD 8.0-CURRENT #4: Sat Jul 26 01:35:52 MSD
2008 i686 i686 i386 GNU/Linux
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# whereis cmake
cmake: /usr/bin/cmake /usr/share/cmake /usr/share/man/man1/cmake.1.gz
bash-3.2# /usr/bin/cmake .
-- Check for working C compiler: /usr/bin/gcc
Segmentation fault (core dumped)
bash-3.2#
let's look :)
--
Have fun!
chd
More information about the freebsd-emulation
mailing list