[PATCH]Re: kern/122318 (CMake core dumping, chroot exiting)

Sean C. Farley scf at FreeBSD.org
Mon Aug 11 20:14:53 UTC 2008


On Sun, 3 Aug 2008, Chagin Dmitry wrote:

> On Wed, 23 Jul 2008, Sean C. Farley wrote:
>
>> I am seeing if anyone has any insight on this PR (kern/122318[1]).
>> It would be nice to once again build using cmake within a Linux
>> chroot.  :)
>> 
>> Basically, the bug is that not only that cmake is dumping core; it is
>> also forcing the user out of the chroot environment.  Here is the
>> command used to start the chroot:
>> /compat/linux/usr/sbin/chroot <chroot path> su - <build user>
>> 
>> Thank you.
>> 
>> Sean
>>  1. http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/122318
>
> here patches for -current and releng_7:
> http://78.107.232.239/rt_signals-current.patch
> http://78.107.232.239/rt_signals-releng_7.patch
>
> what patch do:
> - rt sigtramp code works (this solves PR)
> - align stack pointers
> - remove kern_sigaltstack() at the end of rt_sigreturn(), it's a
>   bogus.
> Here there is some information on it:
> http://www.ussg.iu.edu/hypermail/linux/kernel/0405.2/1283.html

I just tried this patch.  It helps somewhat in that cmake does not die
immediately when running gcc, which may be dieing itself, but other
applications such as zsh and acroread start coring.  With acroread, it
is actually bash, but bash does not core when run directly.

This is on an amd64 system.

Sean
-- 
scf at FreeBSD.org


More information about the freebsd-emulation mailing list