On Mon, Dec 23, 2019 at 11:42 PM Jeroen Ooms <[email protected]> wrote: > > Hi! > > I maintain v8 bindings for the R programming language. As of recently (I > think 7.9) we started getting segfaults at calls to IsUndefined() and > IsNull(). The problem has gotten more prevalent in 8.1. We're encountered > this both on MacOS and Arch Linux. > > To produce a minimal example, simply take the official hello-world.cc and add > something like: > > if(result->IsUndefined()){ > printf("value is undefined!"); > } > > Attached a full sample program. Same problem happens for IsNull() and > IsNullOrUndefined(). It does not crash when we compile with > -DV8_ENABLE_CHECKS which enables an alternative implementation of IsUndefined.
Your test case looks okay to me. With what specific version(s) are you seeing this, does it also reproduce with a debug build of V8 and what does `result` contain when you inspect it in gdb or lldb? What does the backtrace look like in the debug build? -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/CAHQurc914KA0uJimeLtLO%2BR9CRZsUWvUG%2B7%3D8AD6gRLfLqabvg%40mail.gmail.com.
