{"action":"closed","issue":{"url":"https://api.github.com/repos/axboe/fio/issues/47","labels_url":"https://api.github.com/repos/axboe/fio/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/axboe/fio/issues/47/comments","events_url":"https://api.github.com/repos/axboe/fio/issues/47/events","html_url":"https://github.com/axboe/fio/issues/47","id":55976302,"number":47,"title":"Crash with posixaio on Mac OS X 10.10.2","user":{"login":"felixbuenemann","id":909587,"avatar_url":"https://avatars.githubusercontent.com/u/909587?v=3","gravatar_id":"","url":"https://api.github.com/users/felixbuenemann","html_url":"https://github.com/felixbuenemann","followers_url":"https://api.github.com/users/felixbuenemann/followers","following_url":"https://api.github.com/users/felixbuenemann/following{/other_user}","gists_url":"https://api.github.com/users/felixbuenemann/gists{/gist_id}","starred_url":"https://api.github.com/users/felixbuenemann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixbuenemann/subscriptions","organizations_url":"https://api.github.com/users/felixbuenemann/orgs","repos_url":"https://api.github.com/users/felixbuenemann/repos","events_url":"https://api.github.com/users/felixbuenemann/events{/privacy}","received_events_url":"https://api.github.com/users/felixbuenemann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-30T00:01:18Z","updated_at":"2015-05-06T18:43:22Z","closed_at":"2015-05-06T18:43:22Z","body":"fio segfaults on Mac OS X when trying to use the posixaio engine. I tried with current master:\r\n```\r\nuname -a\r\nDarwin couchbook.lan 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64\r\n\r\ngcc --version\r\nConfigured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1\r\nApple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)\r\nTarget: x86_64-apple-darwin14.1.0\r\nThread model: posix\r\n\r\ncat rw.fio\r\n[foo]\r\nthread\r\nioengine=posixaio\r\nrw=randwrite\r\niodepth=32\r\nsize=1024m\r\ndirectory=/Users/felix/tmp/fio-1\r\n\r\n~/bin/fio rw.fio\r\nfoo: (g=0): rw=randwrite, bs=4K-4K/4K-4K/4K-4K, ioengine=posixaio, iodepth=32\r\nfio-2.2.5-11-gd47d\r\nStarting 1 thread\r\nfoo: Laying out IO file(s) (1 file(s) / 1024MB)\r\nfio: pid=2819, err=-1/file:engines/posixaio.c:213, func=xfer, error=Unknown error: -1\r\nfio(45155,0x11084a000) malloc: *** error for object 0x7fbad8504500: pointer being freed was not allocated\r\n*** set a breakpoint in malloc_error_break to debug\r\n[1]    45155 abort      ~/bin/fio rw.fio\r\n\r\nlldb ~/bin/fio\r\n(lldb) target create \"/Users/felix/bin/fio\"\r\nCurrent executable set to '/Users/felix/bin/fio' (x86_64).\r\n(lldb) r /Users/felix/tmp/rw.fio\r\nProcess 45124 launched: '/Users/felix/bin/fio' (x86_64)\r\nfoo: (g=0): rw=randwrite, bs=4K-4K/4K-4K/4K-4K, ioengine=posixaio, iodepth=32\r\nfio-2.2.5-11-gd47d\r\nStarting 1 thread\r\nfoo: Laying out IO file(s) (1 file(s) / 1024MB)\r\nfio: pid=2819, err=-1/file:engines/posixaio.c:213, func=xfer, error=Unknown error: -1\r\nfio(45124,0x10071c000) malloc: *** error for object 0x102104780: pointer being freed was not allocated\r\n*** set a breakpoint in malloc_error_break to debug\r\nProcess 45124 stopped\r\n* thread #2: tid = 0x45972, 0x00007fff8dd98286 libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGABRT\r\n    frame #0: 0x00007fff8dd98286 libsystem_kernel.dylib`__pthread_kill + 10\r\nlibsystem_kernel.dylib`__pthread_kill + 10:\r\n-> 0x7fff8dd98286:  jae    0x7fff8dd98290            ; __pthread_kill + 20\r\n   0x7fff8dd98288:  movq   %rax, %rdi\r\n   0x7fff8dd9828b:  jmp    0x7fff8dd93c53            ; cerror_nocancel\r\n   0x7fff8dd98290:  retq\r\n(lldb) bt all\r\n  thread #1: tid = 0x4594c, 0x00007fff8dd9848a libsystem_kernel.dylib`__semwait_signal + 10, queue = 'com.apple.main-thread'\r\n    frame #0: 0x00007fff8dd9848a libsystem_kernel.dylib`__semwait_signal + 10\r\n    frame #1: 0x00007fff8ffe9f5d libsystem_c.dylib`nanosleep + 199\r\n    frame #2: 0x00007fff8ffe9e50 libsystem_c.dylib`usleep + 54\r\n    frame #3: 0x0000000100033f42 fio`fio_backend [inlined] do_usleep(usecs=<unavailable>) + 2546 at backend.c:1831\r\n    frame #4: 0x0000000100033f2e fio`fio_backend [inlined] run_threads + 2077 at backend.c:2073\r\n    frame #5: 0x0000000100033711 fio`fio_backend + 449 at backend.c:2190\r\n    frame #6: 0x00007fff9352c5c9 libdyld.dylib`start + 1\r\n\r\n  thread #3: tid = 0x45971, 0x00007fff8dd98136 libsystem_kernel.dylib`__psynch_cvwait + 10\r\n    frame #0: 0x00007fff8dd98136 libsystem_kernel.dylib`__psynch_cvwait + 10\r\n    frame #1: 0x00007fff8ba78e0c libsystem_pthread.dylib`_pthread_cond_wait + 693\r\n    frame #2: 0x0000000100037781 fio`helper_thread_main(data=<unavailable>) + 145 at backend.c:2118\r\n    frame #3: 0x00007fff8ba78268 libsystem_pthread.dylib`_pthread_body + 131\r\n    frame #4: 0x00007fff8ba781e5 libsystem_pthread.dylib`_pthread_start + 176\r\n    frame #5: 0x00007fff8ba7641d libsystem_pthread.dylib`thread_start + 13\r\n\r\n* thread #2: tid = 0x45972, 0x00007fff8dd98286 libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGABRT\r\n  * frame #0: 0x00007fff8dd98286 libsystem_kernel.dylib`__pthread_kill + 10\r\n    frame #1: 0x00007fff8ba7a42f libsystem_pthread.dylib`pthread_kill + 90\r\n    frame #2: 0x00007fff8ffc8b53 libsystem_c.dylib`abort + 129\r\n    frame #3: 0x00007fff960d5937 libsystem_malloc.dylib`free + 428\r\n    frame #4: 0x00000001000348dc fio`thread_main [inlined] cleanup_io_u + 77 at backend.c:971\r\n    frame #5: 0x000000010003488f fio`thread_main(data=0x0000000100400000) + 1951 at backend.c:1577\r\n    frame #6: 0x00007fff8ba78268 libsystem_pthread.dylib`_pthread_body + 131\r\n    frame #7: 0x00007fff8ba781e5 libsystem_pthread.dylib`_pthread_start + 176\r\n    frame #8: 0x00007fff8ba7641d libsystem_pthread.dylib`thread_start + 13\r\n(lldb)\r\n```"}}