[ruby-core:64141] [ruby-trunk - Bug #9937] Segfault in the TracePoint API

From: deivid.rodriguez@...
Date: 2014-07-31 13:37:41 UTC
List: ruby-core #64141
Issue #9937 has been updated by David Rodr=C3=ADguez.


Hi, I'll be fixing this inside byebug. I don't think the assumption that Tr=
acePoint API events will always provide a method_id is correct, so I'll be =
checking for nil values.

I guess this can be closed.

----------------------------------------
Bug #9937: Segfault in the TracePoint API
https://bugs.ruby-lang.org/issues/9937#change-48149

* Author: David Rodr=C3=ADguez
* Status: Assigned
* Priority: Normal
* Assignee: Koichi Sasada
* Category:=20
* Target version:=20
* ruby -v: ruby 2.2.0dev (2014-06-12 trunk 46413) [i686-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
Hi!

It seems that a regression bug has been recently introduced in the TracePoi=
nt API (maybe after changeset r45758). byebug's test suite works against 2.=
0 and 2.1, but segfaults against ruby-head. See https://travis-ci.org/deivi=
d-rodriguez/byebug

Segfault occurs in https://github.com/deivid-rodriguez/byebug/blob/master/e=
xt/byebug/byebug.c#L252, I'm guessing the method ID provided by the TracePo=
int API is nil, so the SYM2ID call fails.

I'm sorry I'm not currently able to properly investigate this.



--=20
https://bugs.ruby-lang.org/

In This Thread

Prev Next