Bugs item #27432, was opened at 2009-11-13 11:08 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=27432&group_id=494
Category: memory Group: v0.5 >Status: Closed Resolution: Accepted Priority: 3 Submitted By: Mat Brown (outoftime) Assigned to: Charlie Savage (cfis) Summary: Segfault during garbage collection Initial Comment: Tracked down a persistent segfault during big Solr reindexes (using libxml-ruby to build the Solr docs) to libxml-ruby. These operations involve building thousands of XML messages and the segfault generally occurs at an unpredictable time during the operation. We're linking against libxml2 2.6.32 I hope this is helpful - I'm no C expert - but here is the backtrace from the core dump: #0 0x00000035c2a30215 in raise () from /lib64/libc.so.6 #1 0x00000035c2a31cc0 in abort () from /lib64/libc.so.6 #2 0x000000000049729c in rb_bug () #3 0x000000000047495d in ?? () #4 <signal handler called> #5 0x000000000042f577 in ?? () #6 0x000000000042f60f in rb_gc_mark () #7 0x00002b8f12be0db9 in rxml_node_mark (xnode=0x195ad980) at ruby_xml_node.c:82 #8 0x00002b8f12bdc463 in rxml_attributes_mark (xnode=0x44) at ruby_xml_attributes.c:39 #9 0x000000000042fa73 in ?? () #10 0x000000000042f5f2 in ?? () #11 0x000000000042f3a9 in ?? () #12 0x000000000042f3d6 in rb_gc_mark_locations () #13 0x00000000004252a4 in ?? () #14 0x000000000042fa73 in ?? () #15 0x000000000042f5f2 in ?? () #16 0x000000000042f3e9 in ?? () #17 0x000000000047764d in st_foreach () #18 0x000000000042f40b in ?? () #19 0x000000000042fa89 in ?? () #20 0x000000000042f5f2 in ?? () #21 0x000000000042f3e9 in ?? () #22 0x000000000047764d in st_foreach () #23 0x000000000042f40b in ?? () #24 0x000000000042fa89 in ?? () #25 0x000000000042f5f2 in ?? () #26 0x000000000042f3e9 in ?? () #27 0x000000000047764d in st_foreach () #28 0x000000000042f40b in ?? () #29 0x000000000042f9be in ?? () #30 0x000000000042f5f2 in ?? () #31 0x000000000042f97c in ?? () #32 0x000000000042f5f2 in ?? () #33 0x000000000042f715 in ?? () #34 0x000000000042f5f2 in ?? () #35 0x000000000042f3e9 in ?? () #36 0x000000000047764d in st_foreach () #37 0x000000000042f40b in ?? () #38 0x000000000042f9ad in ?? () #39 0x000000000042f5f2 in ?? () #40 0x000000000042f97c in ?? () #41 0x000000000042f5f2 in ?? () #42 0x000000000042f715 in ?? () #43 0x000000000042f5f2 in ?? () #44 0x000000000042f3e9 in ?? () #45 0x000000000047764d in st_foreach () #46 0x000000000042f40b in ?? () #47 0x000000000042f9ad in ?? () #48 0x000000000042f5f2 in ?? () #49 0x000000000042f97c in ?? () #50 0x000000000042f5f2 in ?? () #51 0x000000000042f715 in ?? () #52 0x000000000042f5f2 in ?? () #53 0x000000000042f3e9 in ?? () #54 0x000000000047764d in st_foreach () #55 0x000000000042f40b in ?? () #56 0x000000000042f9ad in ?? () #57 0x000000000042f5f2 in ?? () #58 0x000000000042f3e9 in ?? () #59 0x000000000047764d in st_foreach () #60 0x000000000042f40b in ?? () #61 0x000000000042f9be in ?? () #62 0x000000000042f5f2 in ?? () #63 0x000000000042f97c in ?? () #64 0x000000000042f5f2 in ?? () #65 0x000000000042f97c in ?? () #66 0x000000000042f5f2 in ?? () #67 0x000000000042f97c in ?? () #68 0x000000000042f5f2 in ?? () #69 0x000000000042f715 in ?? () #70 0x000000000042f5f2 in ?? () #71 0x000000000042f715 in ?? () #72 0x000000000042f5f2 in ?? () #73 0x000000000042f715 in ?? () #74 0x000000000042f5f2 in ?? () #75 0x0000000000430545 in rb_gc_mark_frame () #76 0x00000000004305f0 in ?? () #77 0x000000000042eb41 in ruby_xmalloc () #78 0x0000000000421982 in ?? () #79 0x0000000000421a2e in ?? () #80 0x0000000000422108 in ?? () #81 0x000000000042221b in rb_block_proc () #82 0x00000000004174b5 in ?? () #83 0x000000000041cd71 in ?? () #84 0x000000000041d284 in ?? () #85 0x000000000041660b in ?? () #86 0x000000000041546d in ?? () #87 0x00000000004171af in ?? () #88 0x000000000041cd71 in ?? () #89 0x000000000041d284 in ?? () #90 0x000000000041d47c in ?? () #91 0x000000000041c30e in ?? () #92 0x000000000041d284 in ?? () #93 0x00000000004163bf in ?? () #94 0x000000000041cd71 in ?? () #95 0x000000000041d284 in ?? () #96 0x000000000041660b in ?? () #97 0x0000000000419d42 in ?? () #98 0x000000000041a111 in rb_yield () #99 0x000000000048b3ff in ?? () #100 0x000000000041c322 in ?? () #101 0x000000000041d284 in ?? () #102 0x00000000004163bf in ?? () #103 0x000000000041546d in ?? () #104 0x000000000041cd71 in ?? () #105 0x000000000041d284 in ?? () #106 0x000000000041660b in ?? () #107 0x00000000004171af in ?? () #108 0x0000000000414855 in ?? () #109 0x000000000041cd71 in ?? () #110 0x000000000041d284 in ?? () #111 0x000000000041660b in ?? () #112 0x000000000041cd71 in ?? () #113 0x000000000041d284 in ?? () #114 0x00000000004163bf in ?? () #115 0x000000000041cd71 in ?? () #116 0x000000000041d284 in ?? () #117 0x0000000000416696 in ?? () #118 0x0000000000417278 in ?? () #119 0x0000000000415937 in ?? () #120 0x000000000041cd71 in ?? () #121 0x000000000041d284 in ?? () #122 0x0000000000416696 in ?? () #123 0x0000000000414b55 in ?? () #124 0x000000000041cd71 in ?? () #125 0x000000000041d284 in ?? () #126 0x000000000041d9fd in rb_call_super () #127 0x00000000004169d6 in ?? () #128 0x000000000041546d in ?? () #129 0x000000000041cd71 in ?? () #130 0x000000000041d284 in ?? () #131 0x000000000041660b in ?? () #132 0x0000000000422e74 in ?? () #133 0x00000000004151fc in ?? () #134 0x0000000000415e39 in ?? () #135 0x000000000041cd71 in ?? () #136 0x000000000041d284 in ?? () #137 0x000000000041d8a9 in rb_funcall2 () #138 0x000000000041b921 in ?? () #139 0x000000000041d0d8 in ?? () #140 0x00000000004163bf in ?? () #141 0x000000000041546d in ?? () #142 0x0000000000419d42 in ?? () #143 0x000000000041eaff in ?? () #144 0x000000000041e91f in ?? () #145 0x000000000041eb24 in ?? () #146 0x000000000041eb93 in ?? () #147 0x000000000041ecf4 in rb_obj_instance_eval () #148 0x000000000041c30e in ?? () #149 0x000000000041d284 in ?? () #150 0x00000000004163bf in ?? () #151 0x0000000000422e74 in ?? () #152 0x00000000004151fc in ?? () #153 0x000000000041cd71 in ?? () #154 0x000000000041d284 in ?? () #155 0x00000000004163bf in ?? () #156 0x0000000000422e74 in ?? () #157 0x00000000004151fc in ?? () #158 0x000000000041cd71 in ?? () #159 0x000000000041d284 in ?? () #160 0x000000000041660b in ?? () #161 0x000000000041546d in ?? () #162 0x0000000000419d42 in ?? () #163 0x000000000041eaff in ?? () #164 0x000000000041e91f in ?? () #165 0x000000000041eb24 in ?? () #166 0x000000000041eb93 in ?? () #167 0x000000000041ecf4 in rb_obj_instance_eval () #168 0x000000000041c30e in ?? () #169 0x000000000041d284 in ?? () #170 0x00000000004163bf in ?? () #171 0x0000000000422e74 in ?? () #172 0x00000000004151fc in ?? () #173 0x000000000041cd71 in ?? () #174 0x000000000041d284 in ?? () #175 0x000000000041d8a9 in rb_funcall2 () #176 0x00000000004206c8 in rb_obj_call_init () #177 0x0000000000445d39 in rb_class_new_instance () #178 0x000000000041c30e in ?? () #179 0x000000000041d284 in ?? () #180 0x00000000004163bf in ?? () #181 0x0000000000422e74 in ?? () #182 0x00000000004151fc in ?? () #183 0x0000000000417278 in ?? () #184 0x000000000041cd71 in ?? () #185 0x000000000041d284 in ?? () #186 0x000000000041d8a9 in rb_funcall2 () #187 0x00000000004206c8 in rb_obj_call_init () #188 0x0000000000445d39 in rb_class_new_instance () #189 0x000000000041c30e in ?? () #190 0x000000000041d284 in ?? () #191 0x00000000004163bf in ?? () #192 0x0000000000422e74 in ?? () #193 0x00000000004151fc in ?? () #194 0x000000000041cd71 in ?? () #195 0x000000000041d284 in ?? () #196 0x00000000004163bf in ?? () #197 0x000000000041546d in ?? () #198 0x00000000004161d7 in ?? () #199 0x00000000004161d7 in ?? () #200 0x000000000041546d in ?? () #201 0x0000000000417278 in ?? () #202 0x000000000041cd71 in ?? () #203 0x000000000041d284 in ?? () #204 0x000000000041d47c in ?? () #205 0x000000000041c30e in ?? () #206 0x000000000041d284 in ?? () #207 0x00000000004163bf in ?? () #208 0x000000000041cd71 in ?? () #209 0x000000000041d284 in ?? () #210 0x00000000004163bf in ?? () #211 0x00000000004171af in ?? () #212 0x00000000004161d7 in ?? () #213 0x0000000000414b55 in ?? () #214 0x000000000041cd71 in ?? () #215 0x000000000041d284 in ?? () #216 0x00000000004163bf in ?? () #217 0x0000000000419d42 in ?? () #218 0x000000000041a111 in rb_yield () #219 0x000000000048a902 in rb_ary_each () #220 0x000000000041c322 in ?? () #221 0x000000000041d284 in ?? () #222 0x0000000000415593 in ?? () #223 0x000000000041cd71 in ?? () #224 0x000000000041d284 in ?? () #225 0x000000000041660b in ?? () #226 0x0000000000419d42 in ?? () #227 0x000000000041a111 in rb_yield () #228 0x000000000048b3b7 in ?? () #229 0x000000000041c322 in ?? () #230 0x000000000041d284 in ?? () #231 0x00000000004163bf in ?? () #232 0x000000000041546d in ?? () #233 0x00000000004171af in ?? () #234 0x000000000041cd71 in ?? () #235 0x000000000041d284 in ?? () #236 0x000000000041660b in ?? () #237 0x0000000000419d42 in ?? () #238 0x000000000041586a in ?? () #239 0x000000000041cd71 in ?? () #240 0x000000000041d284 in ?? () #241 0x00000000004163bf in ?? () #242 0x0000000000422e74 in ?? () #243 0x00000000004151fc in ?? () #244 0x00000000004161d7 in ?? () #245 0x00000000004161d7 in ?? () #246 0x00000000004177c4 in ?? () #247 0x000000000041781a in ?? () #248 0x00000000004171af in ?? () #249 0x000000000041cd71 in ?? () #250 0x000000000041d284 in ?? () #251 0x000000000041660b in ?? () #252 0x000000000041546d in ?? () #253 0x000000000041cd71 in ?? () #254 0x000000000041d284 in ?? () #255 0x00000000004163bf in ?? () #256 0x000000000041cd71 in ?? () #257 0x000000000041d284 in ?? () #258 0x000000000041660b in ?? () #259 0x000000000041cd71 in ?? () #260 0x000000000041d284 in ?? () #261 0x00000000004163bf in ?? () #262 0x000000000041cd71 in ?? () #263 0x000000000041d284 in ?? () #264 0x00000000004163bf in ?? () #265 0x0000000000419d42 in ?? () #266 0x000000000041586a in ?? () #267 0x0000000000414fb0 in ?? () #268 0x0000000000419d42 in ?? () #269 0x000000000041586a in ?? () #270 0x0000000000415b4a in ?? () #271 0x000000000041cd71 in ?? () #272 0x000000000041d284 in ?? () #273 0x000000000041660b in ?? () #274 0x000000000041546d in ?? () #275 0x000000000041cd71 in ?? () #276 0x000000000041d284 in ?? () #277 0x000000000041660b in ?? () #278 0x000000000041546d in ?? () #279 0x000000000041cd71 in ?? () #280 0x000000000041d284 in ?? () #281 0x00000000004163bf in ?? () #282 0x0000000000415937 in ?? () #283 0x0000000000419d42 in ?? () #284 0x000000000041a111 in rb_yield () #285 0x000000000048a902 in rb_ary_each () #286 0x000000000041c322 in ?? () #287 0x000000000041d284 in ?? () #288 0x00000000004163bf in ?? () #289 0x000000000041546d in ?? () #290 0x0000000000419d42 in ?? () #291 0x0000000000422642 in ?? () #292 0x0000000000422803 in ?? () #293 0x000000000041c2ff in ?? () #294 0x000000000041d284 in ?? () #295 0x00000000004163bf in ?? () #296 0x0000000000419d42 in ?? () #297 0x000000000041a111 in rb_yield () #298 0x000000000048a902 in rb_ary_each () #299 0x000000000041c322 in ?? () #300 0x000000000041d284 in ?? () #301 0x00000000004163bf in ?? () #302 0x000000000041546d in ?? () #303 0x000000000041cd71 in ?? () #304 0x000000000041d284 in ?? () #305 0x000000000041660b in ?? () #306 0x0000000000419d42 in ?? () #307 0x000000000041586a in ?? () #308 0x0000000000415b4a in ?? () #309 0x000000000041cd71 in ?? () #310 0x000000000041d284 in ?? () #311 0x00000000004163bf in ?? () #312 0x000000000041546d in ?? () #313 0x000000000041cd71 in ?? () #314 0x000000000041d284 in ?? () #315 0x000000000041660b in ?? () #316 0x000000000041cd71 in ?? () #317 0x000000000041d284 in ?? () #318 0x00000000004163bf in ?? () #319 0x000000000041cd71 in ?? () #320 0x000000000041d284 in ?? () #321 0x000000000041660b in ?? () #322 0x0000000000419d42 in ?? () #323 0x000000000041a111 in rb_yield () #324 0x000000000048a902 in rb_ary_each () #325 0x000000000041c322 in ?? () #326 0x000000000041d284 in ?? () #327 0x00000000004163bf in ?? () #328 0x000000000041546d in ?? () #329 0x0000000000419d42 in ?? () #330 0x000000000041586a in ?? () #331 0x0000000000415937 in ?? () #332 0x000000000041cd71 in ?? () #333 0x000000000041d284 in ?? () #334 0x000000000041660b in ?? () #335 0x000000000041546d in ?? () #336 0x000000000041cd71 in ?? () #337 0x000000000041d284 in ?? () #338 0x0000000000416696 in ?? () #339 0x0000000000419d42 in ?? () #340 0x000000000041586a in ?? () #341 0x0000000000415937 in ?? () #342 0x000000000041cd71 in ?? () #343 0x000000000041d284 in ?? () #344 0x000000000041660b in ?? () #345 0x000000000041546d in ?? () #346 0x000000000041cd71 in ?? () #347 0x000000000041d284 in ?? () #348 0x00000000004163bf in ?? () #349 0x000000000041188f in ?? () #350 0x000000000041f178 in rb_load () #351 0x000000000041f4ea in ?? () #352 0x000000000041c30e in ?? () #353 0x000000000041d284 in ?? () #354 0x000000000041660b in ?? () #355 0x000000000041188f in ?? () #356 0x0000000000411fc3 in ?? () #357 0x000000000041200f in ruby_exec () #358 0x0000000000412033 in ruby_run () #359 0x000000000040fd79 in main () ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2011-05-02 00:29 Message: Hi Mat, I am going to close this issue since I believe it is fixed. Please reopen on Github if needed. See https://github.com/xml4r/libxml-ruby Thanks - Charlie ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2011-04-22 21:48 Message: I realize this is pretty old now - but do you still see this with the latest release? Charlie ---------------------------------------------------------------------- Comment By: Niel Drummond (cyanescent) Date: 2010-01-02 17:20 Message: you need to recompile libxml2 (and libxml-ruby) with debug flags enabled for your backtrace to become useful. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=27432&group_id=494 _______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel