[Bug 1752364] [NEW] Unsquashfs multiple crashes

Simon 1752364 at bugs.launchpad.net
Wed Feb 28 16:22:36 UTC 2018


Public bug reported:

Hello,

I want to use unsquashfs to inflate a .squashfs file.

On macOS, I installed unsquashfs with "brew install squahfs".

$ unsquashfs filesystem.squashfs
Parallel unsquashfs: Using 4 processors
56859 inodes (52030 blocks) to write

[1]    16615 bus error  unsquashfs filesystem.squashfs


$ unsquashfs -v
unsquashfs version 4.3 (2014/05/12)


Then I tried on Linux.

# apt install squashfs

$ unsquashfs -v
unsquashfs version 4.3 (2014/05/12)


$ unsquashfs filesystem.squashfs
Parallel unsquashfs: Using 1 processor
56859 inodes (52030 blocks) to write


create_inode: could not create character device squashfs-root/dev/urandom, because you're not superuser!
[=======-                                                 ]  6882/52030  13%
[1]    10769 killed     unsquashfs filesystem.squashfs


$ dmesg
...
[269660.340576] Out of memory: Kill process 10769 (unsquashfs) score 455 or sacrifice child
[269660.341729] Killed process 10769 (unsquashfs) total-vm:414248kB, anon-rss:226448kB, file-rss:772kB


So I quickly googled for a workaround and I found this repo:
https://github.com/pieceofsummer/squashfs-tools
With a commit named "Fix bus error 10 issue".
After struggling to make it build on macOS because lmza is deprecated, it finally worked.


This was difficult ! You know, when you install something and it doesn't
work then you google it and the bug was already fixed but the fix wasn't
released, then you try something else and it still crash, etc etc ?

So there are two bugs:
- bus error on macos
- needs too much memory on linux 500mb ram


My linux:
Linux 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

My macOS 10.12.6:
Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64 x86_64

Have a nice day

** Affects: squashfs-tools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to squashfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1752364

Title:
  Unsquashfs multiple crashes

Status in squashfs-tools package in Ubuntu:
  New

Bug description:
  Hello,

  I want to use unsquashfs to inflate a .squashfs file.

  On macOS, I installed unsquashfs with "brew install squahfs".

  $ unsquashfs filesystem.squashfs
  Parallel unsquashfs: Using 4 processors
  56859 inodes (52030 blocks) to write

  [1]    16615 bus error  unsquashfs filesystem.squashfs

  
  $ unsquashfs -v
  unsquashfs version 4.3 (2014/05/12)

  
  Then I tried on Linux.

  # apt install squashfs

  $ unsquashfs -v
  unsquashfs version 4.3 (2014/05/12)

  
  $ unsquashfs filesystem.squashfs
  Parallel unsquashfs: Using 1 processor
  56859 inodes (52030 blocks) to write

  
  create_inode: could not create character device squashfs-root/dev/urandom, because you're not superuser!
  [=======-                                                 ]  6882/52030  13%
  [1]    10769 killed     unsquashfs filesystem.squashfs


  
  $ dmesg
  ...
  [269660.340576] Out of memory: Kill process 10769 (unsquashfs) score 455 or sacrifice child
  [269660.341729] Killed process 10769 (unsquashfs) total-vm:414248kB, anon-rss:226448kB, file-rss:772kB


  
  So I quickly googled for a workaround and I found this repo:
  https://github.com/pieceofsummer/squashfs-tools
  With a commit named "Fix bus error 10 issue".
  After struggling to make it build on macOS because lmza is deprecated, it finally worked.


  This was difficult ! You know, when you install something and it
  doesn't work then you google it and the bug was already fixed but the
  fix wasn't released, then you try something else and it still crash,
  etc etc ?

  So there are two bugs:
  - bus error on macos
  - needs too much memory on linux 500mb ram

  
  My linux:
  Linux 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

  My macOS 10.12.6:
  Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64 x86_64

  Have a nice day

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squashfs-tools/+bug/1752364/+subscriptions



More information about the foundations-bugs mailing list