{"action":"created","issue":{"url":"https://api.github.com/repos/minetest/minetest/issues/3743","repository_url":"https://api.github.com/repos/minetest/minetest","labels_url":"https://api.github.com/repos/minetest/minetest/issues/3743/labels{/name}","comments_url":"https://api.github.com/repos/minetest/minetest/issues/3743/comments","events_url":"https://api.github.com/repos/minetest/minetest/issues/3743/events","html_url":"https://github.com/minetest/minetest/issues/3743","id":134865298,"number":3743,"title":"Server keeps crashing while players are mining","user":{"login":"0-afflatus","id":7130479,"avatar_url":"https://avatars.githubusercontent.com/u/7130479?v=3","gravatar_id":"","url":"https://api.github.com/users/0-afflatus","html_url":"https://github.com/0-afflatus","followers_url":"https://api.github.com/users/0-afflatus/followers","following_url":"https://api.github.com/users/0-afflatus/following{/other_user}","gists_url":"https://api.github.com/users/0-afflatus/gists{/gist_id}","starred_url":"https://api.github.com/users/0-afflatus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0-afflatus/subscriptions","organizations_url":"https://api.github.com/users/0-afflatus/orgs","repos_url":"https://api.github.com/users/0-afflatus/repos","events_url":"https://api.github.com/users/0-afflatus/events{/privacy}","received_events_url":"https://api.github.com/users/0-afflatus/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"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2016-02-19T13:31:11Z","updated_at":"2016-02-21T12:58:25Z","closed_at":null,"body":"This clearly has something to do with mapgen (v7) and I guess ores specifically. Only started since upgrading from 0.4.13 stable to 4c65455. Possibly related to #3228 ?\r\n\r\nThe mods I'm running are specific to grailtest, so may well be my coding, but the error messages really aren't giving me much to go on.\r\n\r\n@est31 this is the bug I talked about on IRC\r\n\r\n```\r\n2016-02-19 13:13:36: ERROR[Emerge-0]: An unhandled exception occurred: Invalid range (max < min)\r\n2016-02-19 13:13:36: ERROR[Emerge-0]: In thread b2afeb40:\r\n2016-02-19 13:13:36: ERROR[Emerge-0]: /home/tim/src/minetest/src/emerge.cpp:2d4: virtual void* EmergeThread::run(): A fatal error occured: Invalid range (max < min)\r\n2016-02-19 13:13:36: ERROR[Emerge-0]: Debug stacks:\r\n2016-02-19 13:13:36: ERROR[Emerge-0]: DEBUG STACK FOR THREAD b2afeb40: \r\n2016-02-19 13:13:36: ERROR[Emerge-0]: #0  virtual void* EmergeThread::run()\r\n2016-02-19 13:13:36: ERROR[Emerge-0]: DEBUG STACK FOR THREAD b32ffb40: \r\n2016-02-19 13:13:36: ERROR[Emerge-0]: #0  virtual void* CurlFetchThread::run()\r\n2016-02-19 13:13:36: ERROR[Emerge-0]: DEBUG STACK FOR THREAD b3cf4b40: \r\n2016-02-19 13:13:36: ERROR[Emerge-0]: #0  virtual void* ServerThread::run()\r\n2016-02-19 13:13:36: ERROR[Emerge-0]: #1  void Server::Receive()\r\n2016-02-19 13:13:36: ERROR[Emerge-0]: DEBUG STACK FOR THREAD b6a09700: \r\n2016-02-19 13:13:36: ERROR[Emerge-0]: #0  int main(int, char**)\r\n2016-02-19 13:13:36: ERROR[Emerge-0]: #1  Dedicated server branch\r\n2016-02-19 13:13:36: ERROR[Emerge-0]: #2  void dedicated_server_loop(Server&, bool&)\r\n```\r\n```\r\n(gdb) bt full\r\n#0  0xb773bc38 in __kernel_vsyscall ()\r\nNo symbol table info available.\r\n#1  0xb700ced7 in __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:55\r\n        resultvar = <optimized out>\r\n        resultvar = <optimized out>\r\n        pid = -1223077888\r\n        selftid = 19923\r\n#2  0xb700e4a9 in __GI_abort () at abort.c:89\r\n        save_stage = 2\r\n        act = {__sigaction_handler = {sa_handler = 0x842fc00 <errorstream>, sa_sigaction = 0x842fc00 <errorstream>}, sa_mask = {__val = {2997870632, 3073331894, 3077852752, 3077955584, \r\n              134557952, 3063988320, 3077957936, 3077872554, 3077958376, 3063988320, 1, 5, 0, 3073329177, 138608352, 2, 3073331710, 134632624, 138584436, 372, 2997870728, 136380636, \r\n              2997871432, 3070128436, 129, 3075256850, 3077872379, 138607616, 138023778, 137984672, 2997871432, 3077898528}}, sa_flags = 1, sa_restorer = 0xb700e360 <__GI_abort>}\r\n        sigs = {__val = {32, 0 <repeats 31 times>}}\r\n#3  0x082104c4 in fatal_error_fn(char const*, char const*, unsigned int, char const*) ()\r\nNo symbol table info available.\r\n#4  0x082285ec in EmergeThread::run() ()\r\nNo symbol table info available.\r\n#5  0x081472c5 in Thread::threadProc(void*) ()\r\nNo symbol table info available.\r\n#6  0xb74c30cf in start_thread (arg=0xb2afeb40) at pthread_create.c:333\r\n        __res = <optimized out>\r\n        pd = 0xb2afeb40\r\n        now = <optimized out>\r\n        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1219661824, 0, -1297093824, -1297095640, -2066514168, 1131719939}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {\r\n              prev = 0x0, cleanup = 0x0, canceltype = 0}}}\r\n        not_first_call = <optimized out>\r\n        pagesize_m1 = <optimized out>\r\n        sp = <optimized out>\r\n        freesize = <optimized out>\r\n        __PRETTY_FUNCTION__ = \"start_thread\"\r\n#7  0xb70c963e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:122\r\nNo locals.\r\n```"},"comment":{"url":"https://api.github.com/repos/minetest/minetest/issues/comments/186819630","html_url":"https://github.com/minetest/minetest/issues/3743#issuecomment-186819630","issue_url":"https://api.github.com/repos/minetest/minetest/issues/3743","id":186819630,"user":{"login":"paramat","id":3686677,"avatar_url":"https://avatars.githubusercontent.com/u/3686677?v=3","gravatar_id":"","url":"https://api.github.com/users/paramat","html_url":"https://github.com/paramat","followers_url":"https://api.github.com/users/paramat/followers","following_url":"https://api.github.com/users/paramat/following{/other_user}","gists_url":"https://api.github.com/users/paramat/gists{/gist_id}","starred_url":"https://api.github.com/users/paramat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paramat/subscriptions","organizations_url":"https://api.github.com/users/paramat/orgs","repos_url":"https://api.github.com/users/paramat/repos","events_url":"https://api.github.com/users/paramat/events{/privacy}","received_events_url":"https://api.github.com/users/paramat/received_events","type":"User","site_admin":false},"created_at":"2016-02-21T12:58:25Z","updated_at":"2016-02-21T12:58:25Z","body":"If nmin.Y + max_height > nmax.Y - max_height i'll set y_start to the midpoint of nmiin.Y and nmax.Y instead of using pcgrandom."}}