Skip to content

Instantly share code, notes, and snippets.

@aycanirican
Created March 1, 2012 08:49
Show Gist options
  • Save aycanirican/1948410 to your computer and use it in GitHub Desktop.
Save aycanirican/1948410 to your computer and use it in GitHub Desktop.
DragonflyBSD head: getErrno yields SIGSEGV
Prelude> :m +Foreign.C.Error
Prelude Foreign.C.Error> a <- getErrno
Program received signal SIGSEGV, Segmentation fault.
0x0000000803d0bb04 in _umtx_wakeup_err () from /usr/lib/libpthread.so.0
(gdb) info threads
Id Target Id Frame
* 1 process 46132 0x0000000803d0bb04 in _umtx_wakeup_err () from /usr/lib/libpthread.so.0
(gdb) bt
#0 0x0000000803d0bb04 in _umtx_wakeup_err () from /usr/lib/libpthread.so.0
#1 0x0000000803d0b796 in __thr_umtx_unlock () from /usr/lib/libpthread.so.0
#2 0x0000000803d08ca0 in pthread_mutex_unlock () from /usr/lib/libpthread.so.0
#3 0x0000000002abf4fe in yieldCapability ()
#4 0x0000000002ac186e in schedule ()
#5 0x0000000002ac2371 in scheduleWaitThread ()
#6 0x0000000002abaa1d in real_main ()
#7 0x0000000002abab26 in hs_main ()
#8 0x00000000004cff37 in main ()
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment