You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you run v8 inspect -k 0x0 on Linux then llnode seg faults.
This is a problem with the handling of the command arguments in CommandBase::ParseInspectOptions.
The text was updated successfully, but these errors were encountered:
I've pushed a fix, it looks like there's a difference between how the two implementations of getopt_long report errors. On Linux the first argument of the arguments array passed to getopt_long is reported in the error message. On Mac (I think!) it's the first argument in the global argv variable, which is always the program name.
This is easier to explain with the fix from the above PR, which sets element 0 to llnode, and a bad option.
lldb on Linux reports:
Fix up the arguments array to contain a first element rather than
subtract 1 from the lldb arguments and pretend they start at
args[1].
Linux prints args[0] in it's error message so it must point to a real
array element.
(Mac OSX appears to be hardcoded to use the program name in argv[0]
and ignores the first element of the arguments array.)
Fixes: #41
Review: #42
If you run v8 inspect -k 0x0 on Linux then llnode seg faults.
This is a problem with the handling of the command arguments in CommandBase::ParseInspectOptions.
The text was updated successfully, but these errors were encountered: