Guest User

Untitled

a guest
Apr 21st, 2018
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. gauss:rubinius brian$ gdb --args vm/vm -Xint --melbourne mspec/bin/mspec-ci --ast -B full
  2. GNU gdb 6.3.50-20050815 (Apple version gdb-966) (Tue Mar 10 02:43:13 UTC 2009)
  3. Copyright 2004 Free Software Foundation, Inc.
  4. GDB is free software, covered by the GNU General Public License, and you are
  5. welcome to change it and/or distribute copies of it under certain conditions.
  6. Type "show copying" to see the conditions.
  7. There is absolutely no warranty for GDB. Type "show warranty" for details.
  8. This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries ..... done
  9.  
  10. (gdb) r
  11. Starting program: /Users/brian/devel/rubinius/vm/vm -Xint --melbourne mspec/bin/mspec-ci --ast -B full
  12. Reading symbols for shared libraries ++++. done
  13. Reading symbols for shared libraries . done
  14. ...................................................................................................................................................................................................................
  15. Program received signal EXC_BAD_ACCESS, Could not access memory.
  16. Reason: KERN_INVALID_ADDRESS at address: 0x2f737568
  17. 0x00050727 in rubinius::ObjectHeader::forwarded_p (this=0x13984d8) at oop.hpp:365
  18. 365 return flags().Forwarded == 1;
  19. (gdb) in thr
  20. Ambiguous command "in thr": info, inspect, internals, interpreter-exec, interrupt.
  21. (gdb) info thr
  22. Ambiguous info command "thr": thread, threads.
  23. (gdb) info thread
  24. Thread 0x813 (local 0x2e03) has current state "WAITING"
  25. Thread 0x813 has a suspend count of 0.
  26. (gdb) info threads
  27. 3 process 23116 thread 0x1003 0x955ce46e in __semwait_signal ()
  28. 2 process 23116 thread 0x313 0x955ce46e in __semwait_signal ()
  29. * 1 process 23116 local thread 0x2e03 0x00050727 in rubinius::ObjectHeader::forwarded_p (this=0x13984d8) at oop.hpp:365
  30. (gdb) info thread 2
  31. Thread 0x313 (local 0x3503) has current state "WAITING"
  32. Thread 0x313 has a suspend count of 0.
  33. (gdb) info thread 3
  34. Thread 0x1003 (local 0x3603) has current state "WAITING"
  35. Thread 0x1003 has a suspend count of 0.
  36. (gdb) bt 5
  37. #0 0x00050727 in rubinius::ObjectHeader::forwarded_p (this=0x13984d8) at oop.hpp:365
  38. #1 0x00154aee in rubinius::BakerGC::find_lost_souls (this=0x1110b70) at vm/gc/baker.cpp:298
  39. #2 0x001552ff in rubinius::BakerGC::collect (this=0x1110b70, data=@0xbfff02dc, stats=0xbfff02c4) at vm/gc/baker.cpp:209
  40. #3 0x00067d50 in rubinius::ObjectMemory::collect_young (this=0x1110a60, data=@0xbfff02dc, stats=0xbfff02c4) at vm/objectmemory.cpp:131
  41. #4 0x000fa8e8 in rubinius::VM::collect_maybe (this=0x1100e80, call_frame=0xbfff0aa0) at vm/vm.cpp:276
  42. (More stack frames follow...)
  43. (gdb) l
  44. 365 return flags().Forwarded == 1;
  45. 366 }
  46. 367
  47. 368 void clear_forwarded() {
  48. 369 flags().Forwarded = 0;
  49. 370 }
  50. 371
  51. 372 Object* forward() {
  52. 373 return ivars_;
  53. 374 }
  54. (gdb) fr 1
  55. #1 0x00154aee in rubinius::BakerGC::find_lost_souls (this=0x1110b70) at vm/gc/baker.cpp:298
  56. 298 if(!obj->forwarded_p()) {
  57. (gdb) l
  58. 293 obj = next_object(obj);
  59. 294 }
  60. 295
  61. 296 obj = eden.first_object();
  62. 297 while(obj < eden.current()) {
  63. 298 if(!obj->forwarded_p()) {
  64. 299 #ifdef RBX_GC_STATS
  65. 300 stats::GCStats::get()->lifetimes[obj->age()]++;
  66. 301 #endif
  67. 302 }
  68. (gdb) p obj
  69. $1 = (class rubinius::Object *) 0x13984d8
  70. (gdb) p eden
  71. $2 = {
  72. start_ = 0x1300000,
  73. current_ = 0x15ffa18,
  74. last_ = 0x15fffff,
  75. scan_ = 0x1300000,
  76. limit_ = 0x15ff3b6,
  77. size_ = 3145728
  78. }
  79. (gdb) p eden.first_object()
  80. $3 = (class rubinius::Object *) 0x1300000
  81. (gdb) p eden.current() - eden.last_object()
  82. Couldn't find method rubinius::Heap::last_object
  83. (gdb) p 0x15ffa18 - 0x15fffff
  84. $4 = -1511
  85. (gdb) p 0x15ffa18 - 0x13984d8
  86. $5 = 2520384
  87. (gdb) p *obj
  88. $6 = {
  89. <rubinius::ObjectHeader> = {
  90. header = {
  91. f = {
  92. inflated = 1,
  93. obj_type = 180,
  94. zone = rubinius::MatureObjectZone,
  95. age = 14,
  96. Forwarded = 0,
  97. Remember = 1,
  98. Marked = 1,
  99. RequiresCleanup = 0,
  100. InImmix = 1,
  101. Pinned = 1
  102. },
  103. all_flags = 0x2f737569
  104. },
  105. klass_ = 0x63657073,
  106. ivars_ = 0x6f72662f,
  107. __body__ = 0x13984e4
  108. },
  109. members of rubinius::Object:
  110. static type = <optimized out>
  111. }
Add Comment
Please, Sign In to add comment