Skip to content

Instantly share code, notes, and snippets.

@wandernauta
Created June 22, 2010 16:54
Show Gist options
  • Save wandernauta/448742 to your computer and use it in GitHub Desktop.
Save wandernauta/448742 to your computer and use it in GitHub Desktop.
scavenger@versus:/tmp$ OOC_SDK=~/Public/ooc/newrock/rock/sdk/ gdb --args rock high
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 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 "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/rock...done.
(gdb) run
Starting program: /usr/bin/rock high
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0xb7ea58c5 in readdir () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0 0xb7ea58c5 in readdir () from /lib/tls/i686/cmov/libc.so.6
#1 0x0809567a in io_native_FileUnix__FileUnix_getChildren_impl (
this=0x857d410)
at /home/scavenger/Public/ooc/newrock/rock/sdk/io/native/FileUnix.ooc:217
#2 0x0809467d in io_File__File_getChildren (this=0x857d410)
at /home/scavenger/Public/ooc/newrock/rock/sdk/io/File.ooc:419
#3 0x0806ca56 in rock_middle_tinker_Resolver__Resolver_walkForImports_impl (
this=0x8568d20, f=0x857d410, pathElem=0x8122d10, dummyModule=0x88be410)
at source/rock/middle/tinker/Resolver.ooc:98
#4 0x0806cc43 in rock_middle_tinker_Resolver__Resolver_walkForImports (
this=0x8568d20, f=0x857d410, pathElem=0x8122d10, dummyModule=0x88be410)
at source/rock/middle/tinker/Resolver.ooc:134
#5 0x0806ca95 in rock_middle_tinker_Resolver__Resolver_walkForImports_impl (
this=0x8568d20, f=0x8122d10, pathElem=0x8122d10, dummyModule=0x88be410)
at source/rock/middle/tinker/Resolver.ooc:99
#6 0x0806cc43 in rock_middle_tinker_Resolver__Resolver_walkForImports (
this=0x8568d20, f=0x8122d10, pathElem=0x8122d10, dummyModule=0x88be410)
at source/rock/middle/tinker/Resolver.ooc:134
#7 0x0806c9eb in rock_middle_tinker_Resolver__Resolver_collectAllImports_impl
(this=0x8568d20) at source/rock/middle/tinker/Resolver.ooc:85
#8 0x0806cc16 in rock_middle_tinker_Resolver__Resolver_collectAllImports (
this=0x8568d20) at source/rock/middle/tinker/Resolver.ooc:130
#9 0x0805d9a1 in rock_middle_FunctionCall__FunctionCall_findSimilar_impl (
this=0x816cc40, res=0x8568d20) at source/rock/middle/FunctionCall.ooc:259
#10 0x08060392 in rock_middle_FunctionCall__FunctionCall_findSimilar (
this=0x816cc40, res=0x8568d20) at source/rock/middle/FunctionCall.ooc:905
#11 0x0805d889 in rock_middle_FunctionCall__FunctionCall_resolve_impl (
this=0x816cc40, trail=0x857d440, res=0x8568d20)
at source/rock/middle/FunctionCall.ooc:232
#12 0x0805b46e in rock_middle_Node__Node_resolve (this=0x816cc40,
trail=0x857d440, res=0x8568d20) at source/rock/middle/Node.ooc:77
#13 0x0805cd9d in rock_middle_FunctionCall__FunctionCall_resolve_impl (
this=0x816cce8, trail=0x857d440, res=0x8568d20)
at source/rock/middle/FunctionCall.ooc:81
#14 0x0805b46e in rock_middle_Node__Node_resolve (this=0x816cce8,
trail=0x857d440, res=0x8568d20) at source/rock/middle/Node.ooc:77
#15 0x0805ce2f in rock_middle_FunctionCall__FunctionCall_resolve_impl (
this=0x816cc08, trail=0x857d440, res=0x8568d20)
at source/rock/middle/FunctionCall.ooc:93
#16 0x0805b46e in rock_middle_Node__Node_resolve (this=0x816cc08,
trail=0x857d440, res=0x8568d20) at source/rock/middle/Node.ooc:77
#17 0x0806de61 in rock_middle_Scope__Scope_resolve_impl (this=0x811f528,
trail=0x857d440, res=0x8568d20) at source/rock/middle/Scope.ooc:73
#18 0x0806e30a in rock_middle_Scope__Scope_resolve (this=0x811f528,
trail=0x857d440, res=0x8568d20) at source/rock/middle/Scope.ooc:178
#19 0x0807276c in rock_middle_ControlStatement__ControlStatement_resolve_impl (
this=0x8162e88, trail=0x857d440, res=0x8568d20)
at source/rock/middle/ControlStatement.ooc:20
#20 0x08077dcb in rock_middle_Foreach__Foreach_resolve_impl (this=0x8162e88,
trail=0x857d440, res=0x8568d20) at source/rock/middle/Foreach.ooc:134
#21 0x0805b46e in rock_middle_Node__Node_resolve (this=0x8162e88,
trail=0x857d440, res=0x8568d20) at source/rock/middle/Node.ooc:77
#22 0x0806de61 in rock_middle_Scope__Scope_resolve_impl (this=0x8228990,
trail=0x857d440, res=0x8568d20) at source/rock/middle/Scope.ooc:73
#23 0x0806e30a in rock_middle_Scope__Scope_resolve (this=0x8228990,
trail=0x857d440, res=0x8568d20) at source/rock/middle/Scope.ooc:178
#24 0x0807276c in rock_middle_ControlStatement__ControlStatement_resolve_impl (
this=0x8228a50, trail=0x857d440, res=0x8568d20)
at source/rock/middle/ControlStatement.ooc:20
#25 0x0805b46e in rock_middle_Node__Node_resolve (this=0x8228a50,
trail=0x857d440, res=0x8568d20) at source/rock/middle/Node.ooc:77
#26 0x0806de61 in rock_middle_Scope__Scope_resolve_impl (this=0x811f690,
trail=0x857d440, res=0x8568d20) at source/rock/middle/Scope.ooc:73
#27 0x0806e30a in rock_middle_Scope__Scope_resolve (this=0x811f690,
trail=0x857d440, res=0x8568d20) at source/rock/middle/Scope.ooc:178
#28 0x0804e53d in rock_middle_Module__Module_resolve_impl (this=0x815cea0,
trail=0x857d440, res=0x8568d20) at source/rock/middle/Module.ooc:324
#29 0x0804edfa in rock_middle_Module__Module_resolve (this=0x815cea0,
trail=0x857d440, res=0x8568d20) at source/rock/middle/Module.ooc:525
#30 0x0806c7c4 in rock_middle_tinker_Resolver__Resolver_process_impl (
this=0x8568d20) at source/rock/middle/tinker/Resolver.ooc:24
#31 0x0806cbb9 in rock_middle_tinker_Resolver__Resolver_process (
this=0x8568d20) at source/rock/middle/tinker/Resolver.ooc:118
#32 0x08073201 in rock_middle_tinker_Tinkerer__Tinkerer_process_impl (
this=0x8228eb8, modules=0x85da270)
at source/rock/middle/tinker/Tinkerer.ooc:64
#33 0x080734d2 in rock_middle_tinker_Tinkerer__Tinkerer_process (
this=0x8228eb8, modules=0x85da270)
at source/rock/middle/tinker/Tinkerer.ooc:112
#34 0x0804b53a in rock_frontend_CommandLine__CommandLine_parse_impl (
this=0x8122f90, moduleName=0x8122d20 "high.ooc")
at source/rock/frontend/CommandLine.ooc:374
#35 0x0804b76b in rock_frontend_CommandLine__CommandLine_parse (
this=0x8122f90, moduleName=0x8122d20 "high.ooc")
at source/rock/frontend/CommandLine.ooc:414
#36 0x0804b1e3 in rock_frontend_CommandLine__CommandLine_init (this=0x8122f90,
args=0x811f9f0) at source/rock/frontend/CommandLine.ooc:309
#37 0x0804b7b8 in rock_frontend_CommandLine__CommandLine_new (args=0x811f9f0)
at source/rock/frontend/CommandLine.ooc:18
#38 0x0804a0a8 in main (argc=2, argv=0xbffff4b4) at source/rock/rock.ooc:11
(gdb)
import os/Terminal
import math
for (i in 0..255) {
"\e[38;5;%dm" format(i) print()
" " times(((sin(i)) abs() * 80) toInt()) print()
"#" println()
Terminal reset()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment