Comments (2)
Find the root cause: V8Engine.Dispose() must not be called until C.RunScriptSource() return. Otherwise, it will crash.
The fix should be:
done := make(chan bool, 1)
go func() {
ret = C.RunScriptSource(e.v8engine, cSource, C.uintptr_t(e.lcsHandler),
C.uintptr_t(e.gcsHandler))
done <- true
}()
select {
case <-done:
if ret != 0 {
err = ErrExecutionFailed
}
case <-time.After(10 * time.Second):
C.TerminateExecution(e.v8engine)
err = ErrExecutionTimeout
// wait for C.RunScriptSource() returns.
select {
case <-done:
}
}
from go-nebulas.
This 04ad5c6 commit fix this crash bug.
from go-nebulas.
Related Issues (20)
- How to run tps benchmark? HOT 1
- make: cannot find -lff_functionflow HOT 1
- failed to build NEB HOT 3
- error while loading shared libraries: libc++.so.1: cannot open shared object file: No such file or directory HOT 7
- neb-crashreporter not found HOT 13
- source install-native-libs.sh error on mac HOT 1
- make deploy-v8 failed HOT 1
- Failed to verify block HOT 1
- cannot find package "github.com/influxdata/influxdb/client" HOT 1
- Sync Test Node Error HOT 1
- update nebulas dependency HOT 2
- Init error
- Illegal instruction
- testnet sync stop HOT 1
- mainnet sync error HOT 1
- how to get Pledge Rewards recoders
- Cannot get latest version: module contains a go.mod file, so module path should be github.com/nebulasio/go-nebulas/v3
- Error while building rocksdb HOT 1
- Failed to syncronise with mainnet HOT 1
- addresses配置是否能支持多IP配置 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-nebulas.