Segmentation fault with OneClickInstaller 1.8.4

A

Anatol Pomozov

------=_Part_4006_22317207.1140387653482
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi, all.

I am using Stemmer4r library in my application. And it work perfect on
1.8.2-15 (as you gess I am under Windows)

But after upgrading ruby to 184 I start getting [BUG] Segmentation fault in
my application in following line
Stemmer.new('en')

it is just simple object creation and if I move it from my application
codebase to separate script it runs without any problems

This is a script
begin
if RUBY_PLATFORM =3D~ /win/
require 'stemmer4r/ext/win32/stemmer4r' #Load Win specific so library
else
require 'stemmer4r/ext/freebsd/stemmer4r' #For FreeBSD
end
end

stemmer =3D Stemmer.new('en')
p stemmer

this is output
C:\work\app\lib>a.rb
#<Stemmer:0x2879f78>

I have no clue about the reason of this error. How could I solve it? Would
be glad to provide any additional info.
 
A

Anatol Pomozov

------=_Part_4018_21479298.1140388133481
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

After commenting this line I have SegFault in another place

...
return if singleton_methods.include? '__old__find'
...

So that it is not Stemmer but Ruby specific bug. Seems that
1.8.4distibution very unstable on Windows.
Have anybody SegFaults with OneClickInstaller??

Hi, all.

I am using Stemmer4r library in my application. And it work perfect on
1.8.2-15 (as you gess I am under Windows)

But after upgrading ruby to 184 I start getting [BUG] Segmentation fault = in
my application in following line
Stemmer.new('en')

it is just simple object creation and if I move it from my application
codebase to separate script it runs without any problems

This is a script
begin
if RUBY_PLATFORM =3D~ /win/
require 'stemmer4r/ext/win32/stemmer4r' #Load Win specific so library
else
require 'stemmer4r/ext/freebsd/stemmer4r' #For FreeBSD
end
end

stemmer =3D Stemmer.new('en')
p stemmer

this is output
C:\work\app\lib>a.rb
#<Stemmer:0x2879f78>

I have no clue about the reason of this error. How could I solve it? Woul= d
be glad to provide any additional info.
 
L

Lou Vanek

this may explain it,
http://djberg96.livejournal.com/63514.html

Anatol said:
After commenting this line I have SegFault in another place

...
return if singleton_methods.include? '__old__find'
...

So that it is not Stemmer but Ruby specific bug. Seems that
1.8.4distibution very unstable on Windows.
Have anybody SegFaults with OneClickInstaller??

Hi, all.

I am using Stemmer4r library in my application. And it work perfect on
1.8.2-15 (as you gess I am under Windows)

But after upgrading ruby to 184 I start getting [BUG] Segmentation fault in
my application in following line
Stemmer.new('en')

it is just simple object creation and if I move it from my application
codebase to separate script it runs without any problems

This is a script
begin
if RUBY_PLATFORM =~ /win/
require 'stemmer4r/ext/win32/stemmer4r' #Load Win specific so library
else
require 'stemmer4r/ext/freebsd/stemmer4r' #For FreeBSD
end
end

stemmer = Stemmer.new('en')
p stemmer

this is output
C:\work\app\lib>a.rb
#<Stemmer:0x2879f78>

I have no clue about the reason of this error. How could I solve it? Would
be glad to provide any additional info.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,807
Latest member
ryef

Latest Threads

Top