Fix crash with erlang:system_info({cpu_topology,junk})

Paul Guyot pguyot@REDACTED
Sun Oct 3 09:30:35 CEST 2010


Hello,

There is a bug causing a crash if erlang:system_info is called with {cpu_topology, Atom} where Atom is an unrecognized Atom (e.g. misspelled). The function should fail with badarg, but the emulator would segfault instead.

A fix with a non-regression test is available here:
git fetch git://github.com/pguyot/otp.git fix-system_info-cpu_topology-segfault

Paul
-- 
Semiocast                    http://semiocast.com/
+33.175000290 - 62 bis rue Gay-Lussac, 75005 Paris



More information about the erlang-patches mailing list