<div dir="ltr">I can't reproduce the problem either. Running FreeBSD 10.0 in a Parallels VM on OS X 10.8.5, using gcc49 and with the VM configured for 4 cores:<div><br></div><div><div>$ CC=gcc49 CXX=g++49 MAKE=gmake ./configure --with-dynamic-trace=dtrace --enable-dirty-schedulers</div>
<div>$ ./bin/erl</div><div>Erlang/OTP 17 [erts-6.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]</div><div><br></div><div>Eshell V6.0  (abort with ^G)</div><div>1></div>
</div><div><br></div><div>So, perhaps Kenji is correct that it's a problem specific to VirtualBox on Ubuntu. One thing to check is that SMP support is enabled, since dirty scheduler support currently requires SMP support.</div>
<div><br></div><div>--steve</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 11, 2014 at 10:15 PM, Kenji Rikitake <span dir="ltr"><<a href="mailto:kenji@k2r.org" target="_blank">kenji@k2r.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The dirty scheduler on FreeBSD 10-STABLE on a *non-VM native* machine<br>
(Core i5, 16GB RAM) works alright here with both gcc47 and *clang*. I'm<br>
using kerl.  I suspect it's a VirtualBox-on-Ubuntu problem.<br>
<br>
uname -a:<br>
<br>
FreeBSD <a href="http://minimax.priv.k2r.org" target="_blank">minimax.priv.k2r.org</a> 10.0-STABLE FreeBSD 10.0-STABLE #33 r264285: Wed Apr  9 09:25:02 JST 2014     root@minimax.priv.k2r.org:/usr/obj/usr/src/sys/K2RKERNEL  amd64<br>

<br>
.kerlrc setting:<br>
<br>
# since .kerl is a dot file for /bin/sh, exporting inside the environment will define the env variables<br>
# NOTE WELL: these export command will affect *your login environment* when activating curl!<br>
# for clang with concurrent make<br>
export CC=clang CXX=clang CFLAGS="-g -O3 -fstack-protector" LDFLAGS="-fstack-protector" MAKEFLAGS="-j"<br>
# for gcc47<br>
#export CC=gcc47 CXX=gcc47 CFLAGS="-g -O3 -fomit-frame-pointer -fstack-protector" LDFLAGS="-fstack-protector" MAKEFLAGS="-j"<br>
#<br>
KERL_CONFIGURE_OPTIONS="--disable-native-libs --enable-vm-probes --with-dynamic-trace=dtrace --with-ssl=/usr/local --with-javac --enable-hipe --enable-kernel-poll --with-wx-config=/usr/local/bin/wxgtk2u-2.8-config --without-odbc --enable-threads --enable-sctp --enable-smp-support -enable-dirty-schedulers --disable-silent-rules"<br>

<br>
erl shell output:<br>
<br>
Erlang/OTP 17 [erts-6.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]<br>
<div class=""><br>
Eshell V6.0  (abort with ^G)<br>
1> erlang:system_info(dirty_cpu_schedulers).<br>
</div>4<br>
2><br>
<br>
Kenji Rikitake<br>
<br>
++> Wu Ray <<a href="mailto:mjollnir.ray@gmail.com">mjollnir.ray@gmail.com</a>> [2014-04-11 12:30:02 +0800]:<br>
> Date: Fri, 11 Apr 2014 12:30:02 +0800<br>
> From: Wu Ray <<a href="mailto:mjollnir.ray@gmail.com">mjollnir.ray@gmail.com</a>><br>
> To: <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> Subject: [erlang-questions] Cannot build a work vm on FreeBSD with dtrace<br>
>  AND enable dirty-schedulers<br>
<div><div class="h5">><br>
> Hi, list<br>
><br>
> I cannot build a working erlang 17 on FreeBSD 10.0, with dtrace AND enabled<br>
> dirty-schedulers at the same time, that's my steps:<br>
> ./configure --with-dynamic-trace=dtrace --enable-dirty-schedulers<br>
> gmake<br>
><br>
> then, the build erl vm just quit with:<br>
> Segmentation fault(core dumped)<br>
><br>
> I've tried gcc47, same result.<br>
> CC=gcc47 CXX=g++47 ./configure --with-dynamic-trace=dtrace<br>
> --enable-dirty-schedulers<br>
><br>
> if I build with-dtrace OR enable dirty-schedulers separately, the VMs run<br>
> well.<br>
> but the dirty-schedulers number looks strange:<br>
><br>
> Erlang/OTP 17 [erts-6.0] [source] [64-bit]<br>
> [ds:10:5851653:18446744073709551611] [async-threads:38554976] [hipe]<br>
> [kernel-poll:]<br>
><br>
> Eshell V6.0 (abort with ^G)<br>
> 1> erlang:system_info(dirty_cpu_schedulers).<br>
> ** exception error: bad argument<br>
>      in function  erlang:system_info/1<br>
>         called as erlang:system_info(dirty_cpu_schedulers)<br>
><br>
><br>
> And, gcc48 cannot build a working VM with enabled dirty-schedulers, the vm<br>
> quit with Segmentation fault.<br>
><br>
> BTW: my FreeBSD 10.0 is running in VirtualBox 4.3.10 on Ubuntu13.10<br>
><br>
><br>
> regards,<br>
<br>
</div></div>> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br></div>