Comments (4)
I'll document what I've found till now, just to be written somewhere. I will also give the source names of some sources to easier to find the functions. The crash happens at the initialization of the openssl module, to be exact, in the ossl_lib_ctx_get_data
function from context.c
. The function attemps to read-lock the ctx->lock
variable, which in our case is uninitialized(the structure is because it is a staically declared one). The initialization of this lock should take place in the OPENSSL_init_crypto
function, when the ossl_init_config_settings
(init.c) is called. This last function never gets called because before it, there is another lock
on another rwlock that fails with EDEADLK
and returns 0.
from unikraft.
Update. The problem appears in pthread_rwlock_wrlock
function. Here, the function checks if the writer thread tries to acquire the lock. In the case it does, it returns EDEADLK
. In Unikraft's case what happens is that the lock structure was just initialised and the current writer member is set to 0. Because the TID is also set to 0, the call fails. The solution would be to change the TID to something other than 0.
from unikraft.
@razvand This was solved by #885. I think we can close it.
from unikraft.
Solved by #885 , as mentioned by @flpostolache
from unikraft.
Related Issues (20)
- app-compat: Failure when running an HTTP Go server
- app-compat: Failure when running an HTTP Python3 Flask HOT 1
- Add macro for "mkmp" mount option HOT 6
- Use `unlikely()` to error checking conditions HOT 6
- Crash: plat/common/bootinfo causes segmentation fault of Linuxu debug executables HOT 1
- Crash: lib/posix-process/clone causes segmentation fault during `pthread_create` on Linuxu
- `.github/labels`: Update list of labels to match current repository HOT 7
- `.github/workflows`: Enable GPG signing for `merge` label
- Applications fail to build when using both musl and lwip with memory pools
- README.md : Getting started section links to kraft, which is deprecated HOT 3
- Caddy compilation on ARM-based Mac fails at link references (libkvmplat) HOT 1
- Problem running helloworld-c x64-kvm on QEMU v8.2.2
- libukallocbbuddy can't allocate 1G memory even if 4G memory provided
- Unikraft doesn't boot on Firecracker v1.8.0-dev
- Build error `yacc: invalid option -- 'W'` on Fedora
- lib/ukdebug: make fails when building `app-helloworld` with `tracepoints` enabled on `arm64`
- UI Mobile
- Investigate the reasoning behind CONFIG_LIBPOSIX_PROCESS_MAX_PID
- Empty `Makefile.uk` created on builds
- Build fails because of unknown wget option `show-progress` 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 unikraft.