[#25272] [Feature #2032] Change the license to "GPLv2+ or Ruby's original". — Yui NARUSE <redmine@...>

Feature #2032: Change the license to "GPLv2+ or Ruby's original".

51 messages 2009/09/02
[#25368] [Feature #2032] Change the license to "GPLv2+ or Ruby's original". — Kazuhiko Shiozaki <redmine@...> 2009/09/04

Issue #2032 has been updated by Kazuhiko Shiozaki.

[#25461] Re: [Feature #2032] Change the license to "GPLv2+ or Ruby's original". — Gregory Brown <gregory.t.brown@...> 2009/09/07

On Fri, Sep 4, 2009 at 1:10 PM, Kazuhiko Shiozaki<redmine@ruby-lang.org> wrote:

[#25463] Re: [Feature #2032] Change the license to "GPLv2+ or Ruby's original". — Yukihiro Matsumoto <matz@...> 2009/09/08

Hi,

[#30610] [Feature #2032] Change the license to "GPLv2+ or Ruby's original". — Shyouhei Urabe <redmine@...> 2010/06/06

Issue #2032 has been updated by Shyouhei Urabe.

[#30611] Re: [Feature #2032] Change the license to "GPLv2+ or Ruby's original". — Yusuke ENDOH <mame@...> 2010/06/06

Hi,

[#30614] Re: [Feature #2032] Change the license to "GPLv2+ or Ruby's original". — Urabe Shyouhei <shyouhei@...> 2010/06/06

> To avoid enbugging a new bug, we must choose the another solutions.

[#30616] Re: [Feature #2032] Change the license to "GPLv2+ or Ruby's original". — Yusuke ENDOH <mame@...> 2010/06/06

2010/6/6 Urabe Shyouhei <shyouhei@ruby-lang.org>:

[#30652] Re: [Feature #2032] Change the license to "GPLv2+ or Ruby's original". — Urabe Shyouhei <shyouhei@...> 2010/06/08

(2010/06/06 20:27), Yusuke ENDOH wrote:

[#25285] [Feature #2033] Move Core Development to Git — Run Paint Run Run <redmine@...>

Feature #2033: Move Core Development to Git

75 messages 2009/09/02
[#25290] [Feature #2033] Move Core Development to Git — Yui NARUSE <redmine@...> 2009/09/02

Issue #2033 has been updated by Yui NARUSE.

[#25297] Re: [Feature #2033] Move Core Development to Git — Jon <jon.forums@...> 2009/09/02

> Some commiter of Ruby live on Windows.

[#25342] Re: [Feature #2033] Move Core Development to Git — Urabe Shyouhei <shyouhei@...> 2009/09/03

Jon wrote:

[#25343] Re: [Feature #2033] Move Core Development to Git — Michal Suchanek <hramrach@...> 2009/09/03

2009/9/4 Urabe Shyouhei <shyouhei@ruby-lang.org>:

[#25345] Re: [Feature #2033] Move Core Development to Git — Urabe Shyouhei <shyouhei@...> 2009/09/03

Michal Suchanek wrote:

[#25299] Re: [Feature #2033] Move Core Development to Git — Eric Hodel <drbrain@...7.net> 2009/09/02

On Sep 2, 2009, at 11:19, Run Paint Run Run wrote:

[#25306] [Feature #2034] Consider the ICU Library for Improving and Expanding Unicode Support — Run Paint Run Run <redmine@...>

Feature #2034: Consider the ICU Library for Improving and Expanding Unicode Support

16 messages 2009/09/03

[#25394] Unmaintained code (Was: Move Core Development to Git) — Eric Hodel <drbrain@...7.net>

On Sep 4, 2009, at 02:16, Urabe Shyouhei wrote:

10 messages 2009/09/05

[#25420] [Bug #2054] Onigurma Isn't Documented — Run Paint Run Run <redmine@...>

Bug #2054: Onigurma Isn't Documented

17 messages 2009/09/05

[#25442] turning off indentation warnings — Aaron Patterson <aaron@...>

Is there a way in 1.9 to turn off only indentation warnings? I like

19 messages 2009/09/06
[#25510] Re: turning off indentation warnings — Nobuyoshi Nakada <nobu@...> 2009/09/10

Hi,

[#25511] [Bug #2079] win32ole's OLEGEN does not create all classes needed when a TLB has more than one class defined — Bruno Antunes <redmine@...>

Bug #2079: win32ole's OLEGEN does not create all classes needed when a TLB has more than one class defined

18 messages 2009/09/10

[#25644] [Bug #2121] mathn/rational destroys Fixnum#/, Fixnum#quo and Bignum#/, Bignum#quo — Charles Nutter <redmine@...>

Bug #2121: mathn/rational destroys Fixnum#/, Fixnum#quo and Bignum#/, Bignum#quo

12 messages 2009/09/19

[#25709] [Bug #2131] f(not x) => syntax error — "James M. Lawrence" <redmine@...>

Bug #2131: f(not x) => syntax error

16 messages 2009/09/22

[#25769] A challenge: Enumerator#next in JRuby — Charles Oliver Nutter <headius@...>

I have a challenge for anyone who wants to discuss, propose

25 messages 2009/09/25
[#25782] Re: A challenge: Enumerator#next in JRuby — Tanaka Akira <akr@...> 2009/09/26

In article <f04d2210909251312q46bd51c0teacc4b0a8c417f0c@mail.gmail.com>,

[#25820] [Feature #2152] Split functionality of Float#inspect and Float#to_s — Roger Pack <redmine@...>

Feature #2152: Split functionality of Float#inspect and Float#to_s

32 messages 2009/09/28

[#25853] [Bug #2160] JSON can't parse input where top-level object is a string — caleb clausen <redmine@...>

Bug #2160: JSON can't parse input where top-level object is a string

11 messages 2009/09/29

[ruby-core:25681] [Bug #2127] Fiber#resume - segfault inside C extension

From: Suraj Kurapati <redmine@...>
Date: 2009-09-21 00:12:52 UTC
List: ruby-core #25681
Bug #2127: Fiber#resume - segfault inside C extension
http://redmine.ruby-lang.org/issues/show/2127

Author: Suraj Kurapati
Status: Open, Priority: Normal
ruby -v: ruby 1.9.2dev (2009-09-14 trunk 24923) [i686-linux]

Hi,

I am using ruby 1.9.2dev (2009-09-14 trunk 24923) [i686-linux].

Both Fiber#resume and rb_fiber_resume() are causing a segfault
when called from inside a very simple C extension (see below).

Thanks for your consideration.

###############################################################
# ls
###############################################################

extconf.rb  main.c

###############################################################
# cat extconf.rb 
###############################################################

require 'mkmf'

have_library('ruby-static', 'ruby_init') ||
have_library('ruby', 'ruby_init')

create_makefile('main')

###############################################################
# cat main.c
###############################################################

#include <stdio.h>
#include <ruby.h>

VALUE body(VALUE arg)
{
    printf("Fiber: Inside fiber body"); 
    fflush(stdout);
    return Qnil;
}

RUBY_GLOBAL_SETUP

int main(int argc, char** argv)
{
    ruby_sysinit(&argc, &argv);
    RUBY_INIT_STACK;
    ruby_init();

    printf("Main: Creating Ruby fiber..."); 
    fflush(stdout);
    VALUE fib = rb_fiber_new(body, Qnil);

    VALUE dump = rb_inspect(fib);
    rb_io_puts(1, &dump, rb_stdout);

    printf("Main: Going to resume fiber...\n"); 
    fflush(stdout);

    rb_funcall(fib, rb_intern("resume"), 0); /* <== SEGFAULT */

    printf("Main: Fiber resumed successfully.\n");
    fflush(stdout);

    return ruby_cleanup(0);
}

###############################################################
# ruby -v extconf.rb 
###############################################################

ruby 1.9.2dev (2009-09-14 trunk 24923) [i686-linux]
checking for ruby_init() in -lruby-static... yes
creating Makefile

###############################################################
# sed -i 's,-shared,,g' Makefile ; make
###############################################################

gcc -I. -I/home/sun/app/ruby-1.9-git/include/ruby-1.9.1/i686-linux -I/home/sun/app/ruby-1.9-git/include/ruby-1.9.1/ruby/backward -I/home/sun/app/ruby-1.9-git/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64  -fPIC -g  -o main.o -c main.c
gcc  -o main.so main.o -L. -L/home/sun/app/ruby-1.9-git/lib -Wl,-R/home/sun/app/ruby-1.9-git/lib -L.  -rdynamic -Wl,-export-dynamic    -lruby-static  -lpthread -lrt -ldl -lcrypt -lm   -lc

###############################################################
# ./main.so
###############################################################

Main: Creating Ruby fiber...#<Fiber:0x8a5938c>
Main: Going to resume fiber...
[BUG] Segmentation fault
ruby 1.9.2dev (2009-09-14 trunk 24923) [i686-linux]

-- control frame ----------
c:0001 p:---- s:0001 b:-001 l:000000 d:000000 ------
---------------------------

fish: Job 1, “./main.so” terminated by signal SIGSEGV (Address boundary error)

####################################################
# gdb main.so core 
####################################################

GNU gdb 6.8
[...]
Core was generated by `./main.so'.
Program terminated with signal 11, Segmentation fault.
[New process 8635]
[New process 8636]
#0  0xb7c539be in uw_frame_state_for () from /usr/lib/libgcc_s.so.1

(gdb) bt full
#0  0xb7c539be in uw_frame_state_for () from /usr/lib/libgcc_s.so.1
No symbol table info available.
#1  0xb7c54011 in _Unwind_Backtrace () from /usr/lib/libgcc_s.so.1
No symbol table info available.
#2  0xb7ddf405 in backtrace () from /lib/libc.so.6
No symbol table info available.
#3  0x08141c33 in rb_vm_bugreport () at vm_dump.c:598
	trace = {0x8141c33, 0x816fb60, 0x816fbba, 0x80e386e, 0xb7ee740c, 0x0 <repeats 1019 times>}
	n = -1209027184
	syms = (char **) 0xb7d4630f
	i = -1209789088
#4  0x0816fb60 in report_bug (file=0x0, line=0, fmt=0x819a2e3 "Segmentation fault", 
    args=0x8aa97d4 "\236é\031k") at error.c:215
	buf = '\0' <repeats 8176 times>, "\230\227ª\bcè\023\b\2102£\b\230~¬\b"
	out = (FILE *) 0xb7e41560
	len = 0
#5  0x0816fbba in rb_bug (fmt=0x819a2e3 "Segmentation fault") at error.c:232
	args = 0x8aa97d4 "\236é\031k"
#6  0x080e386e in sigsegv (sig=11, info=0x8aa980c, ctx=0x8aa988c) at signal.c:616
	th = (rb_thread_t *) 0x8a33288
#7  <signal handler called>
No symbol table info available.
#8  0x6b19e99e in ?? ()
No symbol table info available.


----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next