SHARE
TWEET

bug 1917 mono sgen segfault

a guest Apr 19th, 2012 32 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. From gdb:
  2.  
  3.  
  4. Core was generated by `./mono-sgen gc-test.exe'.
  5. Program terminated with signal 6, Aborted.
  6. #0  0x00007fb4485e0d05 in raise () from /lib/x86_64-linux-gnu/libc.so.6
  7. Mono support loaded.
  8. (gdb) where
  9. #0  0x00007fb4485e0d05 in raise () from /lib/x86_64-linux-gnu/libc.so.6
  10. #1  0x00007fb4485e4ab6 in abort () from /lib/x86_64-linux-gnu/libc.so.6
  11. #2  0x0000000000498305 in mono_handle_native_sigsegv (signal=<value optimized out>,
  12.     ctx=<value optimized out>) at mini-exceptions.c:2297
  13. #3  0x00000000004ec1bf in mono_arch_handle_altstack_exception (sigctx=0x7fb449337bc0,
  14.     fault_addr=<value optimized out>, stack_ovf=0) at exceptions-amd64.c:883
  15. #4  0x0000000000419819 in mono_sigsegv_signal_handler (_dummy=11, info=0x7fb449337cf0, context=
  16.     0x7fb449337bc0) at mini.c:6009
  17. #5  <signal handler called>
  18. #6  conservatively_pin_objects_from (start=0x0, end=0x7fb446afe000, start_nursery=0x7fb447900000,
  19.     end_nursery=0x7fb447a00000, pin_type=0) at sgen-gc.c:1434
  20. #7  0x00000000004b0b29 in conservative_pass (tls=<value optimized out>, stack_start=0x0, stack_end=
  21.     0x7fb446afe000 "") at mini-gc.c:1024
  22. #8  0x00000000005b01c2 in scan_thread_data (start_nursery=0x7fb447900000, end_nursery=0x7fb447a00000,
  23.     precise=0, queue=0x940c20) at sgen-gc.c:3890
  24. #9  0x00000000005b7b82 in collect_nursery (requested_size=<value optimized out>) at sgen-gc.c:2609
  25. #10 0x00000000005b87f8 in minor_collect_or_expand_inner (size=4096) at sgen-gc.c:3143
  26. #11 0x0000000000576c18 in mono_gc_alloc_obj_nolock (vtable=vtable(0xa50a88), size=<value optimized out>)
  27.     at sgen-alloc.c:277
  28. #12 0x0000000000576f8c in mono_gc_alloc_string (vtable=vtable(0xa50a88), size=32, len=3)
  29.     at sgen-alloc.c:510
  30. #13 0x000000000052586c in mono_string_new_size (domain=0xa33960, len=3) at object.c:4889
  31. #14 0x00000000409bfbba in ?? ()
  32. #15 0x0000000000aec4b0 in ?? ()
  33. #16 0x00007fb4479fff18 in ?? ()
  34. #17 0x0000000000000001 in ?? ()
  35. #18 0x00000000409bffac in ?? ()
  36. #19 0x0000000000000385 in ?? ()
  37. #20 0x00007fb446cfdaf0 in ?? ()
  38. #21 0x00007fb446cfd8a0 in ?? ()
  39. #22 0x00007fb4479ffde8 in ?? ()
  40. #23 0x00007fb4479f4aa8 in ?? ()
  41. #24 0x0000000000000000 in ?? ()
  42.  
  43. ---------------------------------------------------------------------------------------------------
  44.  
  45. Program output:
  46.  
  47. Allocated pinned chunk 0x7fb449340000, size: 131072
  48. Start nursery collection 0 0x7fb447900000-0x7fb447a00000, size: 1048576
  49. Scanning pinned roots (5008 bytes, 24/10 entries)
  50. Finding pinned pointers: 20 in 76 usecs
  51. Old generation scan: 10 usecs
  52. nursery generation done
  53. Finalize queue handling scan for nursery generation: 5 usecs 2 ephemeron roundss
  54. Fragment creation: 1 usecs, 1045912 bytes available
  55. Heap size: 2531424, LOS size: 16416
  56. restarted 2 thread(s) (pause time: 185 usec, max: 185)
  57. Start nursery collection 1 0x7fb447900000-0x7fb447a00000, size: 1048576
  58. Scanning pinned roots (6128 bytes, 26/10 entries)
  59. Finding pinned pointers: 17 in 23 usecs
  60. Old generation scan: 6 usecs
  61. nursery generation done
  62. Finalize queue handling scan for nursery generation: 3 usecs 2 ephemeron roundss
  63. Fragment creation: 1 usecs, 1046144 bytes available
  64. Heap size: 2539640, LOS size: 16416
  65. restarted 3 thread(s) (pause time: 204 usec, max: 204)
  66. Start nursery collection 2 0x7fb447900000-0x7fb447a00000, size: 1048576
  67. Scanning pinned roots (6128 bytes, 26/10 entries)
  68. Finding pinned pointers: 19 in 24 usecs
  69. Old generation scan: 5 usecs
  70. nursery generation done
  71. Finalize queue handling scan for nursery generation: 3 usecs 2 ephemeron roundss
  72. Fragment creation: 1 usecs, 1045592 bytes available
  73. Heap size: 2539640, LOS size: 16416
  74. restarted 3 thread(s) (pause time: 465 usec, max: 465)
  75. Start nursery collection 3 0x7fb447900000-0x7fb447a00000, size: 1048576
  76. Scanning pinned roots (6329 bytes, 30/10 entries)
  77. Finding pinned pointers: 19 in 37 usecs
  78. Old generation scan: 5 usecs
  79. nursery generation done
  80. Finalize queue handling scan for nursery generation: 2 usecs 2 ephemeron roundss
  81. Fragment creation: 1 usecs, 1045488 bytes available
  82. Heap size: 2539640, LOS size: 16416
  83. restarted 3 thread(s) (pause time: 104 usec, max: 465)
  84. Start nursery collection 4 0x7fb447900000-0x7fb447a00000, size: 1048576
  85. Scanning pinned roots (6433 bytes, 33/10 entries)
  86. Finding pinned pointers: 23 in 31 usecs
  87. Old generation scan: 5 usecs
  88. nursery generation done
  89. Finalize queue handling scan for nursery generation: 3 usecs 2 ephemeron roundss
  90. Fragment creation: 1 usecs, 1045552 bytes available
  91. Heap size: 2539640, LOS size: 16416
  92. restarted 3 thread(s) (pause time: 106 usec, max: 465)
  93. Start nursery collection 5 0x7fb447900000-0x7fb447a00000, size: 1048576
  94. Scanning pinned roots (6433 bytes, 33/10 entries)
  95. Finding pinned pointers: 21 in 37 usecs
  96. Old generation scan: 5 usecs
  97. nursery generation done
  98. Finalize queue handling scan for nursery generation: 3 usecs 2 ephemeron roundss
  99. Fragment creation: 1 usecs, 1045344 bytes available
  100. Heap size: 2539640, LOS size: 16416
  101. restarted 3 thread(s) (pause time: 103 usec, max: 465)
  102. Start nursery collection 6 0x7fb447900000-0x7fb447a00000, size: 1048576
  103. Scanning pinned roots (6505 bytes, 36/10 entries)
  104. Finding pinned pointers: 23 in 38 usecs
  105. Old generation scan: 5 usecs
  106. nursery generation done
  107. Finalize queue handling scan for nursery generation: 3 usecs 2 ephemeron roundss
  108. Fragment creation: 1 usecs, 1045200 bytes available
  109. Heap size: 2539640, LOS size: 16416
  110. restarted 3 thread(s) (pause time: 105 usec, max: 465)
  111. Start nursery collection 7 0x7fb447900000-0x7fb447a00000, size: 1048576
  112. Scanning pinned roots (6505 bytes, 36/10 entries)
  113. Finding pinned pointers: 25 in 39 usecs
  114. Old generation scan: 5 usecs
  115. nursery generation done
  116. Finalize queue handling scan for nursery generation: 3 usecs 2 ephemeron roundss
  117. Fragment creation: 1 usecs, 1044256 bytes available
  118. Heap size: 2539640, LOS size: 16416
  119. restarted 3 thread(s) (pause time: 119 usec, max: 465)
  120. Start nursery collection 8 0x7fb447900000-0x7fb447a00000, size: 1048576
  121. Scanning pinned roots (6505 bytes, 36/10 entries)
  122. Finding pinned pointers: 23 in 39 usecs
  123. Old generation scan: 5 usecs
  124. nursery generation done
  125. Finalize queue handling scan for nursery generation: 3 usecs 2 ephemeron roundss
  126. Fragment creation: 1 usecs, 1044616 bytes available
  127. Heap size: 2539640, LOS size: 16416
  128. restarted 3 thread(s) (pause time: 107 usec, max: 465)
  129. Start nursery collection 9 0x7fb447900000-0x7fb447a00000, size: 1048576
  130. Scanning pinned roots (6513 bytes, 37/10 entries)
  131. Finding pinned pointers: 21 in 48 usecs
  132. Old generation scan: 6 usecs
  133. nursery generation done
  134. Finalize queue handling scan for nursery generation: 3 usecs 2 ephemeron roundss
  135. Fragment creation: 1 usecs, 1044736 bytes available
  136. Heap size: 2539640, LOS size: 16416
  137. restarted 3 thread(s) (pause time: 120 usec, max: 465)
  138. Start nursery collection 10 0x7fb447900000-0x7fb447a00000, size: 1048576
  139. Scanning pinned roots (6521 bytes, 38/10 entries)
  140. Finding pinned pointers: 13 in 24 usecs
  141. Old generation scan: 6 usecs
  142. nursery generation done
  143. Finalize queue handling scan for nursery generation: 4 usecs 2 ephemeron roundss
  144. Fragment creation: 1 usecs, 1046488 bytes available
  145. Heap size: 2539640, LOS size: 16416
  146. restarted 3 thread(s) (pause time: 102 usec, max: 465)
  147. Start nursery collection 11 0x7fb447900000-0x7fb447a00000, size: 1048576
  148. Scanning pinned roots (6521 bytes, 38/10 entries)
  149. Finding pinned pointers: 14 in 26 usecs
  150. Old generation scan: 5 usecs
  151. nursery generation done
  152. Finalize queue handling scan for nursery generation: 2 usecs 2 ephemeron roundss
  153. Fragment creation: 0 usecs, 1045880 bytes available
  154. Heap size: 2539640, LOS size: 16416
  155. restarted 3 thread(s) (pause time: 891 usec, max: 891)
  156. Start nursery collection 12 0x7fb447900000-0x7fb447a00000, size: 1048576
  157. Scanning pinned roots (7577 bytes, 39/12 entries)
  158. Finding pinned pointers: 20 in 34 usecs
  159. Old generation scan: 7 usecs
  160. nursery generation done
  161. Finalize queue handling scan for nursery generation: 4 usecs 2 ephemeron roundss
  162. Fragment creation: 1 usecs, 1045976 bytes available
  163. Heap size: 2547856, LOS size: 16416
  164. restarted 4 thread(s) (pause time: 120 usec, max: 891)
  165. Start nursery collection 13 0x7fb447900000-0x7fb447a00000, size: 1048576
  166. Scanning pinned roots (7577 bytes, 39/12 entries)
  167. Stacktrace:
  168.  
  169.  
  170. Native stacktrace:
  171.  
  172.         ./mono-sgen() [0x498237]
  173.         ./mono-sgen() [0x4ec1bf]
  174.         ./mono-sgen() [0x419819]
  175.         /lib/x86_64-linux-gnu/libpthread.so.0(+0xfc60) [0x7fb448950c60]
  176.         ./mono-sgen() [0x5b0020]
  177.         ./mono-sgen() [0x4b0b29]
  178.         ./mono-sgen() [0x5b01c2]
  179.         ./mono-sgen() [0x5b7b82]
  180.         ./mono-sgen() [0x5b87f8]
  181.         ./mono-sgen() [0x576c18]
  182.         ./mono-sgen() [0x576f8c]
  183.         ./mono-sgen(mono_string_new_size+0x4c) [0x52586c]
  184.         [0x409bfbba]
  185.  
  186. Debug info from gdb:
  187.  
  188. Could not attach to process.  If your uid matches the uid of the target
  189. process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
  190. again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
  191. ptrace: Operation not permitted.
  192.  
  193. =================================================================
  194. Got a SIGSEGV while executing native code. This usually indicates
  195. a fatal error in the mono runtime or one of the native libraries
  196. used by your application.
  197. =================================================================
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top