[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    Re: [Kde-bindings] [Korundum] Crash KDE::Application.new
From:       Richard Dale <Richard_Dale () tipitina ! demon ! co ! uk>
Date:       2004-07-13 11:36:50
Message-ID: 200407131236.50127.Richard_Dale () tipitina ! demon ! co ! uk
[Download RAW message or body]

On Tuesday 13 July 2004 11:09, Alexander Kellett wrote:
> krubyinit is required on several platforms...
> guess your unfortunate enough to have one of them... like me :)
>
> Alex
>
> On Mon, Jun 07, 2004 at 06:01:14PM +0200, Alex Martin Ugalde wrote:
> > > I think you have a krubyinit/phreads initialise problem. There's
> > > usually something or other about threads in the crash trace, but your's
> > > is exceptionally uninformative :(
> >
> > I have recompiled kdebindings without threading support:
> > ./configure --prefix=/usr --with-smoke="qt kde" --without-java
> > --disable-threading
> > make install
> > cd qtruby; make install
> > cd ../korundum; make install
> > ldconfig
> >
> > And when i run bomb.rb, it still crashes (the same error than before).
I one of the lucky few who don't seem to crash, which is nice for me but I 
don't have a clue how to attempt to track it down. On Mac OS X I think we 
need a similar wrapper for different reasons - there it doesn't seem possible 
to make a double clickable scripting application without a compiled top level 
stub.

One thing I noticed:

// this name can be used to allow apps 
// to detect what they were started with
static const char* script_name = "krubyinit_app";

int main(int argc, char **argv) {
     ruby_init();
     ruby_script((char*)script_name);
     ruby_options(argc, argv); 
     ruby_run();
}

If we hard code the script name won't that mess up tests against $0? - it will 
be different depending on whether it was started by krubyinit. That's 
intentional from the comment above, but I wonder if it would be better to 
leave the script name as it is, but set an environment variable 
'KRUBY_INIT_APP' instead?

-- Richard

_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic