[erlang-bugs] system_info(nif_version) does not work

Steve Vinoski vinoski@REDACTED
Tue Jan 20 23:25:53 CET 2015


On Tue, Jan 20, 2015 at 4:52 PM, Daniel Goertzen <daniel.goertzen@REDACTED>
wrote:

> The documentation at...
>
> http://www.erlang.org/doc/man/erlang.html#system_info-1
>
> ... says I can get nif version information with
> erlang:system_info(nif_version).  This does not work.  See output below:
>
>
>
> $ erl
> Erlang/OTP 17 [erts-6.0.1] [source-deacab9] [64-bit] [smp:3:3]
> [async-threads:10] [hipe] [kernel-poll:false]
>
> Eshell V6.0.1  (abort with ^G)
> 1> erlang:system_info(nif_version).
> ** exception error: bad argument
>      in function  erlang:system_info/1
>         called as erlang:system_info(nif_version)
> 2>
>
>
Looks like this was added for 17.4. I tried it on 17.3 just to be sure, and
got the same failure you did. But for 17.4:

$ erl
Erlang/OTP 17 [erts-6.3] [source] [64-bit] [smp:8:8] [ds:8:8:10]
[async-threads:10] [kernel-poll:false]

Eshell V6.3  (abort with ^G)
1> erlang:system_info(nif_version).
"2.7"

--steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20150120/d7fafd8e/attachment.htm>


More information about the erlang-bugs mailing list