[#84867] [Ruby trunk Bug#14357] thread_safe tests suite segfaults — v.ondruch@...

Issue #14357 has been reported by vo.x (Vit Ondruch).

11 messages 2018/01/15

[#84980] [Ruby trunk Feature#13618][Assigned] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid — hsbt@...

Issue #13618 has been updated by hsbt (Hiroshi SHIBATA).

10 messages 2018/01/23
[#85012] Re: [Ruby trunk Feature#13618][Assigned] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid — Eric Wong <normalperson@...> 2018/01/23

hsbt@ruby-lang.org wrote:

[ruby-core:85269] Re: [Ruby trunk Bug#14425] rb_funcall too strict on extra args

From: Eric Wong <normalperson@...>
Date: 2018-01-31 01:17:56 UTC
List: ruby-core #85269
mame@ruby-lang.org wrote:
> normalperson (Eric Wong) wrote:
> > Attached are over 500 gem-codesearch results of latest gems.
> 
> nitpick: Your query includes `rb_funcall2`, `rb_funcall3`, and `rb_funcallv` which are safe to pass "`0, 0`".

Oops :x


Btw, I guess this is undefined behavior?
In a standalone case, gcc prints "0", clang prints a randomly high
number.  I expected compilation to fail with both compilers.

```
/* $CC -O2 -Wextra -Wall -o divzero /path/to/this/file.c */
#include <stdio.h>
int main(void)
{
	int a = 0;
	int b = 1;
	int c = a / (a == b);

	printf("%d\n", c);
	return 0;
}
```

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next