You are not logged in.

#1 2014-01-02 20:11:01

malet
Member
Registered: 2013-12-18
Posts: 3

[SOLVED] tor-browser-en exits with code 137 under Arch with Grsecurity

Hi,

I just tried to install and configure tor on my laptop running Arch with Grsec kernel from arsch-repo(like described in the Wiki).
While using Thunderbird with Tor for example works i am not able to start the tor-browser-en from AUR.
When i run it from Terminal it outputs:

arch% tor-browser-en

Launching Tor Browser Bundle for Linux in /home/malet/.tor-browser-en/INSTALL

(process:1871): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed

(firefox:1871): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised

(firefox:1871): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised

(firefox:1871): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised

(firefox:1871): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised

(process:1871): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed

(firefox:1871): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised

(firefox:1871): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised

(firefox:1871): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised

(firefox:1871): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised
./start-tor-browser: line 219:  1871 Killed                  (core dumped) ./Browser/firefox -no-remote -profile Data/Browser/profile.default
Tor Browser exited abnormally.  Exit code: 137

Any help would be appreciated as I am at my wit's end.
Also I'm sorry for my poor english as I'm not a native speaker.

Last edited by malet (2014-01-03 15:03:19)

Offline

#2 2014-01-02 23:05:23

4freedoms4me
Member
Registered: 2013-09-26
Posts: 2

Re: [SOLVED] tor-browser-en exits with code 137 under Arch with Grsecurity

You may need to build the tor browser bundle from source when using a hardened system. I had the same issue on Gentoo Hardened. In order to get it to build on a hardened system, there are some hurdles to overcome. QT must be patched due to the ancient (Debian) version of QT used by the tor browser bundle build system. Additionally, hardened memory protection must be turned off for xpcshell (paxctl -m xpcshell), in order for the Firefox build to finish. Finally, once you have built the bundle, then unzipped it into your preferred location, you must  turn off memory protection for the firefox binary (paxctl -m firefox.) These suggestions SHOULD apply even though you are using Arch instead of Gentoo, given that Arch uses much more recent versions of libraries than the Debian systems on which the tor browser bundle is built.

Don't ask me how to build the latest versions of tor browser bundle. The source must be downloaded via git, instead of the tor project, since the switch to Firefox 24 in the latest releases, which is why I am back on Parabola for the moment.

Offline

#3 2014-01-03 00:42:51

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: [SOLVED] tor-browser-en exits with code 137 under Arch with Grsecurity

You don't have to rebuild anything, just disable mprotect (paxctl -m Browser/firefox).


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#4 2014-01-03 15:01:57

malet
Member
Registered: 2013-12-18
Posts: 3

Re: [SOLVED] tor-browser-en exits with code 137 under Arch with Grsecurity

I tried the paxctl version first because it was much easier and it totally worked.
Thank you for the answer.

I didn't try the rebuild option so i don't know if it works too but for me this topic is solved.

Maybe a bit off topic but is there any way to find out if you have to disable a pax feature for a programm to run other than the classic trial and error way?

Offline

#5 2014-01-03 18:39:35

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: [SOLVED] tor-browser-en exits with code 137 under Arch with Grsecurity

You can check this but it's far from complete: https://en.wikibooks.org/wiki/Grsecurit … c_Settings

In general, just try to run the program and, if it crashes, check your logs (journal/dmesg) for PAX/grsecurity messages.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#6 2015-09-08 02:05:57

micahflee
Member
Registered: 2015-09-08
Posts: 1

Re: [SOLVED] tor-browser-en exits with code 137 under Arch with Grsecurity

I tried installing the AUR package paxctl and running that command, but it didn't work for me. However doing the same thing with setfattr worked:

setfattr -n user.pax.flags -v m Browser/firefox

Offline

#7 2015-09-08 22:27:10

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,718
Website

Re: [SOLVED] tor-browser-en exits with code 137 under Arch with Grsecurity

Hi micahflee, welcome to the Arch Linux forums. Please be careful when responding in old threads, sometimes things no longer work because the information is outdated. Thank you for sharing your solution, however, up to date information should be stored on the wiki, rather than old threads.

https://wiki.archlinux.org/index.php/Fo … bumping.22

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB