Wow, same issue over here, 7 years later practically to the day! Your comment was a major hint at where to look (uninitialized/experimental/unused vars are definitely a known weakness of my team).
On Monday, February 6, 2012 at 9:54:19 PM UTC-5, Robby Zinchak wrote: > > Ah, thank you very much Evan. > > It turned out to be an uninitialized boolean. Properly setting the value > in question seems to allow things to proceed normally. > > Thanks again, > Robby > > On Mon, Feb 6, 2012 at 11:09 AM, Evan Jones <[email protected] > <javascript:>> wrote: > >> This is weird. I don't see any clear potential cause, so I have a few >> questions: >> >> > HTMud::EnvAdd item; >> > item.set_id(ID); >> > item.set_idtype(typeID); >> > item.set_x(X); >> > item.set_y(Y); >> > item.set_z(Z); >> > item.set_lockdown(lockdown); >> > item.set_mapid(map); >> > item.set_tilesetno(tilesetNo); >> > item.set_tilesetx(tilesetX); >> > item.set_regionx(regionX); >> > item.set_regiony(regionZ); >> >> >> Are all these values primitives? Are any of them protocol buffers? >> >> Have you tried dumping the values that are being set when it dies, and >> trying a standalone program that sets the values and calls >> SerializeToString to see if it has the same problem? >> >> Have you made any changes to the protocol buffers library? I'm assuming >> you are using the released version of 2.4.1? >> >> Have you tried running this under valgrind? I'm wondering if there could >> be other weird memory corruption that is happening? That seems to be a >> frequent cause of "this shouldn't be happening" type errors, particularly >> things that appear/disappear occur with optimization enabled/disabled. >> >> Evan >> >> -- >> http://evanjones.ca/ >> >> > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
