Skip to content

Instantly share code, notes, and snippets.

@jarrettchisholm
jarrettchisholm / x11_window_pos.patch
Last active December 11, 2015 21:59
x11 window position patch for SFML 2.0
284,286c284,304
< XWindowAttributes attributes;
< XGetWindowAttributes(m_display, m_window, &attributes);
< return Vector2i(attributes.x, attributes.y);
---
> ::Window activeWin, root;
> int xCoordinate, yCoordinate;
> uint width, height, border_width, depth;
> ::Window *children;
> uint childcount;
curl -sSL https://get.rvm.io | bash -s stable
source /etc/profile
rvm install rbx-2.2.5
rvm use rbx
# For Rubinius, you need to use the --no-doc flag (installation of documentation seems to hang)
gem install nokogiri --no-doc
Rubinius Crash Report #rbxcrashreport
[[Exception]]
A toplevel exception occurred
Thread has been interrupted (Interrupt)
Backtrace:
{ } in Rubinius::Loader#signals at kernel/loader.rb:100
Rubinius Crash Report #rbxcrashreport
[[Exception]]
A toplevel exception occurred
Thread has been interrupted (Interrupt)
Backtrace:
{ } in Rubinius::Loader#signals at kernel/loader.rb:100
An exception occurred in a forked block
undefined method `to_str' on false:FalseClass. (NoMethodError)
Backtrace:
Kernel(FalseClass)#to_str (method_missing) at kernel/delta/kernel.rb:78
Mysql2::Client#escape at client.c
{ } in ConversionMySQLUtils#insert_row at lib/utils/mysql.rb:57
Array#map at kernel/bootstrap/array.rb:87
jarrett@debian:~/conversion$ gdb ruby --core=core
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Thread 4 (Thread 0x7ff6f8b8b740 (LWP 13250)):
#0 0x00007ff6f813fff8 in pthread_join (threadid=140698665727744, thread_return=0x7fff13e31db8) at pthread_join.c:92
#1 0x0000000000899158 in rubinius::ImmixMarker::stop_thread (this=0x25cd5c0, state=0x20fbd20) at vm/gc/immix_marker.cpp:72
#2 0x00000000008991dd in rubinius::ImmixMarker::shutdown (this=0x25cd5c0, state=0x20fbd20) at vm/gc/immix_marker.cpp:77
#3 0x000000000061b50c in rubinius::AuxiliaryThreads::shutdown (this=0x20fb6e0, state=0x20fbd20) at vm/auxiliary_threads.cpp:22
#4 0x000000000062b7b4 in rubinius::Environment::halt (this=0x7fff13e31ed0, state=0x20fbd20) at vm/environment.cpp:386
#5 0x0000000000886ad1 in main (argc=2, argv=0x7fff13e32868) at vm/drivers/cli.cpp:134
Thread 3 (Thread 0x7ff6f4f95700 (LWP 13252)):
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
An exception occurred in a forked block
undefined method `to_str' on false:FalseClass. (NoMethodError)
Backtrace:
Kernel(FalseClass)#to_str (method_missing) at kernel/delta/kernel.rb:78
Mysql2::Client#escape at client.c
ConversionMySQLUtils#find_query at lib/utils/mysql.rb:130
Hash#each_pair (each) at kernel/common/hash.rb:336
jarrett@debian:~/application$ gdb ruby --core=core
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Rubinius Crash Report #rbxcrashreport
Error: signal ^@SIGSEGV
[[Backtrace]]
ruby[0x74635f]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xf210)[0x7f0e77cf1210]
/home/jarrett/.rvm/gems/ruby-2.1.1/gems/mysql2-0.3.15/lib/mysql2/mysql2.so(+0x7ac0)[0x7f0e66082ac0]
/home/jarrett/.rvm/gems/ruby-2.1.1/gems/mysql2-0.3.15/lib/mysql2/mysql2.so(decr_mysql2_client+0x15)[0x7f0e66082e35]
ruby(_ZN8rubinius4Data8finalizeEPNS_5StateEPS0_+0x117)[0x7b4459]