Skip to content

Instantly share code, notes, and snippets.

@nddrylliog
Last active December 22, 2015 07:49
Show Gist options
  • Save nddrylliog/6440647 to your computer and use it in GitHub Desktop.
Save nddrylliog/6440647 to your computer and use it in GitHub Desktop.
$ ./otest
[fancy backtrace]
0 backtrace_provoke (at /home/amos/Dev/tests/backtrace-universal/backtrace.c:588)
1 BacktraceHandler printBacktrace_impl() in obacktrace (at /home/amos/Dev/tests/backtrace-universal/obacktrace.ooc:80)
2 BacktraceHandler printBacktrace() in obacktrace (at /home/amos/Dev/tests/backtrace-universal/obacktrace.ooc:97)
3 App run_impl() in otest (at /home/amos/Dev/tests/backtrace-universal/otest.ooc:40)
4 App run() in otest (at /home/amos/Dev/tests/backtrace-universal/otest.ooc:55)
5 main (at /home/amos/Dev/tests/backtrace-universal/otest.ooc:1)
6 libc_start_main() in (at /build/eglibc-MUWt1e/eglibc-2.17/csu/libc-start.c:294)
7 _start (at (null):0)
[OutOfBoundsException in ArrayList]: Trying to access an element at offset 0, but size is only 0!
[fancy backtrace]
0 print_stacktrace (at /home/amos/Dev/tests/backtrace-universal/backtrace.c:453)
1 killpg (at (null):0)
2 GI raise() in (at /build/eglibc-MUWt1e/eglibc-2.17/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56)
3 GI abort() in (at /build/eglibc-MUWt1e/eglibc-2.17/stdlib/abort.c:92)
4 Exception throw_impl() in lang/Exception (at /home/amos/Dev/rock/sdk/lang/Exception.ooc:221)
5 Exception throw() in lang/Exception (at /home/amos/Dev/rock/sdk/lang/Exception.ooc:256)
6 ArrayList get_impl() in structs/ArrayList (at /home/amos/Dev/rock/sdk/structs/ArrayList.ooc:84)
7 ArrayList get() in structs/ArrayList (at /home/amos/Dev/rock/sdk/structs/ArrayList.ooc:43)
8 __OP_IDX_ArrayList_Int__T() in structs/ArrayList (at /home/amos/Dev/rock/sdk/structs/ArrayList.ooc:292)
9 foo() in otest (at /home/amos/Dev/tests/backtrace-universal/otest.ooc:20)
10 bar() in otest (at /home/amos/Dev/tests/backtrace-universal/otest.ooc:25)
11 App runToo_impl() in otest (at /home/amos/Dev/tests/backtrace-universal/otest.ooc:47)
12 App runToo() in otest (at /home/amos/Dev/tests/backtrace-universal/otest.ooc:59)
13 __otest_closure347() in otest (at /home/amos/Dev/tests/backtrace-universal/otest.ooc:42)
14 __otest_closure347_thunk() in otest (at /home/amos/Dev/tests/backtrace-universal/otest.ooc:41)
15 loop() in lang/Abstractions (at /home/amos/Dev/rock/sdk/lang/Abstractions.ooc:2)
16 App run_impl() in otest (at /home/amos/Dev/tests/backtrace-universal/otest.ooc:41)
17 App run() in otest (at /home/amos/Dev/tests/backtrace-universal/otest.ooc:55)
18 main (at /home/amos/Dev/tests/backtrace-universal/otest.ooc:1)
19 libc_start_main() in (at /build/eglibc-MUWt1e/eglibc-2.17/csu/libc-start.c:294)
20 _start (at (null):0)
$ ./otest
[backtrace]
0 BacktraceHandler printBacktrace_impl() in obacktrace (at /Users/amos/Dev/tests/mingw-debug-tests/obacktrace.ooc:59)
1 BacktraceHandler printBacktrace() in obacktrace (at /Users/amos/Dev/tests/mingw-debug-tests/obacktrace.ooc:79)
2 App run_impl() in otest (at /Users/amos/Dev/tests/mingw-debug-tests/rock_tmp/ooc/otest/otest.c:38)
3 App run() in otest (at /Users/amos/Dev/tests/mingw-debug-tests/otest.ooc:55)
4 main (at /Users/amos/Dev/tests/mingw-debug-tests/otest.ooc:1)
5 start (from /usr/lib/system/libdyld.dylib)
[OutOfBoundsException in ArrayList]: Trying to access an element at offset 0, but size is only 0!
[backtrace]
0 backtrace_signal_handler (at /Users/amos/Dev/tests/mingw-debug-tests//backtrace.c:591)
1 _sigtramp (from /usr/lib/system/libsystem_c.dylib)
2 Exception throw_impl() in lang/Exception (at /Users/amos/Dev/rock/sdk/lang/Exception.ooc:218)
3 Exception throw() in lang/Exception (at /Users/amos/Dev/rock/sdk/lang/Exception.ooc:256)
4 ArrayList get_impl() in structs/ArrayList (at /Users/amos/Dev/rock/sdk/structs/ArrayList.ooc:84)
5 ArrayList get() in structs/ArrayList (at /Users/amos/Dev/rock/sdk/structs/ArrayList.ooc:43)
6 __OP_IDX_ArrayList_Int__T() in structs/ArrayList (at /Users/amos/Dev/rock/sdk/structs/ArrayList.ooc:292)
7 foo() in otest (at /Users/amos/Dev/tests/mingw-debug-tests/otest.ooc:20)
8 bar() in otest (at /Users/amos/Dev/tests/mingw-debug-tests/otest.ooc:25)
9 App runToo_impl() in otest (at /Users/amos/Dev/tests/mingw-debug-tests/otest.ooc:47)
10 App runToo() in otest (at /Users/amos/Dev/tests/mingw-debug-tests/otest.ooc:59)
11 __otest_closure343() in otest (at /Users/amos/Dev/tests/mingw-debug-tests/otest.ooc:42)
12 __otest_closure343_thunk() in otest (at /Users/amos/Dev/tests/mingw-debug-tests/otest.ooc:40)
13 loop() in lang/Abstractions (at /Users/amos/Dev/tests/mingw-debug-tests/rock_tmp/ooc/sdk/lang/Abstractions.c:2)
14 App run_impl() in otest (at /Users/amos/Dev/tests/mingw-debug-tests/rock_tmp/ooc/otest/otest.c:41)
15 App run() in otest (at /Users/amos/Dev/tests/mingw-debug-tests/otest.ooc:55)
16 main (at /Users/amos/Dev/tests/mingw-debug-tests/otest.ooc:1)
17 start (from /usr/lib/system/libdyld.dylib)
$ ./otest.exe
[backtrace]
0 ZwWaitForSingleObject (from C:\Windows\SysWOW64\ntdll.dll)
1 WaitForSingleObjectEx (from C:\Windows\syswow64\kernel32.dll)
2 WaitForSingleObject (from C:\Windows\syswow64\kernel32.dll)
3 backtrace_provoke (from C:\MinGW\msys\1.0\home\amwenger\Dev\mingw-debug-tests\backtrace.dll)
4 BacktraceHandler printBacktrace() in obacktrace (at C:/MinGW/msys/1.0/home/amwenger/Dev/mingw-debug-tests/obacktrace.ooc:85)
5 App run_impl() in otest (at C:/MinGW/msys/1.0/home/amwenger/Dev/mingw-debug-tests/otest.ooc:42)
6 App run() in otest (at C:/MinGW/msys/1.0/home/amwenger/Dev/mingw-debug-tests/otest.ooc:57)
7 main (at C:/MinGW/msys/1.0/home/amwenger/Dev/mingw-debug-tests/otest.ooc:1)
8 crt1.c (from C:\MinGW\msys\1.0\home\amwenger\Dev\mingw-debug-tests\otest.exe)
9 RtlInitializeExceptionChain (from C:\Windows\SysWOW64\ntdll.dll)
10 RtlInitializeExceptionChain (from C:\Windows\SysWOW64\ntdll.dll)
[OutOfBoundsException in ArrayList]: Trying to access an element at offset 0, but size is only 0!
[backtrace]
0 RaiseException (from C:\Windows\syswow64\KERNELBASE.dll)
1 Exception throw_impl() in lang/Exception (at C:/MinGW/msys/1.0/home/amwenger/Dev/rock/sdk/lang/Exception.ooc:212)
2 Exception throw() in lang/Exception (at C:/MinGW/msys/1.0/home/amwenger/Dev/rock/sdk/lang/Exception.ooc:253)
3 ArrayList get_impl() in structs/ArrayList (at C:/MinGW/msys/1.0/home/amwenger/Dev/rock/sdk/structs/ArrayList.ooc:84)
4 ArrayList get() in structs/ArrayList (at C:/MinGW/msys/1.0/home/amwenger/Dev/rock/sdk/structs/ArrayList.ooc:43)
5 __OP_IDX_ArrayList_Int__T() in structs/ArrayList (at C:/MinGW/msys/1.0/home/amwenger/Dev/rock/sdk/structs/ArrayList.ooc:292)
6 foo() in otest (at C:/MinGW/msys/1.0/home/amwenger/Dev/mingw-debug-tests/otest.ooc:22)
7 bar() in otest (at C:/MinGW/msys/1.0/home/amwenger/Dev/mingw-debug-tests/otest.ooc:27)
8 App runToo_impl() in otest (at C:/MinGW/msys/1.0/home/amwenger/Dev/mingw-debug-tests/otest.ooc:49)
9 App runToo() in otest (at C:/MinGW/msys/1.0/home/amwenger/Dev/mingw-debug-tests/otest.ooc:61)
10 __otest_closure328() in otest (at C:/MinGW/msys/1.0/home/amwenger/Dev/mingw-debug-tests/otest.ooc:44)
11 __otest_closure328_thunk() in otest (at C:/MinGW/msys/1.0/home/amwenger/Dev/mingw-debug-tests/otest.ooc:43)
12 loop() in lang/Abstractions (at C:/MinGW/msys/1.0/home/amwenger/Dev/rock/sdk/lang/Abstractions.ooc:2)
13 App run_impl() in otest (at C:/MinGW/msys/1.0/home/amwenger/Dev/mingw-debug-tests/otest.ooc:43)
14 App run() in otest (at C:/MinGW/msys/1.0/home/amwenger/Dev/mingw-debug-tests/otest.ooc:57)
15 main (at C:/MinGW/msys/1.0/home/amwenger/Dev/mingw-debug-tests/otest.ooc:1)
16 crt1.c (from C:\MinGW\msys\1.0\home\amwenger\Dev\mingw-debug-tests\otest.exe)
17 RtlInitializeExceptionChain (from C:\Windows\SysWOW64\ntdll.dll)
18 RtlInitializeExceptionChain (from C:\Windows\SysWOW64\ntdll.dll)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment