mwrap user+dev discussion/patches/pulls/bugs/help
 help / color / Atom feed
From: alex@pointless.one
To: mwrap-public@80x24.org
Subject: SegFault in mwrap 2.1 on Ruby 2.4.7
Date: Tue,  5 Nov 2019 20:13:48 +0200 (EET)
Message-ID: <20191105181348.CA2D22A258A4@MacBook-Pro.localdomain> (raw)
In-Reply-To: <20191105145617.B9BF92A1FFFF@MacBook-Pro.localdomain>

Apparently, Ruby internals have changed between 2.4 and 2.5.

Specifically the following definitions are not correct for Ruby 2.4:

mwrap.c:

28 extern void * __attribute__((weak)) ruby_current_execution_context_ptr;
29 extern void * __attribute__((weak)) ruby_current_vm_ptr; /* for rb_gc_count */

They can be found in ruby/vm_core.h in Ruby 2.5+ but not in Ruby 2.4. That said,
I don't know what the right definitions are for Ruby 2.4 or if it's possible
to make mwrap copatible with Ruby 2.4.

--
Alex

  reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-05 14:56 alex
2019-11-05 18:13 ` alex [this message]
2019-11-16  0:00   ` Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://80x24.org/mwrap/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191105181348.CA2D22A258A4@MacBook-Pro.localdomain \
    --to=alex@pointless.one \
    --cc=mwrap-public@80x24.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

mwrap user+dev discussion/patches/pulls/bugs/help

Archives are clonable:
	git clone --mirror https://80x24.org/mwrap-public/0 mwrap-public/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 mwrap-public mwrap-public/ https://80x24.org/mwrap-public \
		mwrap-public@80x24.org
	public-inbox-index mwrap-public

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.mwrap
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.mwrap

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git