OFFTOP? mysql_adapter.rb:576: [BUG] Segmentation fault

10 views
Skip to first unread message

alex ko

unread,
Nov 16, 2009, 10:14:40 AM11/16/09
to ruote
Hello there,

I am encountering segfaults with following:

ruby 1.8.6 (2008-08-11) [i386-mswin32] on windows 7,
rails 2.3.2,
mysql (2.7.1) gem and
MySQL 5.0.87-community-nt-log

Tried with MySQL 5.1 and mysql gem 2.8.1 with no luck.

Loga are showing:

C:\Users\Alex\Documents\IT\ruote-web2>ruby script\server --port=3333
=> Booting Mongrel
=> Rails 2.3.2 application starting on http://0.0.0.0:3333
.. Ruote workflow/BPM engine started (ruote_plugin)
.. found C:/Users/Alex/Documents/IT/ruote-web2/lib/ruote.rb
=> Call with -d to detach
=> Ctrl-C to shutdown server
.....
Group Load (0.0ms) SELECT `groups`.* FROM `groups` INNER JOIN
`user_groups`
ON `groups`.id = `user_groups`.group_id WHERE ((`user_groups`.user_id
= 1))
Group Columns (2.0ms) SHOW FIELDS FROM `groups`
Completed in 66ms (View: 32, DB: 5) | 200 OK [http://localhost/
processes]
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
connection_a
dapters/mysql_adapter.rb:576: [BUG] Segmentation fault
ruby 1.8.6 (2008-08-11) [i386-mswin32]

C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt, Version: 5.0.87-
community-nt-log (MySQL Community Edition (GPL)). started with:
TCP Port: 3306, Named Pipe: (null)
Time Id Command Argument

091116 16:38:29 18 Connect ruote@localhost on rw2_development
18 Query SET NAMES 'utf8'
18 Query SET SQL_AUTO_IS_NULL=0
18 Statistics
091116 16:38:30 18 Query SHOW FIELDS FROM `users`
18 Query SELECT * FROM `users` WHERE (`users`.`id` = 1)
LIMIT 1
18 Query SELECT `groups`.* FROM `groups` INNER JOIN
`user_groups` ON `groups`.id = `user_groups`.group_id WHERE
((`user_groups`.user_id = 1))
18 Query SHOW FIELDS FROM `groups`
18 Statistics

Can anyone help with this problem?
Thanks a lot in advance.
----
A.

John Mettraux

unread,
Nov 16, 2009, 7:58:21 PM11/16/09
to openwfe...@googlegroups.com
On Tue, Nov 17, 2009 at 12:14 AM, alex ko <alexei.k...@gmail.com> wrote:
>
> I am encountering segfaults with following:
>
> ruby 1.8.6 (2008-08-11) [i386-mswin32] on windows 7,
> rails 2.3.2,
> mysql (2.7.1) gem and
> MySQL 5.0.87-community-nt-log
>
> Tried with MySQL 5.1 and mysql gem 2.8.1 with no luck.
>
> Loga are showing:
>
> C:\Users\Alex\Documents\IT\ruote-web2>ruby script\server --port=3333
> => Booting Mongrel
> => Rails 2.3.2 application starting on http://0.0.0.0:3333
> .. Ruote workflow/BPM engine started (ruote_plugin)
> .. found C:/Users/Alex/Documents/IT/ruote-web2/lib/ruote.rb
>
> (...)

>
> Can anyone help with this problem?

Hello Alex,

sorry, I have no windows system at hand, and we're moving on with
ruote2.0 and ruote-kit (http://github.com/kennethkalmer/ruote-kit).


Best regards,

--
John Mettraux - http://jmettraux.wordpress.com

alex ko

unread,
Nov 17, 2009, 3:55:29 AM11/17/09
to ruote
Hello John,

Thanks a lot for your prompt reply.

I'm learning about ruote and pick ruote-web2 in order to get some UI.
I did not find a lot of documentation about ruote-kit so far.
Could you please advise where to look?

Best regards,

----
Alex

Kenneth Kalmer

unread,
Nov 17, 2009, 2:35:47 PM11/17/09
to openwferu-users
2009/11/17 alex ko <alexei.k...@gmail.com>
I'm learning about ruote and pick ruote-web2 in order to get some UI.
I did not find a lot of documentation about ruote-kit so far.
Could you please advise where to look?

Hi Alex

I'm busy working hard to get ruote-kit into an alpha stage where you can start toying around with it. As I get there, which is hopefully by the weekend, I'll post to the list for initial feedback. The project has a while to go still but I need it desperately for two production installations of ruote as well as upholding my commitment to this great community.

Please keep an eye out on the list for that announcement, and apologies for being in such a state of flux at the moment.

Best

--
Kenneth Kalmer
kenneth...@gmail.com
http://opensourcery.co.za
@kennethkalmer

scott wade

unread,
Nov 17, 2009, 3:13:21 PM11/17/09
to openwfe...@googlegroups.com
thats excellent Kenneth.

John and Kenneth.  I'm sorry to say, I'm still a bit confused about what pieces of ruote and which versions are being considered for future use and adoption.  I've gone through many notes, but not sure if ruote2.0 is all things, or if its modules of kit, etc.  

Also I'd like to begin tackling the use of workflow for our new application.  I'm not a ROR guru, so don't feel I can contribute much past getting it to work, and asking many dumb question.  But I'm not sure what git package to use. Do I ask/wait for John's ruote2.0? Do I use ruote-http and ruote-kit (what is the difference) what about all the other ruote-xxx?

I'd appreciate any insight you can share. 

Thank you.
Scott


--
you received this message because you are subscribed to the "ruote users" group.
to post : send email to openwfe...@googlegroups.com
to unsubscribe : send email to openwferu-use...@googlegroups.com
more options : http://groups.google.com/group/openwferu-users?hl=en

John Mettraux

unread,
Nov 17, 2009, 7:44:13 PM11/17/09
to openwfe...@googlegroups.com
On Wed, Nov 18, 2009 at 5:13 AM, scott wade <scw...@gmail.com> wrote:
>
> Also I'd like to begin tackling the use of workflow for our new
> application.  I'm not a ROR guru, so don't feel I can contribute much past
> getting it to work, and asking many dumb question.  But I'm not sure what
> git package to use. Do I ask/wait for John's ruote2.0? Do I use ruote-http
> and ruote-kit (what is the difference) what about all the other ruote-xxx?

Hello Scott,

any feedback is appreciated. Dumb questions are appreciated as well,
they help refine documents, clarify misunderstandings, etc...

Active (ruote 2.0) :

- ruote - now at 2.0, it's the core engine [library]
- ruote-kit - an HTTP (HTML and JSON) wrapper for ruote, with a RESTful ideal
- ruote-http - same as ruote-kit but prototypical (don't use it)
- ruote-dm - DataMapper persistence (expressions / participants) for ruote
- ruote-activerecord -

- ruote-fluo - a library for javascript canvas for drawing process definitions
- ruote-forms - a javascript lib for editing workitem payload (well JSON hashes)

In maintenance :

- ruote-rest - based on ruote 0.9.x, the ancestor of ruote-kit (and ruote-http)
- ruote-transition - a library for turning XPDL into ruote's process
definition language

Almost dead :

- ruote-web2 - a rails based ruote wrapper (no time to maintain it)
- ruote_plugin - used in ruote-web2

Dead :

- ruote-web

The future :

- ruote 2.1, I'm working on an evolution of ruote based on a worker
architecture. Changes a lot of things for the storage.


I guess when you say "application" it's a Rails web application. The
recommended arch for now is ruote-kit on the backend. You could also
use ruote2.0 as a library in your rails app, but beware multi -
ruby-processes setups, it should be OK, but test thoroughly.


I hope this will help, best regards,

alex ko

unread,
Nov 18, 2009, 4:42:49 AM11/18/09
to ruote
Hi Kenneth,

Thanks a lot for your prompt reply and your commitment.
I have some success with ruote-kit on win32 so far with one remark:

C:\Users\Alex\Documents\IT\ruote-kit>ruby -e 'puts
Signal.list.keys.join(" ")'
TERM SEGV KILL EXIT INT FPE ABRT ILL

So I had to comment out lines 56 - 66 in initializer.rb as follows:

C:/Ruby/lib/ruby/gems/1.8/gems/daemon-kit-0.1.7.10/lib/daemon_kit/
initializer.rb

def initialize_logger
return if DaemonKit.logger

unless logger = configuration.logger
logger = AbstractLogger.new( configuration.log_path )
logger.level = configuration.log_level
logger.copy_to_stdout = configuration.log_stdout
end

DaemonKit.logger = logger

DaemonKit.logger.info "DaemonKit (#{DaemonKit::VERSION}) booting
in #{DAEMON_ENV} mode"

# configuration.trap("USR1") {
# DaemonKit.logger.level =
DaemonKit.logger.debug? ? :info : :debug
# DaemonKit.logger.info "Log level changed to #
{DaemonKit.logger.debug? ? 'DEBUG' : 'INFO' }"
# }
# configuration.trap("USR2") {
# DaemonKit.logger.level = :debug
# DaemonKit.logger.info "Log level changed to DEBUG"
# }
# configuration.trap("HUP") {
# DaemonKit.logger.close
# }
end

I know this is awful but it's my best so far. :)

Well it starts:

C:\Users\Alex\Documents\IT\ruote-kit>ruby bin\ruote-kit
C:/Ruby/lib/ruby/gems/1.8/gems/daemon-kit-0.1.7.10/lib/daemon_kit/
initializer.rb: DaemonKit (0.1.7.10) booting in develo
pment mode
C:/Ruby/lib/ruby/gems/1.8/gems/daemon-kit-0.1.7.10/lib/daemon_kit/
initializer.rb: Setting up trap for INT
C:/Ruby/lib/ruby/gems/1.8/gems/daemon-kit-0.1.7.10/lib/daemon_kit/
initializer.rb: Setting up trap for TERM
C:/Ruby/lib/ruby/gems/1.8/gems/daemon-kit-0.1.7.10/lib/daemon_kit/
initializer.rb: DaemonKit (0.1.7.10) booted, now runni
ng ruote-kit
C:/Users/Alex/Documents/IT/ruote-kit/lib/ruote-kit.rb: Configuring
engine
C:/Users/Alex/Documents/IT/ruote-kit/lib/ruote-kit.rb: Configuring
Sinatra
>> Thin web server (v1.2.4 codename Flaming Astroboy)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:8080, CTRL+C to stop
127.0.0.1 - - [18/Nov/2009 08:13:21] "GET /processes/new HTTP/1.1" 200
2965 0.0730
127.0.0.1 - - [18/Nov/2009 08:13:21] "GET /base.css HTTP/1.1" 304 -
0.0080
127.0.0.1 - - [18/Nov/2009 08:13:22] "GET /style.css HTTP/1.1" 304 -
0.0090
127.0.0.1 - - [18/Nov/2009 08:13:38] "GET /workitems HTTP/1.1" 404
1880 0.0300

I loaded one XML simple process definition through "Launch a new
process" and it seems persistent over server restarts. Is there any
kind of fluo available in ruote-kit? Also the process list shows only
the number of processes at the moment.

Can you help me please with the way how to define participants?

I found some of generators available:
[amqp, cron, cucumber, jabber, nanite_agent, rspec, ruote]
and generated jabber and ruote samples. Can someone give me a hint how
to start them?

I wonder if there is a way to run ruote-kit/thin as a service on win32
similar to mongrel_service.

At the moment I have huge lack of even basic ruote knowledge so I
apologies for my newbish questions and appreciate any help.

Best regards,

----
Alex

Kenneth Kalmer

unread,
Nov 18, 2009, 9:19:32 AM11/18/09
to openwfe...@googlegroups.com

This is a big step towards having windows support. I've discussed with a couple of folks in #daemon-kit what would be required for windows support and it doesn't seem like too big an issue. Having it as a Windows service might be another can of worms I have yet to uncover.

Nonetheless, I've made sure daemon-kit doesn't try to trap signals not supported by underlying OS (http://github.com/kennethkalmer/daemon-kit/commit/afc66399e7a9339e73934df21768ccdbd00d5d55). Thanks a lot for this !

I loaded one XML simple process definition through "Launch a new
process" and it seems persistent over server restarts. Is there any
kind of fluo available in ruote-kit? Also the process list shows only
the number of processes at the moment.

Today has seen me apply all my working time on ruote-kit, so a lot of the existing interfaces have been updated a lot since your last clone.
 
Can you help me please with the way how to define participants?

I found some of generators available:
[amqp, cron, cucumber, jabber, nanite_agent, rspec, ruote]
and generated jabber and ruote samples. Can someone give me a hint how
to start them?

At the moment I have huge lack of even basic ruote knowledge so I
apologies for my newbish questions and appreciate any help.

This is going to be the tricky part. In order for us (the community) to help you here we need to have an idea of what you want to achieve with ruote. Don't worry about getting the terms right or mixing project names, we just need some feeling for your direction so we can make sure you stay on course.

We're working hard on trying to understand all the issues people have when exposed to the ecosystem so we can iron them out and communicate more clearly how everything fits together. I have to admit, a little over a year ago when I ventured down this path it was just as daunting to me, I am now forever grateful that I stuck with it and got to understand how it all plugs in.

Best
 
Reply all
Reply to author
Forward
0 new messages