File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,22 @@ Fixing segmentation fault on exit on Ubuntu 14.04
4
4
* On Ufal machines, segfault can be prevented by doing this:
5
5
6
6
.. code-block :: bash
7
+
7
8
export LD_PRELOAD=/home/helcl/lib/libtcmalloc_minimal.so.4
8
9
bin/neuralmonkey-train tests/vocab.ini
9
10
10
11
* On machines with ``sudo ``, one can do this:
11
12
12
13
.. code-block :: bash
14
+
13
15
sudo apt-get install libtcmalloc-minimal4
14
16
export LD_PRELOAD=" /usr/lib/libtcmalloc_minimal.so.4"
15
17
16
18
* On machines with neither ``sudo `` nor
17
19
``~helcl/lib/libtcmalloc_minimal.so.4 ``, this is the way to fix segfaulting:
18
20
19
21
.. code-block :: bash
22
+
20
23
wget http://archive.ubuntu.com/ubuntu/pool/main/g/google-perftools/google-perftools_2.1.orig.tar.gz
21
24
tar xpzvf google-perftools_2.1.orig.tar.gz
22
25
cd gperftools-2.1/
@@ -28,6 +31,7 @@ if the compilation crashes on the need of the ``libunwind`` library (as did for
28
31
me), do this:
29
32
30
33
.. code-block :: bash
34
+
31
35
wget http://download.savannah.gnu.org/releases/libunwind/libunwind-0.99-beta.tar.gz
32
36
tar xpzvf libunwind-0.99-beta.tar.gz
33
37
cd libunwind-0.99-beta/
@@ -42,6 +46,7 @@ with ``make CFLAGS+=-U_FORTIFY_SOURCE`` command.
42
46
Then, in ``$HOME/share `` directory, create file ``config.site `` like this:
43
47
44
48
.. code-block :: bash
49
+
45
50
cat << EOF > $HOME /share/config.site
46
51
CPPFLAGS=-I$HOME /include
47
52
LDFLAGS=-L$HOME /lib
You can’t perform that action at this time.
0 commit comments