<div dir="ltr">Thanks Siva. All the <b style="font-size:12.8px">DW_TAG_member </b><span style="font-size:12.8px">related errors </span><span style="font-size:12.8px">seems to go away after patching with your fix. The current problem is handling the decoding. </span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Here is the correct decoding from gdb whic might be useful:</span></div><div><div style="font-size:12.8px">(gdb) p corpus</div><div style="font-size:12.8px">$3 = (const std::string &) @0x7fd133cfb888: {</div><div style="font-size:12.8px">  static npos = 18446744073709551615, store_ = {</div><div style="font-size:12.8px">    static kIsLittleEndian = <optimized out>,</div><div style="font-size:12.8px">    static kIsBigEndian = <optimized out>, {</div><div style="font-size:12.8px">      small_ = "www", '\000' <repeats 20 times>, "\024", ml_ = {</div><div style="font-size:12.8px">        data_ = 0x777777 <std::_Any_data::_M_access<void folly::fibers::Baton::waitFiber<folly::fibers::FirstArgOf<facebook::servicerouter::RequestDispatcherBase<facebook::servicerouter::ThriftDispatcher>::prepareForSelection(facebook::servicerouter::DispatchContext&)::{lambda(folly::fibers::Promise<facebook::servicerouter::RequestDispatcherBase<facebook::servicerouter::ThriftDispatcher>::prepareForSelection(facebook::servicerouter::DispatchContext&)::SelectionResult>)#1}, void>::type::value_type folly::fibers::await<facebook::servicerouter::RequestDispatcherBase<facebook::servicerouter::ThriftDispatcher>::prepareForSelection(facebook::servicerouter::DispatchContext&)::{lambda(folly::fibers::Promise<facebook::servicerouter::RequestDispatcherBase<facebook::servicerouter::ThriftDispatcher>::prepareForSelection(facebook::servicerouter::DispatchContext&)::SelectionResult>)#1}>(folly::fibers::FirstArgOf&&)::{lambda()#1}>(folly::fibers::FiberManager&, folly::fibers::FirstArgOf<folly::fibers::FirstArgOf<facebook::servicerouter::RequestDispatcherBase<facebook::servicerouter::ThriftDispatcher>::prepareForSelection(facebook::servicerouter::DispatchContext&)::{lambda(folly::fibers::Promise<facebook::servicerouter::RequestDispatcherBase<facebook::servicerouter::ThriftDispatcher>::prepareForSelection(facebook::servicerouter::DispatchContext&)::SelectionResult>)#1}, void>::type::value_type folly::fibers::await<facebook::servicerouter::RequestDispatcherBase<facebook::servicerouter::ThriftDispatcher>::prepareForSelection(facebook::servicerouter::DispatchContext&)::{lambda(folly::fibers::Promise<facebook::servicerouter::RequestDispatcherBase<facebook::servicerouter::ThriftDispatcher>::prepareForSelection(facebook::servicerouter::DispatchContext&)::SelectionResult>)#1}>(folly::fibers::FirstArgOf&&)::{lambda()#1}, void>::type::value_type)::{lambda(folly::fibers::Fiber&)#1}*>() const+25> "\311\303UH\211\345H\211}\370H\213E\370]ÐUH\211\345H\203\354\020H\211}\370H\213E\370H\211\307\350~\264\312\377\220\311\303UH\211\345SH\203\354\030H\211}\350H\211u\340H\213E\340H\211\307\350\236\377\377\377H\213\030H\213E\350H\211\307\350O\264\312\377H\211ƿ\b", size_ = 0,</div><div style="font-size:12.8px">        capacity_ = 1441151880758558720}}}}</div><div><span style="font-size:12.8px"><br></span></div><div><div><span style="font-size:12.8px">Utf-16 does not seem to decode it, while 'latin-1' does:</span></div><div><div><span style="font-size:12.8px">>>> '\xc9'.decode('utf-16')</span></div><div><span style="font-size:12.8px">Traceback (most recent call last):</span></div><div><span style="font-size:12.8px">  File "<stdin>", line 1, in <module></span></div><div><span style="font-size:12.8px">  File "/mnt/gvfs/third-party2/python/55c1fd79d91c77c95932db31a4769919611c12bb/2.7.8/centos6-native/da39a3e/lib/python2.7/encodings/utf_16.py", line 16, in decode</span></div><div><span style="font-size:12.8px">    return codecs.utf_16_decode(input, errors, True)</span></div><div><span style="font-size:12.8px">UnicodeDecodeError: 'utf16' codec can't decode byte 0xc9 in position 0: truncated data</span></div><div><span style="font-size:12.8px">>>> '\xc9'.decode('latin-1')</span></div><div><span style="font-size:12.8px">u'\xc9'</span></div></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Instead of guessing what kind of decoding I should use, I would use 'ensure_ascii=False' to prevent the crash for now.</span></div></div></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I tried to reproduce this crash, but it seems that the crash might be related with some internal stl implementation we are using. I will see if I can narrow down to a small repro later. </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks</span></div><div><span style="font-size:12.8px">Jeffrey</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 27, 2016 at 2:49 PM, Siva Chandra <span dir="ltr"><<a href="mailto:sivachandra@gmail.com" target="_blank">sivachandra@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sat, Mar 26, 2016 at 11:58 PM, Jeffrey Tan <<a href="mailto:jeffrey.fudan@gmail.com">jeffrey.fudan@gmail.com</a>> wrote:<br>
> Btw: after patching with Siva's fix <a href="http://reviews.llvm.org/D18008" rel="noreferrer" target="_blank">http://reviews.llvm.org/D18008</a>, the<br>
> first field 'small_' is fixed, however the second field 'ml_' still emits<br>
> garbage:<br>
><br>
> (lldb) fr v corpus<br>
> (const string &const) corpus = error: summary string parsing error: {<br>
>   store_ = {<br>
>      = {<br>
>       small_ = "www"<br>
>       ml_ = (data_ =<br>
> "��UH\x89�H�}�H\x8bE�]ÐUH\x89�H��H\x89}�H\x8bE�H\x89��~\xb4��\x90��UH\x89�SH\x83�H\x89}�H�u�H�E�H���\x9e���H\x8b\x18H\x8bE�H���O\xb4��H\x89ƿ\b",<br>
> size_ = 0, capacity_ = 1441151880758558720)<br>
>     }<br>
>   }<br>
> }<br>
<br>
</span>Do you still see the DW_TAG_member related error?<br>
<br>
A wild (and really wild at that) guess: Is it utf16 data that is being<br>
decoded as utf8?<br>
<br>
As David Blaikie mentioned on the other thread, it would really help<br>
if you provide us with a minimal example to repro this. Atleast, repro<br>
instructions.<br>
</blockquote></div><br></div>