Giter Club home page Giter Club logo

Comments (3)

adombeck avatar adombeck commented on May 28, 2024

This can also be triggered by running any (non-builtin) command via bash, for example:

LibOS/shim/test/apps/bash$ ./bash.manifest.sgx -c ls
[...]
[    1] loading file:/bin/ls as runtime object at 0x0
[    1] bkeep_mmap: 0x400000-0x41e000
[    1] memory fault at 0x0 (IP = 0xbd98e83)
[    1] SIGSEGV handled
[    1] run signal handler 0xbac1725 (11, 0xaf12650, 0xaf126d8)
[    1] killed by SIGSEGV
[...]

(I set loader.debug_type = inline in bash.manifest.template to get this output)

from graphene.

leesera avatar leesera commented on May 28, 2024

I have a same issue.
when I try to map 4096 bytes of memory with mmap function, the segmentation fault is triggered.
the output is following.
is this issue fixed?

[ 1] bkeep_mprotect: 0x5c4d3000-0x5c4d5000
[ 1] bkeep_munmap: 0x5c4d3000-0x5c4d5000
[ 1] ---- return from shim_munmap(...) = 0
[ 1] memory fault at 0x0 (IP = 0x5c553e06)
[ 1] SIGSEGV handled
[ 1] run signal handler 0x7bac5a4a (11, 0x64aaaa90, 0x64aaab18)
[ 1] killed by SIGSEGV

from graphene.

donporter avatar donporter commented on May 28, 2024

@adombeck I can no longer reproduce this issue (after the fixes in #215 ). I am assuming this is fixed in the latest code, unless you are still having issues.

@leesera can you share code to reproduce your issue? The log you list shows a segfault after an munmap, not on an mmap, which makes me suspect this is a different issue.

from graphene.

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.