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
  Alternatives to Signal or simple signal setup methods? JamesBond009 3 815 04-25-2024, 02:22 PM
Last Post: TRS-80
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 38 25,873 04-23-2024, 10:29 AM
Last Post: donchurch
  PinePhone app development WhiteHexagon 15 4,419 04-23-2024, 05:19 AM
Last Post: Jonnyc
Wink PINEPHONE not booting Touchwood 2 583 02-23-2024, 07:27 AM
Last Post: Touchwood
  Sms apps and signal messenger boggle 8 7,614 02-16-2024, 06:03 AM
Last Post: zetabeta
  Slack on PinePhone Adam Seline 5 5,579 12-20-2023, 07:20 AM
Last Post: nickolas
  Struggle to install LibreOffice on the PinePhone Peter Gamma 48 25,406 11-24-2023, 07:02 AM
Last Post: Peter Gamma
  Which word processor to choose for the Pinephone? Peter Gamma 8 2,260 11-23-2023, 01:06 AM
Last Post: Peter Gamma
  openSUSE for Pinephone Alefnode 75 103,739 11-17-2023, 08:37 AM
Last Post: Uturn
  Genode- Sculpt OS for the PinePhone (non Linux) Surehand53 1 1,104 11-04-2023, 07:23 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)