You are not logged in.

#1 2016-09-15 01:30:15

beezybellz
Member
Registered: 2016-09-15
Posts: 3

Tor "out of memory" Error with GRSec

Hey Arch Folk,

I'm a new user as of this year; so, hopefully I don't muck up my first post to this forum.

ISSUE: After downloading and unpacking the  "tor-browser-linux64-6.0.4_en-US.tar.xz" I attempt to run "./start-tor-browser.desktop" as per the instructions. It reads the following, and then nothing happens:

 Launching './Browser/start-tor-browser --detach -v'... 

I ran it to get a verbose output, which reads:

 Launching './Browser/start-tor-browser --detach -v'...
out of memory
Assertion failure: [unhandlable oom] OOM in createJitRuntime, at /home/debian/build/tor-browser/js/src/jscntxt.cpp:1228
./Browser/start-tor-browser: line 372:  8426 Segmentation fault      (core dumped) TOR_CONTROL_PASSWD=${TOR_CONTROL_PASSWD} ./firefox --class "Tor Browser" -profile TorBrowser/Data/Browser/profile.default "${@}" < /dev/null 

I've also installed and enabled Tor with systemctl.

Tor browser ran fine (better than Chromium even, sometimes) with my last Arch build. The only difference I can remember between this build and my last is the addition of GRSec encryption; which I set up on /home, root, and /boot partitions.

My current build is 64bit and uses LXDE, Openbox, and GRSec encryption. I've done as much research as I can before posting this (hence why this is my first post on a forum). I've looked everywhere for a solution.

Any help would be uber appreciated! Thanks in advance for any info <3

Last edited by beezybellz (2016-09-24 02:34:41)

Offline

#2 2016-09-16 18:25:24

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: Tor "out of memory" Error with GRSec

Assertion failure: [unhandlable oom] OOM in createJitRuntime, at /home/debian/build/tor-browser/js/src/jscntxt.cpp:1228

That message suggests tor-browser sourcecode can't handle that error.

A possibility is that the tarball needs adjustments to work on AL.
AUR has several tor-browser packages, could you try with one of them ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2016-09-16 22:30:00

beezybellz
Member
Registered: 2016-09-15
Posts: 3

Re: Tor "out of memory" Error with GRSec

Alright! So I ran "yaourt -S tor-browser-en" to try to install it that way instead. After running the browser, my memory usage jumps up to around 80%, and then nothing happens.

Here's my journal log:

 ep 16 15:17:04 user sudo[2279]: pam_unix(sudo:session): session opened for user root by (uid=0)
Sep 16 15:17:07 user sudo[2279]: pam_unix(sudo:session): session closed for user root
Sep 16 15:18:15 user kernel: grsec: denied RWX mmap of <anonymous mapping> by /home/user/.tor-browser-en/INSTALL/Browser/firefox[firefox:2313] uid/euid:1000/1000 gid/eg
Sep 16 15:18:15 user systemd[1]: Created slice system-systemd\x2dcoredump.slice.
Sep 16 15:18:15 user systemd[1]: Started Process Core Dump (PID 2327/UID 0).
Sep 16 15:18:16 user systemd-coredump[2329]: Process 2313 (firefox) of user 1000 dumped core.
                                             
                                             Stack trace of thread 2313:
                                             #0  0x000003133d57ff5f raise (libpthread.so.0)
                                             #1  0x00000313391f7038 n/a (libxul.so)
                                             #2  0x0000031339cc46e6 n/a (libxul.so)
                                             #3  0x000003133d580080 __restore_rt (libpthread.so.0)
                                             #4  0x0000031337b598c2 n/a (libxul.so)
                                             #5  0x00000313399a764d n/a (libxul.so)
                                             #6  0x0000031339c14d65 n/a (libxul.so)
                                             #7  0x00000313399a7735 n/a (libxul.so)
                                             #8  0x000003133979b2fc n/a (libxul.so)
                                             #9  0x0000031339aed5b3 n/a (libxul.so)
                                             #10 0x0000031339af27ef n/a (libxul.so)
                                             #11 0x0000031339af291c n/a (libxul.so)
                                             #12 0x00000313399a5d60 n/a (libxul.so)
                                             #13 0x00000313399a5ee8 n/a (libxul.so)
                                             #14 0x0000031339b213a1 n/a (libxul.so)
                                             #15 0x00000313399a551b n/a (libxul.so)
                                             #16 0x0000031338024441 n/a (libxul.so)
                                             #17 0x000003133803b2bc n/a (libxul.so)
                                             #18 0x00000313380257d0 n/a (libxul.so)
                                             #19 0x000003133900ec10 n/a (libxul.so)
                                             #20 0x0000031337bcbefe n/a (libxul.so)
                                             #21 0x0000031337bcca69 n/a (libxul.so)
                                             #22 0x0000031337bcd0ca n/a (libxul.so)
                                             #23 0x0000031337bce493 n/a (libxul.so)
                                             #24 0x0000031337beef38 n/a (libxul.so)
                                             #25 0x0000031337be8007 n/a (libxul.so)
                                             #26 0x0000031337beb5c5 n/a (libxul.so)
                                             #27 0x00000313391f9dc0 n/a (libxul.so)
                                             #28 0x00000313391fe570 n/a (libxul.so)
                                             #29 0x00000313391fe791 XRE_main (libxul.so)
                                             #30 0x0000007a18a6359b _start (firefox)
                                             #31 0x0000007a18a62dff n/a (firefox)
                                             #32 0x000003133c53b291 __libc_start_main (libc.so.6)
                                             #33 0x0000007a18a62f11 _start (firefox)

Offline

#4 2016-09-17 13:30:16

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: Tor "out of memory" Error with GRSec

Check the AUR page for tor-browser-en , comment by Toruser on april 27 .

Last edited by Lone_Wolf (2016-09-17 13:30:42)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2016-09-24 02:32:28

beezybellz
Member
Registered: 2016-09-15
Posts: 3

Re: Tor "out of memory" Error with GRSec

Ahhhh ok, good good! So, what I need to do then is add the line listed in the box below into the function called 'update()' inside the 'tor-browser-en.sh' file. I know you probably don't want to hold my hand through this whole thing, but I'm a bit unsure of two things:

1) Where to find the file 'tor-browser-en.sh' (I used 'find / -name tor-browser-en.sh' in an attempt to locate it, but to no avail) in order to add the line:

 setfattr -n user.pax.flags -v m "${INSTALL_DIRECTORY}/Browser/firefox" 

2) Where in the function called 'update()' to put the line above.

Thanks again for being a proper person. I want to give back to the Arch Wiki someday when I'm better informed, but unfortunately all I can do now is fix my own problems and hope that my time helps someone with similar problems.

Offline

#6 2016-09-24 13:49:59

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: Tor "out of memory" Error with GRSec

that file is a sourcefile in the AUR package, after install it's in /usr/bin .

Look in the directory where the PKGBUILD resides,  edit the script there.
I think the setfattr-line should be added as last statement in the update() function.

run "updpkgsums" to update the PKGBUILD, increase the pkgrel (1.1 seems reasonable) then rebuild the package .
---------------------

Thanks again for being a proper person. I want to give back to the Arch Wiki someday when I'm better informed, but unfortunately all I can do now is fix my own problems and hope that my time helps someone with similar problems.

We've all been at that point, and i remember how it felt.

you're welcome.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB