From: Masoom Date: 2008-05-21T13:28:23+09:00 Subject: Re: [ruby-core:16807] Embedding Ruby1.9: seg fault ------=_Part_16972_13271645.1211344105341 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline oh, I didn't notice, this example I just typed right here in mail client, my real app does have this problem :) Nobuyoshi, thanks for pointing though my app had been working fine with 1.8 till one day I wanted myself to be using 1.9 when it became available (I was excited, u know) I had to make couple of changes and it worked again but this problem is really out of my reach, it is in ruby internals and am not much familiar with. On Wed, May 21, 2008 at 6:59 AM, Nobuyoshi Nakada wrote: > Hi, > > At Tue, 20 May 2008 21:09:44 +0900, > Masoom wrote in [ruby-core:16816]: > > int init_ruby_vm(int argc, char* argv[]) > > > int main(int argc, char* argv[]) > > { > > return init_ruby_vm(&argc, &argv); > > } > > It's an elementary mistake. You pass a pointer to an integer > as an integer. > > -- > Nobu Nakada > > ------=_Part_16972_13271645.1211344105341 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline oh, I didn't notice, this example I just typed right here in mail client, my real app does have this problem :)
Nobuyoshi, thanks for pointing though

my app had been working fine with 1.8 till one day I wanted myself to be using 1.9 when it became available (I was excited, u know)
I had to make couple of changes and it worked again
but this problem is really out of my reach, it is in ruby internals and am not much familiar with.

On Wed, May 21, 2008 at 6:59 AM, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
Hi,

At Tue, 20 May 2008 21:09:44 +0900,
Masoom wrote in [ruby-core:16816]:
> int init_ruby_vm(int argc, char* argv[])

> int main(int argc, char* argv[])
> {
>     return init_ruby_vm(&argc, &argv);
> }

It's an elementary mistake.  You pass a pointer to an integer
as an integer.

--
Nobu Nakada


------=_Part_16972_13271645.1211344105341--