Advertisement
Guest User

Untitled

a guest
Oct 7th, 2021
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.77 KB | None | 0 0
  1. $ gdb --args wasmtime -g ./test.wasm
  2. GNU gdb (GDB) 12.0.50.20211007-git
  3. Copyright (C) 2021 Free Software Foundation, Inc.
  4. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  5. This is free software: you are free to change and redistribute it.
  6. There is NO WARRANTY, to the extent permitted by law.
  7. Type "show copying" and "show warranty" for details.
  8. This GDB was configured as "x86_64-pc-linux-gnu".
  9. Type "show configuration" for configuration details.
  10. For bug reporting instructions, please see:
  11. <https://www.gnu.org/software/gdb/bugs/>.
  12. Find the GDB manual and other documentation resources online at:
  13. <http://www.gnu.org/software/gdb/documentation/>.
  14.  
  15. For help, type "help".
  16. Type "apropos word" to search for commands related to "word"...
  17. Reading symbols from wasmtime...
  18. (gdb) b test.cpp:7
  19. No source file named test.cpp.
  20. Make breakpoint pending on future shared library load? (y or [n]) y
  21. Breakpoint 1 (test.cpp:7) pending.
  22. (gdb) r
  23. Starting program: /home/x/dev/tools/wasmtime -g ./test.wasm
  24. [Thread debugging using libthread_db enabled]
  25. Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  26. [New Thread 0x7ffff7a14640 (LWP 85266)]
  27. [New Thread 0x7ffff7813640 (LWP 85267)]
  28. [New Thread 0x7ffff7612640 (LWP 85268)]
  29. [New Thread 0x7ffff740e640 (LWP 85269)]
  30. [New Thread 0x7ffff720a640 (LWP 85270)]
  31. [New Thread 0x7ffff7006640 (LWP 85271)]
  32. [New Thread 0x7ffff6e02640 (LWP 85272)]
  33. [New Thread 0x7ffff6bfe640 (LWP 85273)]
  34. [New Thread 0x7ffff69fa640 (LWP 85274)]
  35. [New Thread 0x7ffff67f6640 (LWP 85275)]
  36. [New Thread 0x7ffff65f2640 (LWP 85276)]
  37. [New Thread 0x7ffff63ee640 (LWP 85277)]
  38. [New Thread 0x7ffff61ea640 (LWP 85278)]
  39. warning: Loadable section ".eh_frame" outside of ELF segments
  40. in <in-memory>
  41. warning: Loadable section ".wasmtime.addrmap" outside of ELF segments
  42. in <in-memory>
  43. warning: Loadable section ".wasmtime.traps" outside of ELF segments
  44. in <in-memory>
  45. warning: Loadable section ".rodata.wasm" outside of ELF segments
  46. in <in-memory>
  47. warning: Loadable section ".wasmtime.info" outside of ELF segments
  48. in <in-memory>
  49.  
  50. Thread 1 "wasmtime" hit Breakpoint 1, Thing::Thing (this=..., i=5) at ./test.cpp:8
  51. 8 m_i = i;
  52. (gdb) p __vmctx->set()
  53. gdbtypes.c:2880: internal-error: type* check_typedef(type*): Assertion `type' failed.
  54. A problem internal to GDB has been detected,
  55. further debugging may prove unreliable.
  56. ----- Backtrace -----
  57. 0x55bb3b31f8d1 gdb_internal_backtrace_1
  58. /home/x/dev/binutils-gdb/gdb/bt-utils.c:121
  59. 0x55bb3b31f8d1 _Z22gdb_internal_backtracev
  60. /home/x/dev/binutils-gdb/gdb/bt-utils.c:164
  61. 0x55bb3b6c17dc internal_vproblem
  62. /home/x/dev/binutils-gdb/gdb/utils.c:393
  63. 0x55bb3b6c1a70 _Z15internal_verrorPKciS0_P13__va_list_tag
  64. /home/x/dev/binutils-gdb/gdb/utils.c:470
  65. 0x55bb3b7e36d4 _Z14internal_errorPKciS0_z
  66. /home/x/dev/binutils-gdb/gdbsupport/errors.cc:55
  67. 0x55bb3b4626e5 _Z13check_typedefP4type
  68. /home/x/dev/binutils-gdb/gdb/gdbtypes.c:2880
  69. 0x55bb3b398c51 cp_lookup_bare_symbol
  70. /home/x/dev/binutils-gdb/gdb/cp-namespace.c:223
  71. 0x55bb3b3997ca lookup_namespace_scope
  72. /home/x/dev/binutils-gdb/gdb/cp-namespace.c:719
  73. 0x55bb3b39985f _Z25cp_lookup_symbol_nonlocalPK13language_defnPKcPK5block15domain_enum_tag
  74. /home/x/dev/binutils-gdb/gdb/cp-namespace.c:754
  75. 0x55bb3b62a446 lookup_symbol_aux
  76. /home/x/dev/binutils-gdb/gdb/symtab.c:2125
  77. 0x55bb3b62a5a3 _Z25lookup_symbol_in_languagePKcPK5block15domain_enum_tag8languageP20field_of_this_result
  78. /home/x/dev/binutils-gdb/gdb/symtab.c:1920
  79. 0x55bb3b32a68f classify_name
  80. /home/x/dev/binutils-gdb/gdb/c-exp.y:3069
  81. 0x55bb3b32c9a7 c_yylex
  82. /home/x/dev/binutils-gdb/gdb/c-exp.y:3277
  83. 0x55bb3b32d409 _Z9c_yyparsev
  84. /home/x/dev/binutils-gdb/gdb/c-exp.c.tmp:2037
  85. 0x55bb3b335a12 _Z7c_parseP12parser_state
  86. /home/x/dev/binutils-gdb/gdb/c-exp.y:3443
  87. 0x55bb3b54c9ab parse_exp_in_context
  88. /home/x/dev/binutils-gdb/gdb/parse.c:510
  89. 0x55bb3b54cd0a _Z16parse_expressionPKcP23innermost_block_trackerb
  90. /home/x/dev/binutils-gdb/gdb/parse.c:546
  91. 0x55bb3b551563 process_print_command_args
  92. /home/x/dev/binutils-gdb/gdb/printcmd.c:1311
  93. 0x55bb3b551abf print_command_1
  94. /home/x/dev/binutils-gdb/gdb/printcmd.c:1325
  95. 0x55bb3b357664 _Z8cmd_funcP16cmd_list_elementPKci
  96. cli/cli-decode.c:2459
  97. 0x55bb3b669020 _Z15execute_commandPKci
  98. /home/x/dev/binutils-gdb/gdb/top.c:670
  99. 0x55bb3b42a904 _Z15command_handlerPKc
  100. /home/x/dev/binutils-gdb/gdb/event-top.c:597
  101. 0x55bb3b42ac90 _Z20command_line_handlerOSt10unique_ptrIcN3gdb13xfree_deleterIcEEE
  102. /home/x/dev/binutils-gdb/gdb/event-top.c:782
  103. 0x55bb3b42b3f1 gdb_rl_callback_handler
  104. /home/x/dev/binutils-gdb/gdb/event-top.c:229
  105. 0x55bb3b7065b7 rl_callback_read_char
  106. /home/x/dev/binutils-gdb/readline/readline/callback.c:281
  107. 0x55bb3b429a85 gdb_rl_callback_read_char_wrapper_noexcept
  108. /home/x/dev/binutils-gdb/gdb/event-top.c:187
  109. 0x55bb3b42b2a4 gdb_rl_callback_read_char_wrapper
  110. /home/x/dev/binutils-gdb/gdb/event-top.c:204
  111. 0x55bb3b429667 _Z19stdin_event_handleriPv
  112. /home/x/dev/binutils-gdb/gdb/event-top.c:524
  113. 0x55bb3b7e3f65 gdb_wait_for_event
  114. /home/x/dev/binutils-gdb/gdbsupport/event-loop.cc:701
  115. 0x55bb3b7e420c gdb_wait_for_event
  116. /home/x/dev/binutils-gdb/gdbsupport/event-loop.cc:597
  117. 0x55bb3b7e420c _Z16gdb_do_one_eventv
  118. /home/x/dev/binutils-gdb/gdbsupport/event-loop.cc:237
  119. 0x55bb3b4f46f4 start_event_loop
  120. /home/x/dev/binutils-gdb/gdb/main.c:421
  121. 0x55bb3b4f46f4 captured_command_loop
  122. /home/x/dev/binutils-gdb/gdb/main.c:481
  123. 0x55bb3b4f6384 captured_main
  124. /home/x/dev/binutils-gdb/gdb/main.c:1348
  125. 0x55bb3b4f6384 _Z8gdb_mainP18captured_main_args
  126. /home/x/dev/binutils-gdb/gdb/main.c:1363
  127. 0x55bb3b2873ef main
  128. /home/x/dev/binutils-gdb/gdb/gdb.c:32
  129. ---------------------
  130. gdbtypes.c:2880: internal-error: type* check_typedef(type*): Assertion `type' failed.
  131. A problem internal to GDB has been detected,
  132. further debugging may prove unreliable.
  133.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement