+
Skip to content

commonmark_html() crashes or fails on RStudio Server on CentOS #12

Closed
@yutannihilation

Description

@yutannihilation

I don't know why, but commonmark_html() and commonmark_xml() doesn't work well on the console of RStudio Server on CentOS 7.

More precisely, if I install commonmark package 1.6 and run commonmark::markdown_html("## foo"),

  • on RStudio Server 1.1.463 (stable)'s console, it crashes with segmentation fault. (Error message in syslog: kernel: rsession[93474]: segfault at 7f1792c96811 ip 00007f17a3331c97 sp 00007fff29b6f998 error 6 in libc-2.17.so[7f17a31df000+1b8000])
  • on RStudio Server 1.2.1139 (preview)'s console, it returns a wrong result ("<h2></h2>\n").

Note that, it returns the correct result ("<h2>foo</h2>\n") if I run the code

  • on R REPL on RStudio's terminal pane
  • on R REPL on an SSH session
  • with commonmark 1.5
  • on RStudio Server's console on Debian

How to reproduce

  1. Run CentOS Docker image
docker run -p 8787:8787 -it --rm centos:7 bash
  1. Install and run RStudio Server
# Download RPM (`1.1.463` is the stable version)
curl -o rstudio.rpm https://download2.rstudio.org/rstudio-server-rhel-1.1.463-x86_64.rpm
yum install rstudio.rpm

# Add rstudio user
useradd rstudio
passwd rstudio

# Launch RStudio Server
/usr/lib/rstudio-server/bin/rserver 
  1. Browse to http://localhost:8787 and login
  2. Install commonmark package and run this code
commonmark::markdown_html("## foo")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载