Giter Club home page Giter Club logo

Comments (4)

flpostolache avatar flpostolache commented on September 24, 2024

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.

flpostolache avatar flpostolache commented on September 24, 2024

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.

flpostolache avatar flpostolache commented on September 24, 2024

@razvand This was solved by #885. I think we can close it.

from unikraft.

razvand avatar razvand commented on September 24, 2024

Solved by #885 , as mentioned by @flpostolache

from unikraft.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.