Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Requiring from a thread crashes Ruby #3

Open
jerodsanto opened this Issue · 0 comments

1 participant

Jerod Santo
Jerod Santo

I'm trying to get this working with Jekyll and everything works great unless the library is invoked from inside a DirectoryWatcher thread (eg - when you do jekyll --auto)

The program aborts when loading in 'peg_multimarkdown.so'. Here is a simple reproduction of the abort:

puts "before"
t = Thread.new do
  require "multimarkdown"
end
t.join
puts "after"

Running this will print "before" followed by "Trace/BPT trap: 5".

My experience with threading and loading shared objects is minimal, so any insights would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.