Forum: Ruby-core [ruby-trunk - Bug #9013][Open] Crash on start

13fdf0459619bdd17206895a37274fe2?d=identicon&s=25 lemonez (Dmitry Popov) (Guest)
on 2013-10-10 16:28
(Received via mailing list)
Issue #9013 has been reported by lemonez (Dmitry Popov).

----------------------------------------
Bug #9013: Crash on start
https://bugs.ruby-lang.org/issues/9013

Author: lemonez (Dmitry Popov)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: 1.9.3p448
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


I used RubyInstaller to install Ruby on Windows 7 (32-bit). I have many
gems installed, though I'm not able to run gem list (no output). In my
scripts I use mechanize.

I get the following error when I start irb:

C:\>irb
<internal:enc/prelude>:3: [BUG] Segmentation fault
ruby 1.9.3p448 (2013-06-27) [i386-mingw32]

-- Control frame information
-----------------------------------------------
c:0007 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC  :require
c:0006 p:0014 s:0014 b:0014 l:000005 d:000013 BLOCK
<internal:enc/prelude>:3
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 FINISH
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC  :each
c:0003 p:1853060 s:0006 b:0006 l:000005 d:000005 TOP
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00129c d:00129c TOP

I can run ruby as a service using System account (Redmine works fine on
Thin). But when I try to run it from my account I get the following:

C:\www\redmine>ruby script/rails -e production -p 3000
<internal:enc/prelude>:3: [BUG] Segmentation fault
ruby 1.9.3p448 (2013-06-27) [i386-mingw32]

-- Control frame information
-----------------------------------------------
c:0007 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC  :require
c:0006 p:0014 s:0014 b:0014 l:000005 d:000013 BLOCK
<internal:enc/prelude>:3
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 FINISH
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC  :each
c:0003 p:0014 s:0006 b:0006 l:000005 d:000005 TOP
<internal:enc/prelude>:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00073c d:00073c TOP

-- Ruby level backtrace information
----------------------------------------
<internal:enc/prelude>:1:in `<compiled>'
<internal:enc/prelude>:1:in `each'
<internal:enc/prelude>:3:in `block in <compiled>'
<internal:enc/prelude>:3:in `require'

-- C level backtrace information
-------------------------------------------



Re-installation fixes the problem for a while. And I can't figure out
what's causing the bug to reappear.
F6da6f1211565255c0b3c47c577b155c?d=identicon&s=25 zapped (Alexey Shumkin) (Guest)
on 2013-11-06 17:31
(Received via mailing list)
Issue #9013 has been updated by zapped (Alexey Shumkin).


I confirm this bug.
I had ruby 1.9.3p194 installed. Today I've tried to upgrade. I've
downloaded ruby 1.9.3p448 (7-zipped version). After unpacking running
"ruby -v" gives
 ruby 1.9.3p448 (2013-06-27) [i386-mingw32]
but
 ruby -e 'p nil'
gives nothing.

I suspect this is connected with RubyInstaller as far as previuos
version 1.9.3p194 has msvcrt-ruby191.dll of different size. When I put
it to ruby's v1.9.3p448 folder
 ruby -e 'p nil'
gives expected
 nil
but gem install bundler (for example) failes with the error (nearly
translated from Russian) "Cannot find entry point to
ruby_enc_find_extname in DLL msvcrt-ruby191.dll"

After reverting back that DLL. I've got "internal:enc/prelude>:3: [BUG]
Segmentation fault" error once.
----------------------------------------
Bug #9013: Crash on start
https://bugs.ruby-lang.org/issues/9013#change-42786

Author: lemonez (Dmitry Popov)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: 1.9.3p448
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


I used RubyInstaller to install Ruby on Windows 7 (32-bit). I have many
gems installed, though I'm not able to run gem list (no output). In my
scripts I use mechanize.

I get the following error when I start irb:

C:\>irb
<internal:enc/prelude>:3: [BUG] Segmentation fault
ruby 1.9.3p448 (2013-06-27) [i386-mingw32]

-- Control frame information
-----------------------------------------------
c:0007 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC  :require
c:0006 p:0014 s:0014 b:0014 l:000005 d:000013 BLOCK
<internal:enc/prelude>:3
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 FINISH
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC  :each
c:0003 p:1853060 s:0006 b:0006 l:000005 d:000005 TOP
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00129c d:00129c TOP

I can run ruby as a service using System account (Redmine works fine on
Thin). But when I try to run it from my account I get the following:

C:\www\redmine>ruby script/rails -e production -p 3000
<internal:enc/prelude>:3: [BUG] Segmentation fault
ruby 1.9.3p448 (2013-06-27) [i386-mingw32]

-- Control frame information
-----------------------------------------------
c:0007 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC  :require
c:0006 p:0014 s:0014 b:0014 l:000005 d:000013 BLOCK
<internal:enc/prelude>:3
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 FINISH
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC  :each
c:0003 p:0014 s:0006 b:0006 l:000005 d:000005 TOP
<internal:enc/prelude>:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00073c d:00073c TOP

-- Ruby level backtrace information
----------------------------------------
<internal:enc/prelude>:1:in `<compiled>'
<internal:enc/prelude>:1:in `each'
<internal:enc/prelude>:3:in `block in <compiled>'
<internal:enc/prelude>:3:in `require'

-- C level backtrace information
-------------------------------------------



Re-installation fixes the problem for a while. And I can't figure out
what's causing the bug to reappear.
F6da6f1211565255c0b3c47c577b155c?d=identicon&s=25 zapped (Alexey Shumkin) (Guest)
on 2013-11-07 11:14
(Received via mailing list)
Issue #9013 has been updated by zapped (Alexey Shumkin).


Oops! Bug is clearly reproduced on Windows 2003 Server R2 with "plain"
ruby-1.9.3-p448 (just extracted from
http://dl.bintray.com/oneclick/rubyinstaller/ruby-...)

c:\ruby-1.9.3-p448-i386-mingw32\bin>ruby -e 'p nil'
<internal:enc/prelude>:3: [BUG] Segmentation fault
ruby 1.9.3p448 (2013-06-27) [i386-mingw32]

-- Control frame information
-----------------------------------------------
c:0007 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC  :require
c:0006 p:0014 s:0014 b:0014 l:000005 d:000013 BLOCK
<internal:enc/prelude>:3
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 FINISH
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC  :each
c:0003 p:0014 s:0006 b:0006 l:000005 d:000005 TOP
<internal:enc/prelude>:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00125c d:00125c TOP

-- Ruby level backtrace information
----------------------------------------
<internal:enc/prelude>:1:in `<compiled>'
<internal:enc/prelude>:1:in `each'
<internal:enc/prelude>:3:in `block in <compiled>'
<internal:enc/prelude>:3:in `require'

-- C level backtrace information
-------------------------------------------
C:\WINDOWS\system32\ntdll.dll(KiFastSystemCallRet+0x0) [0x7c82845c]
C:\WINDOWS\system32\kernel32.dll(WaitForSingleObject+0x12) [0x77e61c75]
c:\ruby-1.9.3-p448-i386-mingw32\bin\msvcrt-ruby191.dll(rb_vm_bugreport+0xf9)
[0x62e5bec5]
c:\ruby-1.9.3-p448-i386-mingw32\bin\msvcrt-ruby191.dll(rb_name_err_mesg_new+0x17a)
[0x62d3a87a]
c:\ruby-1.9.3-p448-i386-mingw32\bin\msvcrt-ruby191.dll(rb_bug+0x2f)
[0x62d3b557]
c:\ruby-1.9.3-p448-i386-mingw32\bin\msvcrt-ruby191.dll(rb_check_safe_str+0x194)
[0x62dee898]
 [0x004011e6]
C:\WINDOWS\system32\kernel32.dll(RemoveDirectoryA+0x204) [0x77e76157]

-- Other runtime information
-----------------------------------------------

* Loaded script: ruby

* Loaded features:

    0 enumerator.so
    1
c:/ruby-1.9.3-p448-i386-mingw32/lib/ruby/1.9.1/i386-mingw32/enc/encdb.so
    2
c:/ruby-1.9.3-p448-i386-mingw32/lib/ruby/1.9.1/i386-mingw32/enc/koi8_r.so
    3
c:/ruby-1.9.3-p448-i386-mingw32/lib/ruby/1.9.1/i386-mingw32/enc/windows_1251.so

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension
libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html


This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
----------------------------------------
Bug #9013: Crash on start
https://bugs.ruby-lang.org/issues/9013#change-42796

Author: lemonez (Dmitry Popov)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: 1.9.3p448
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


I used RubyInstaller to install Ruby on Windows 7 (32-bit). I have many
gems installed, though I'm not able to run gem list (no output). In my
scripts I use mechanize.

I get the following error when I start irb:

C:\>irb
<internal:enc/prelude>:3: [BUG] Segmentation fault
ruby 1.9.3p448 (2013-06-27) [i386-mingw32]

-- Control frame information
-----------------------------------------------
c:0007 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC  :require
c:0006 p:0014 s:0014 b:0014 l:000005 d:000013 BLOCK
<internal:enc/prelude>:3
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 FINISH
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC  :each
c:0003 p:1853060 s:0006 b:0006 l:000005 d:000005 TOP
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00129c d:00129c TOP

I can run ruby as a service using System account (Redmine works fine on
Thin). But when I try to run it from my account I get the following:

C:\www\redmine>ruby script/rails -e production -p 3000
<internal:enc/prelude>:3: [BUG] Segmentation fault
ruby 1.9.3p448 (2013-06-27) [i386-mingw32]

-- Control frame information
-----------------------------------------------
c:0007 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC  :require
c:0006 p:0014 s:0014 b:0014 l:000005 d:000013 BLOCK
<internal:enc/prelude>:3
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 FINISH
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC  :each
c:0003 p:0014 s:0006 b:0006 l:000005 d:000005 TOP
<internal:enc/prelude>:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00073c d:00073c TOP

-- Ruby level backtrace information
----------------------------------------
<internal:enc/prelude>:1:in `<compiled>'
<internal:enc/prelude>:1:in `each'
<internal:enc/prelude>:3:in `block in <compiled>'
<internal:enc/prelude>:3:in `require'

-- C level backtrace information
-------------------------------------------



Re-installation fixes the problem for a while. And I can't figure out
what's causing the bug to reappear.
E7cff3cfd41c495e1012227d7dc24202?d=identicon&s=25 Luis Lavena (luislavena)
on 2013-11-07 13:08
(Received via mailing list)
Can you tell us what is the system and the console codepage? (use chcp
in
the command prompt)

Thank you.

Sorry for top posting. Sent from mobile.
On Nov 7, 2013 7:13 AM, "zapped (Alexey Shumkin)"
<Alex.Crezoff@gmail.com>
Eabad423977cfc6873b8f5df62b848a6?d=identicon&s=25 hsbt (Hiroshi SHIBATA) (Guest)
on 2013-11-29 11:09
(Received via mailing list)
Issue #9013 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Open to Feedback


----------------------------------------
Bug #9013: Crash on start
https://bugs.ruby-lang.org/issues/9013#change-43249

Author: lemonez (Dmitry Popov)
Status: Feedback
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: 1.9.3p448
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


I used RubyInstaller to install Ruby on Windows 7 (32-bit). I have many
gems installed, though I'm not able to run gem list (no output). In my
scripts I use mechanize.

I get the following error when I start irb:

C:\>irb
<internal:enc/prelude>:3: [BUG] Segmentation fault
ruby 1.9.3p448 (2013-06-27) [i386-mingw32]

-- Control frame information
-----------------------------------------------
c:0007 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC  :require
c:0006 p:0014 s:0014 b:0014 l:000005 d:000013 BLOCK
<internal:enc/prelude>:3
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 FINISH
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC  :each
c:0003 p:1853060 s:0006 b:0006 l:000005 d:000005 TOP
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00129c d:00129c TOP

I can run ruby as a service using System account (Redmine works fine on
Thin). But when I try to run it from my account I get the following:

C:\www\redmine>ruby script/rails -e production -p 3000
<internal:enc/prelude>:3: [BUG] Segmentation fault
ruby 1.9.3p448 (2013-06-27) [i386-mingw32]

-- Control frame information
-----------------------------------------------
c:0007 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC  :require
c:0006 p:0014 s:0014 b:0014 l:000005 d:000013 BLOCK
<internal:enc/prelude>:3
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 FINISH
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC  :each
c:0003 p:0014 s:0006 b:0006 l:000005 d:000005 TOP
<internal:enc/prelude>:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00073c d:00073c TOP

-- Ruby level backtrace information
----------------------------------------
<internal:enc/prelude>:1:in `<compiled>'
<internal:enc/prelude>:1:in `each'
<internal:enc/prelude>:3:in `block in <compiled>'
<internal:enc/prelude>:3:in `require'

-- C level backtrace information
-------------------------------------------



Re-installation fixes the problem for a while. And I can't figure out
what's causing the bug to reappear.
13fdf0459619bdd17206895a37274fe2?d=identicon&s=25 lemonez (Dmitry Popov) (Guest)
on 2013-12-06 14:17
(Received via mailing list)
Issue #9013 has been updated by lemonez (Dmitry Popov).


I'm using 32-bit Windows 7 Enterprise.

C:\>chcp
Active code page: 866
----------------------------------------
Bug #9013: Crash on start
https://bugs.ruby-lang.org/issues/9013#change-43460

Author: lemonez (Dmitry Popov)
Status: Feedback
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: 1.9.3p448
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


I used RubyInstaller to install Ruby on Windows 7 (32-bit). I have many
gems installed, though I'm not able to run gem list (no output). In my
scripts I use mechanize.

I get the following error when I start irb:

C:\>irb
<internal:enc/prelude>:3: [BUG] Segmentation fault
ruby 1.9.3p448 (2013-06-27) [i386-mingw32]

-- Control frame information
-----------------------------------------------
c:0007 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC  :require
c:0006 p:0014 s:0014 b:0014 l:000005 d:000013 BLOCK
<internal:enc/prelude>:3
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 FINISH
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC  :each
c:0003 p:1853060 s:0006 b:0006 l:000005 d:000005 TOP
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00129c d:00129c TOP

I can run ruby as a service using System account (Redmine works fine on
Thin). But when I try to run it from my account I get the following:

C:\www\redmine>ruby script/rails -e production -p 3000
<internal:enc/prelude>:3: [BUG] Segmentation fault
ruby 1.9.3p448 (2013-06-27) [i386-mingw32]

-- Control frame information
-----------------------------------------------
c:0007 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC  :require
c:0006 p:0014 s:0014 b:0014 l:000005 d:000013 BLOCK
<internal:enc/prelude>:3
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 FINISH
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC  :each
c:0003 p:0014 s:0006 b:0006 l:000005 d:000005 TOP
<internal:enc/prelude>:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00073c d:00073c TOP

-- Ruby level backtrace information
----------------------------------------
<internal:enc/prelude>:1:in `<compiled>'
<internal:enc/prelude>:1:in `each'
<internal:enc/prelude>:3:in `block in <compiled>'
<internal:enc/prelude>:3:in `require'

-- C level backtrace information
-------------------------------------------



Re-installation fixes the problem for a while. And I can't figure out
what's causing the bug to reappear.
This topic is locked and can not be replied to.