Using Signal on PinePhone in mid-2023?
#47
Attachment bug presists. Has anyone  got  the patch working https://github.com/dennisameling/Signal-...1817767085 on version 6.47 and newer?

Code:
.ensureFile() call seems to be causing EFAULT of the write systemcall in arm64 environment.
I am not expert of node.js but I think:

    ensureFile is implemented by fs-extra/lib/ensure/file.js as function createFile (file, callback)
    createFile() is calling fs.write(file, '') in order to create empty file to target path.
    fs.write() is dispatched to write() systemcall, but when 2nd parameter of fs.write() is empty (''), 2nd parameter of write systemcall is pointing invalid address.

My workaround:

    Change fs.write(file, '') => fs.write(file, ' ') on node_modules/fs-extra/lib/ensure/file.js

Then now, I can send/receive attachments without EFAULT in my aarch64 chromebook linux.

I think root cause could be node.js or libuv? (somewhere dispatching to the write systemcall).
When empty buffer parameter passed to fs.WriteFile(), invalid const void *buf address is generated as the write() syscall parameter.

fs.write(file, ''  has been changed to fs.writeFile(file, '' although the patch above no longer works.

What is the full path to  node_modules/fs-extra/lib/ensure/file.js ? The docker contains many copies of node_modules/fs-extra/lib/ensure/file.js
  Reply


Messages In This Thread
RE: Using Signal on PinePhone in mid-2023? - by dragonhospital - 04-30-2024, 07:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Fedora + Phosh for PinePhone njha 77 203,032 01-14-2026, 12:22 AM
Last Post: tllim
  Difficulty with openSUSE Tumbleweed Install PinePhone Beta danm1988 0 322 11-17-2025, 07:49 AM
Last Post: danm1988
  Movuan distribution for PinePhone merom 5 5,197 07-27-2025, 05:01 PM
Last Post: merom
  baremetal via Zig on PinePhone - JumpDrive help please WhiteHexagon 1 3,338 07-07-2025, 10:33 AM
Last Post: WhiteHexagon
  Latest firmware for PinePhone modem! Subsentient 105 208,532 02-02-2025, 08:47 PM
Last Post: bacydentir85
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 40 57,183 12-28-2024, 12:19 AM
Last Post: mara
  Office applications for the Pinephone Peter Gamma 2 4,562 09-05-2024, 09:22 AM
Last Post: Peter Gamma
  Struggle to install LibreOffice on the PinePhone Peter Gamma 50 63,926 07-26-2024, 10:35 PM
Last Post: Peter Gamma
  Why does Pine64 sabotage office on the Pinephone? Peter Gamma 5 5,955 07-04-2024, 07:34 AM
Last Post: Kevin Kofler
  Which word processor to choose for the Pinephone? Peter Gamma 16 16,274 06-22-2024, 07:28 AM
Last Post: Peter Gamma

Forum Jump:


Users browsing this thread: 2 Guest(s)