Skip to content

corrupted double-linked list with ipaexm.ttf #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
scottkosty opened this issue Jun 12, 2016 · 5 comments
Open

corrupted double-linked list with ipaexm.ttf #6

scottkosty opened this issue Jun 12, 2016 · 5 comments

Comments

@scottkosty
Copy link

If you happen to be using Ubunu, you can install ipaexm.ttf with

sudo apt-get install fonts-ipaexfont-mincho

I then get the following error:

> library(extrafont)
Registering fonts with R
> font_import()
Importing fonts may take a few minutes, depending on the number of fonts and the speed of the system.
Continue? [y/n] y
Scanning ttf files in /usr/share/fonts/ ...
Extracting .afm files from .ttf files...
/usr/share/fonts/opentype/ipaexfont-mincho/ipaexm.ttf*** Error in `/usr/local/lib/R/site-library/Rttf2pt1/exec//ttf2pt1': corrupted double-linked list: 0x0000000001da16d0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x77725)[0x7ff98a19f725]
/lib/x86_64-linux-gnu/libc.so.6(+0x80679)[0x7ff98a1a8679]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7ff98a1ababc]
/lib/x86_64-linux-gnu/libc.so.6(fclose+0x103)[0x7ff98a195313]
/usr/local/lib/R/site-library/Rttf2pt1/exec//ttf2pt1[0x403aec]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7ff98a148830]
/usr/local/lib/R/site-library/Rttf2pt1/exec//ttf2pt1[0x404969]
======= Memory map: ========
00400000-00425000 r-xp 00000000 08:02 8788508                            /usr/local/lib/R/site-library/Rttf2pt1/exec/ttf2pt1
00624000-00625000 r--p 00024000 08:02 8788508                            /usr/local/lib/R/site-library/Rttf2pt1/exec/ttf2pt1
00625000-00627000 rw-p 00025000 08:02 8788508                            /usr/local/lib/R/site-library/Rttf2pt1/exec/ttf2pt1
00627000-00a30000 rw-p 00000000 00:00 0 
01da1000-09414000 rw-p 00000000 00:00 0                                  [heap]
7ff984000000-7ff984021000 rw-p 00000000 00:00 0 
7ff984021000-7ff988000000 ---p 00000000 00:00 0 
7ff9895b1000-7ff9895c7000 r-xp 00000000 08:02 5116362                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff9895c7000-7ff9897c6000 ---p 00016000 08:02 5116362                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff9897c6000-7ff9897c7000 rw-p 00015000 08:02 5116362                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff9897c7000-7ff98a128000 rw-p 00000000 00:00 0 
7ff98a128000-7ff98a2e8000 r-xp 00000000 08:02 5116324                    /lib/x86_64-linux-gnu/libc-2.23.so
7ff98a2e8000-7ff98a4e7000 ---p 001c0000 08:02 5116324                    /lib/x86_64-linux-gnu/libc-2.23.so
7ff98a4e7000-7ff98a4eb000 r--p 001bf000 08:02 5116324                    /lib/x86_64-linux-gnu/libc-2.23.so
7ff98a4eb000-7ff98a4ed000 rw-p 001c3000 08:02 5116324                    /lib/x86_64-linux-gnu/libc-2.23.so
7ff98a4ed000-7ff98a4f1000 rw-p 00000000 00:00 0 
7ff98a4f1000-7ff98a5f9000 r-xp 00000000 08:02 5116394                    /lib/x86_64-linux-gnu/libm-2.23.so
7ff98a5f9000-7ff98a7f8000 ---p 00108000 08:02 5116394                    /lib/x86_64-linux-gnu/libm-2.23.so
7ff98a7f8000-7ff98a7f9000 r--p 00107000 08:02 5116394                    /lib/x86_64-linux-gnu/libm-2.23.so
7ff98a7f9000-7ff98a7fa000 rw-p 00108000 08:02 5116394                    /lib/x86_64-linux-gnu/libm-2.23.so
7ff98a7fa000-7ff98a820000 r-xp 00000000 08:02 5116296                    /lib/x86_64-linux-gnu/ld-2.23.so
7ff98a9ec000-7ff98a9ef000 rw-p 00000000 00:00 0 
7ff98aa1c000-7ff98aa1f000 rw-p 00000000 00:00 0 
7ff98aa1f000-7ff98aa20000 r--p 00025000 08:02 5116296                    /lib/x86_64-linux-gnu/ld-2.23.so
7ff98aa20000-7ff98aa21000 rw-p 00026000 08:02 5116296                    /lib/x86_64-linux-gnu/ld-2.23.so
7ff98aa21000-7ff98aa22000 rw-p 00000000 00:00 0 
7ffd288a6000-7ffd288cf000 rw-p 00000000 00:00 0                          [stack]
7ffd289aa000-7ffd289ac000 r--p 00000000 00:00 0                          [vvar]
7ffd289ac000-7ffd289ae000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

I've seen this on a few systems, but this particular output is from Ubuntu 16.04 and:

$ R --version
R version 3.3.0 (2016-05-03) -- "Supposedly Educational"
> packageVersion("Rttf2pt1")
[1] ‘1.3.4’
> packageVersion("extrafont")
[1] ‘0.17’

Finally, thank you for your work on these packages! They are quite useful.

@scottkosty
Copy link
Author

I forgot to say that if there's any other information or testing I can provide, I'd be happy to do so.

@scottkosty
Copy link
Author

@wch No worries if you're busy but I just wanted to make sure that you saw this bug report.

@wch
Copy link
Owner

wch commented Mar 19, 2017

@scottkosty Can you try installing the branches Rttf2pt1 and extrafont as described here, and try again?

@scottkosty
Copy link
Author

@wch Sure I'll let you know when I try it. Thanks.

@scottkosty
Copy link
Author

While following those commands, I got the following error:

> library(devtools)
> install_github("wch/Rttf2pt1@freetype2")
Downloading GitHub repo wch/Rttf2pt1@freetype2
from URL https://api.github.com/repos/wch/Rttf2pt1/zipball/freetype2
Installing Rttf2pt1
'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL  \
  '/tmp/RtmpM3tkHS/devtools29c149d6a959/wch-Rttf2pt1-d15ee89' --library='/usr/local/lib/R/site-library' --install-tests 
* installing *source* package ‘Rttf2pt1’ ...
** libs
** arch - 
echo "make in freetype2/ ..."
make in freetype2/ ...
(cd freetype2; make CC="`"/usr/lib/R/bin/R" CMD config CC`"; make CC="`"/usr/lib/R/bin/R" CMD config CC`" CFLAGS="`"/usr/lib/R/bin/R" CMD config CFLAGS` -c")
make[1]: Entering directory '/tmp/RtmpM3tkHS/devtools29c149d6a959/wch-Rttf2pt1-d15ee89/src/freetype2'
cd builds/unix; ./configure 
/bin/sh: 1: ./configure: Permission denied
builds/unix/detect.mk:76: recipe for target 'unix-def.mk' failed
make[1]: *** [unix-def.mk] Error 126
make[1]: Leaving directory '/tmp/RtmpM3tkHS/devtools29c149d6a959/wch-Rttf2pt1-d15ee89/src/freetype2'
make[1]: Entering directory '/tmp/RtmpM3tkHS/devtools29c149d6a959/wch-Rttf2pt1-d15ee89/src/freetype2'
cd builds/unix; ./configure 
/bin/sh: 1: ./configure: Permission denied
builds/unix/detect.mk:76: recipe for target 'unix-def.mk' failed
make[1]: *** [unix-def.mk] Error 126
make[1]: Leaving directory '/tmp/RtmpM3tkHS/devtools29c149d6a959/wch-Rttf2pt1-d15ee89/src/freetype2'
Makefile:16: recipe for target 'all' failed
make: *** [all] Error 2
ERROR: compilation failed for package ‘Rttf2pt1’
* removing ‘/usr/local/lib/R/site-library/Rttf2pt1’
Installation failed: Command failed (1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants