{"action":"closed","issue":{"url":"https://api.github.com/repos/minetest/minetest/issues/2514","labels_url":"https://api.github.com/repos/minetest/minetest/issues/2514/labels{/name}","comments_url":"https://api.github.com/repos/minetest/minetest/issues/2514/comments","events_url":"https://api.github.com/repos/minetest/minetest/issues/2514/events","html_url":"https://github.com/minetest/minetest/issues/2514","id":62809088,"number":2514,"title":"Segmentation fault when attempting to call minetest.clear_registered_ores","user":{"login":"Echoes91","id":11097013,"avatar_url":"https://avatars.githubusercontent.com/u/11097013?v=3","gravatar_id":"","url":"https://api.github.com/users/Echoes91","html_url":"https://github.com/Echoes91","followers_url":"https://api.github.com/users/Echoes91/followers","following_url":"https://api.github.com/users/Echoes91/following{/other_user}","gists_url":"https://api.github.com/users/Echoes91/gists{/gist_id}","starred_url":"https://api.github.com/users/Echoes91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Echoes91/subscriptions","organizations_url":"https://api.github.com/users/Echoes91/orgs","repos_url":"https://api.github.com/users/Echoes91/repos","events_url":"https://api.github.com/users/Echoes91/events{/privacy}","received_events_url":"https://api.github.com/users/Echoes91/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/minetest/minetest/labels/@%20Mapgen","name":"@ Mapgen","color":"009800"},{"url":"https://api.github.com/repos/minetest/minetest/labels/bug","name":"bug","color":"ff5050"},{"url":"https://api.github.com/repos/minetest/minetest/labels/High%20priority","name":"High priority","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-18T21:40:32Z","updated_at":"2015-03-20T22:49:51Z","closed_at":"2015-03-20T22:49:51Z","body":"The minetest.clear_registered_ores() call issued from a mod's init.lua within default minetest_game cause immediate segfault:\r\n\r\nHowever calling them from inside with luacmd or with any delay results in them working as expected. This is a workaround:\r\nminetest.after(1, function()\r\n\tminetest.clear_registered_ores()\r\nend)"}}