Skip to content

Instantly share code, notes, and snippets.

@wandernauta
Created June 19, 2010 15:28
Show Gist options
  • Save wandernauta/444985 to your computer and use it in GitHub Desktop.
Save wandernauta/444985 to your computer and use it in GitHub Desktop.
scavenger@versus:~/Public/ooc/try$ cat soviet.ooc
import os/Time
str := Time microtime() toString() last()
("In Soviet Russia, " + str + " calculates YOU! \n") print()
scavenger@versus:~/Public/ooc/try$ OOC_SDK=/home/scavenger/Public/ooc/newrock/rock/sdk gdb --args rock soviet.ooc 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 soviet.ooc
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x08094631 in io_File__File_getPath (this=0x0) at /home/scavenger/Public/ooc/newrock/rock/sdk/io/File.ooc:403
Line number 403 out of range; /home/scavenger/Public/ooc/newrock/rock/sdk/io/File.ooc has 334 lines.
(gdb) ^CQuit
(gdb) exit
Undefined command: "exit". Try "help".
(gdb) quit
A debugging session is active.
Inferior 1 [process 9152] will be killed.
Quit anyway? (y or n) y
scavenger@versus:~/Public/ooc/try$ OOC_SDK=/home/scavenger/Public/ooc/newrock/rock/sdk gdb --args rock soviet.ooc
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 soviet.ooc
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x08094631 in io_File__File_getPath (this=0x0) at /home/scavenger/Public/ooc/newrock/rock/sdk/io/File.ooc:403
Line number 403 out of range; /home/scavenger/Public/ooc/newrock/rock/sdk/io/File.ooc has 334 lines.
(gdb) bt
#0 0x08094631 in io_File__File_getPath (this=0x0) at /home/scavenger/Public/ooc/newrock/rock/sdk/io/File.ooc:403
#1 0x0804cc24 in rock_frontend_PathList__PathList_getElement_impl (this=0x8121e80, path=0x817a8a0 "lang/string.ooc")
at source/rock/frontend/PathList.ooc:108
#2 0x0804cdba in rock_frontend_PathList__PathList_getElement (this=0x8121e80, path=0x817a8a0 "lang/string.ooc") at source/rock/frontend/PathList.ooc:158
#3 0x080565c2 in rock_frontend_AstBuilder__AstBuilder_getRealImportPath (imp=0x817ab60, module=0x817be38, params=0x8183f80, path=0xbffff19c,
impPath=0xbffff1a4, impElement=0xbffff1a0) at source/rock/frontend/AstBuilder.ooc:99
#4 0x0804e28f in rock_middle_Module__Module_parseImports_impl (this=0x817be38, resolver=0x0) at source/rock/middle/Module.ooc:284
#5 0x0804ee04 in rock_middle_Module__Module_parseImports (this=0x817be38, resolver=0x0) at source/rock/middle/Module.ooc:521
#6 0x0804e4fa in rock_middle_Module__Module_parseImports_impl (this=0x817bea0, resolver=0x0) at source/rock/middle/Module.ooc:312
#7 0x0804ee04 in rock_middle_Module__Module_parseImports (this=0x817bea0, resolver=0x0) at source/rock/middle/Module.ooc:521
#8 0x0804b529 in rock_frontend_CommandLine__CommandLine_parse_impl (this=0x8121fc0, moduleName=0xbffff622 "soviet.ooc")
at source/rock/frontend/CommandLine.ooc:369
#9 0x0804b79b in rock_frontend_CommandLine__CommandLine_parse (this=0x8121fc0, moduleName=0xbffff622 "soviet.ooc")
at source/rock/frontend/CommandLine.ooc:414
#10 0x0804b213 in rock_frontend_CommandLine__CommandLine_init (this=0x8121fc0, args=0x811ea08) at source/rock/frontend/CommandLine.ooc:309
#11 0x0804b7e8 in rock_frontend_CommandLine__CommandLine_new (args=0x811ea08) at source/rock/frontend/CommandLine.ooc:18
#12 0x0804a0d8 in main (argc=2, argv=0xbffff4a4) at source/rock/rock.ooc:11
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment