tripwire icon indicating copy to clipboard operation
tripwire copied to clipboard

error stracktrace building on Node 12.18.1 and node 14.13.0

Open amit777 opened this issue 3 years ago • 0 comments

I get the same stack trace with both versions:

the culprit seems to be: "../src/tripwire_linux.cc:100:21: error: ‘TerminateExecution’ is not a member of ‘v8::V8’"

> [email protected] install /opt/app/backend/node_modules/tripwire
> node install.js

make: Entering directory `/opt/app/backend/node_modules/tripwire/build'
  CXX(target) Release/obj.target/tripwire/src/tripwire_linux.o
In file included from /nodeuser/.cache/node-gyp/14.11.0/include/node/node.h:67:0,
                 from ../src/tripwire_linux.cc:5:
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:1585:58: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
                                 Local<Value> export_value);
                                                          ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:3359:23: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   Local<Value> Name() const { return Description(); }
                       ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:5171:76: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
       ArrayBufferCreationMode mode = ArrayBufferCreationMode::kExternalized);
                                                                            ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:5218:21: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   bool IsExternal() const;
                     ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:5245:24: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   Contents Externalize();
                        ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:5255:70: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   void Externalize(const std::shared_ptr<BackingStore>& backing_store);
                                                                      ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:5266:24: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   Contents GetContents();
                        ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:5653:76: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
       ArrayBufferCreationMode mode = ArrayBufferCreationMode::kExternalized);
                                                                            ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:5702:76: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
       ArrayBufferCreationMode mode = ArrayBufferCreationMode::kExternalized);
                                                                            ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:5711:21: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   bool IsExternal() const;
                     ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:5727:24: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   Contents Externalize();
                        ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:5737:70: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   void Externalize(const std::shared_ptr<BackingStore>& backing_store);
                                                                      ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:5752:24: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   Contents GetContents();
                        ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:5977:50: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
       Local<FinalizationGroup> finalization_group);
                                                  ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:7128:28: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   size_t code_range_size() const { return code_range_size_ / kMB; }
                            ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:7130:46: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   void set_code_range_size(size_t limit_in_mb) {
                                              ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:7134:38: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   size_t max_semi_space_size_in_kb() const;
                                      ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:7136:56: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   void set_max_semi_space_size_in_kb(size_t limit_in_kb);
                                                        ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:7138:31: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   size_t max_old_space_size() const { return max_old_generation_size_ / kMB; }
                               ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:7140:49: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   void set_max_old_space_size(size_t limit_in_mb) {
                                                 ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:7144:31: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   size_t max_zone_pool_size() const { return max_zone_pool_size_; }
                               ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:7146:43: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   void set_max_zone_pool_size(size_t bytes) { max_zone_pool_size_ = bytes; }
                                           ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:8594:52: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
       HostCleanupFinalizationGroupCallback callback);
                                                    ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:8758:59: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
                                     MeasureMemoryMode mode);
                                                           ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:8822:36: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   Local<Context> GetEnteredContext();
                                    ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:9099:22: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   void RunMicrotasks() { PerformMicrotaskCheckpoint(); }
                      ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:9143:75: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   void AddMicrotasksCompletedCallback(MicrotasksCompletedCallback callback);
                                                                           ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:9151:78: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   void RemoveMicrotasksCompletedCallback(MicrotasksCompletedCallback callback);
                                                                              ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:9323:30: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   UnwindState GetUnwindState();
                              ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:9386:54: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
       AllowCodeGenerationFromStringsCallback callback);
                                                      ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:9743:75: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   static bool TryHandleSignal(int signal_number, void* info, void* context);
                                                                           ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:10704:55: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
                                 const void* stack_base);
                                                       ^
/nodeuser/.cache/node-gyp/14.11.0/include/node/v8.h:10730:65: warning: ‘deprecated’ attribute directive ignored [-Wattributes]
   static bool PCIsInV8(const UnwindState& unwind_state, void* pc);
                                                                 ^
../src/tripwire_linux.cc: In function ‘void* tripwireWorker(void*)’:
../src/tripwire_linux.cc:100:21: error: ‘TerminateExecution’ is not a member of ‘v8::V8’
                     v8::V8::TerminateExecution(isolate);
                     ^
make: *** [Release/obj.target/tripwire/src/tripwire_linux.o] Error 1

amit777 avatar Sep 30 '20 17:09 amit777