{"action":"created","issue":{"url":"https://api.github.com/repos/wolfcw/libfaketime/issues/68","labels_url":"https://api.github.com/repos/wolfcw/libfaketime/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/wolfcw/libfaketime/issues/68/comments","events_url":"https://api.github.com/repos/wolfcw/libfaketime/issues/68/events","html_url":"https://github.com/wolfcw/libfaketime/issues/68","id":69992688,"number":68,"title":"Core dump on SmartOS joyent_20150320T005835Z","user":{"login":"pannon","id":7752363,"avatar_url":"https://avatars.githubusercontent.com/u/7752363?v=3","gravatar_id":"","url":"https://api.github.com/users/pannon","html_url":"https://github.com/pannon","followers_url":"https://api.github.com/users/pannon/followers","following_url":"https://api.github.com/users/pannon/following{/other_user}","gists_url":"https://api.github.com/users/pannon/gists{/gist_id}","starred_url":"https://api.github.com/users/pannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pannon/subscriptions","organizations_url":"https://api.github.com/users/pannon/orgs","repos_url":"https://api.github.com/users/pannon/repos","events_url":"https://api.github.com/users/pannon/events{/privacy}","received_events_url":"https://api.github.com/users/pannon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-22T01:15:26Z","updated_at":"2015-04-24T06:51:32Z","closed_at":null,"body":"Successfully compiles on SmartOS but core dumps when running `date`.\r\n\r\nExtracted a core stack with `mdb` please see below if this is of any help. \r\nIf required can also provide the full coredump file.\r\n\r\nRelease is: joyent_20150320T005835Z\r\n\r\n```\r\nffffdf7fffdfef70 libc.so.1`_lwp_kill+0xa()\r\nffffdf7fffdfefa0 libc.so.1`raise+0x20(6)\r\nffffdf7fffdfefb0 libumem.so.1`umem_do_abort+0x44()\r\nffffdf7fffdff0b0 0xffffdf7ffec37fb2()\r\nffffdf7fffdff140 0xffffdf7ffec40b28()\r\nffffdf7fffdff180 libumem.so.1`umem_alloc_retry+0xc0(ffffdf7ffec6a180, 0)\r\nffffdf7fffdff1e0 libumem.so.1`umem_alloc+0x9b(120, 0)\r\nffffdf7fffdff210 libumem.so.1`umem_malloc+0x3f(110)\r\nffffdf7fffdff240 libumem.so.1`calloc+0x60(22, 8)\r\nffffdf7fffdff280 libgcc_s.so.1`__emutls_get_address+0x10e()\r\nffffdf7fffdff2b0 libfaketimeMT.so.1`gettimeofday+0x4f()\r\nffffdf7fffdff340 libumem.so.1`umem_init+0x4b4()\r\nffffdf7fffdff380 libumem.so.1`umem_alloc_retry+0xc0(ffffdf7ffec6a180, 0)\r\nffffdf7fffdff3e0 libumem.so.1`umem_alloc+0x9b(120, 0)\r\nffffdf7fffdff410 libumem.so.1`umem_malloc+0x3f(110)\r\nffffdf7fffdff440 libumem.so.1`calloc+0x60(22, 8)\r\nffffdf7fffdff480 libgcc_s.so.1`__emutls_get_address+0x10e()\r\nffffdf7fffdff4b0 libfaketimeMT.so.1`system_time_from_system+0x18()\r\nffffdf7fffdff580 libfaketimeMT.so.1`ftpl_init+0x922()\r\nffffdf7fffdff5a0 0xffffdf7fe9b47b66()\r\nffffdf7fffdff5b0 libfaketimeMT.so.1`_init+0xe()\r\nffffdf7fffdff630 ld.so.1`call_init+0x117(ffffdf7fff340db0, 1)\r\nffffdf7fffdff970 ld.so.1`setup+0xdb8(ffffdf7fffdffb38, ffffdf7fffdffc08, 0, ffffdf7fffdfffcd, 1000, \r\nffffdf7fff3abd0e)\r\nffffdf7fffdffa90 ld.so.1`_setup+0x282(ffffdf7fffdffaa0, 190)\r\nffffdf7fffdffb20 ld.so.1`_rt_boot+0x6c()\r\n0000000000000001 0xffffdf7fffdffcf8()\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/wolfcw/libfaketime/issues/comments/95823805","html_url":"https://github.com/wolfcw/libfaketime/issues/68#issuecomment-95823805","issue_url":"https://api.github.com/repos/wolfcw/libfaketime/issues/68","id":95823805,"user":{"login":"rbalint","id":1520835,"avatar_url":"https://avatars.githubusercontent.com/u/1520835?v=3","gravatar_id":"","url":"https://api.github.com/users/rbalint","html_url":"https://github.com/rbalint","followers_url":"https://api.github.com/users/rbalint/followers","following_url":"https://api.github.com/users/rbalint/following{/other_user}","gists_url":"https://api.github.com/users/rbalint/gists{/gist_id}","starred_url":"https://api.github.com/users/rbalint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbalint/subscriptions","organizations_url":"https://api.github.com/users/rbalint/orgs","repos_url":"https://api.github.com/users/rbalint/repos","events_url":"https://api.github.com/users/rbalint/events{/privacy}","received_events_url":"https://api.github.com/users/rbalint/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T06:51:32Z","updated_at":"2015-04-24T06:51:32Z","body":"...\r\nffffdf7fffdff280 libgcc_s.so.1`__emutls_get_address+0x10e()\r\nffffdf7fffdff2b0 libfaketimeMT.so.1`gettimeofday+0x4f()\r\nffffdf7fffdff340 libumem.so.1`umem_init+0x4b4()\r\nffffdf7fffdff380 libumem.so.1`umem_alloc_retry+0xc0(ffffdf7ffec6a180, 0)\r\nffffdf7fffdff3e0 libumem.so.1`umem_alloc+0x9b(120, 0)\r\nffffdf7fffdff410 libumem.so.1`umem_malloc+0x3f(110)\r\nffffdf7fffdff440 libumem.so.1`calloc+0x60(22, 8)\r\nffffdf7fffdff480 libgcc_s.so.1`__emutls_get_address+0x10e()\r\nffffdf7fffdff4b0 libfaketimeMT.so.1`system_time_from_system+0x18()\r\n...\r\nIt looks like the libgcc TLS implementation calls gettimeofday() on this platform and I see no workaround to fix that in libfaketime. I think single-threaded applications would work and maybe if you use a newer GCC/other compiler with different TLS implementation that could work as well.."}}