mwrap user+dev discussion/patches/pulls/bugs/help
 help / color / Atom feed
Subject: SegFault in mwrap 2.1 on Ruby 2.4.7
Date: Tue,  5 Nov 2019 16:56:17 +0200 (EET)
Message-ID: <20191105145617.B9BF92A1FFFF@MacBook-Pro.localdomain> (raw)


I'm getting segmentation fault with mwrap 2.1 & Ruby 2.4.7.

I'm not a C developer but I'll be happy to try and help debug this.

So far this is what I've gathered.

Reproduction steps:

1. Run: mwrap ruby -e ''


#0  0x00007ffff7bd34d2 in has_ec_p () at mwrap.c:216
#1  0x00007ffff7bd3c23 in update_stats_rcu_lock (size=5, caller=140737336167861) at mwrap.c:426
#2  0x00007ffff7bd48d4 in malloc (size=5) at mwrap.c:721
#3  0x00007ffff6edcdb5 in _nl_normalize_codeset () from /lib64/
#4  0x00007ffff6ed710f in _nl_load_locale_from_archive () from /lib64/
#5  0x00007ffff6ed630e in _nl_find_locale () from /lib64/
#6  0x00007ffff6ed5ad3 in setlocale () from /lib64/
#7  0x0000555555578f8a in main ()

Source for reference:

211	 * to have a native thread but no EC during the early and late
212	 * (teardown) phases of the Ruby process
213	 */
214	static int has_ec_p(void)
215	{
216		return (ruby_thread_has_gvl_p() && ruby_current_vm_ptr &&
217			ruby_current_execution_context_ptr);
218	}
220	struct acc {


             reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-05 14:56 alex [this message]
2019-11-05 18:13 ` alex
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:

  List information:

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

  git send-email \
    --in-reply-to=20191105145617.B9BF92A1FFFF@MacBook-Pro.localdomain \ \ \

* 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 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/ \
	public-inbox-index mwrap-public

Example config snippet for mirrors

Newsgroups are available over NNTP:

 note: .onion URLs require Tor:

AGPL code for this site: git clone