Coder Social home page Coder Social logo

[Core Dump] Signal 7 (SIGBUS) (code: nonexistent physical address) on making archive of currently running OS (possibly bad use case) about dwarfs HOT 2 CLOSED

samuelwatsonofficial avatar samuelwatsonofficial commented on May 27, 2024
[Core Dump] Signal 7 (SIGBUS) (code: nonexistent physical address) on making archive of currently running OS (possibly bad use case)

from dwarfs.

Comments (2)

mhx avatar mhx commented on May 27, 2024

Oh, that is unfortunate. It must have taken a while to get there.

The primary source of bus errors in DwarFS are memory mapped files that disappear or change shape while being mapped. A long term goal is to place the memory-mapping code behind an abstraction layer and have an alternative implementation using regular file I/O. The latter would likely be slower, but would be safe from SIGBUS.

When running mkdwarfs, all input files are memory mapped sooner or later, sometimes multiple times. If these files change shape while being accessed, this can lead to SIGBUS.

In the past, it has been more likely that DwarFS images residing on faulty USB media were the cause of bus errors and failed to extract or caused the FUSE driver to crash.

I don't think this is due to RAM shortage. As you've already pointed out, the most likely cause is files being mutated while also being accessed by mkdwarfs.

I'm inclined to close this as wontfix — but please let me know if you can reproduce this when the input to mkdwarfs is not being mutated.

from dwarfs.

samuelwatsonofficial avatar samuelwatsonofficial commented on May 27, 2024

I'm happy to close this off as I stated earlier copying all the files first before making an archive is reasonable if it is being changed, thanks for the quick response.

from dwarfs.

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.