Hi,

I need to use ruby 1.9.2 with uWSGI, so I compiled it by hand and packaged 
using checkinstall. After that I've compiled uWSGI 1.0-dev-1790 with it:

ldd /usr/bin/uwsgi 
        [...]
        libruby.so.1.9 => /usr/local/lib/libruby.so.1.9 (0x00007f77fbf83000)
        [...]

If I run my rails app with "./scripts/ruby server" then it works fine, but when 
I've tried to run it with uWSGI I got error (log file attached).
I don't know if this is:
1) bug in ruby
2) bug or incompatibility with 1.9.2 in uWSGI
3) my error during ruby or uWSGI compilation

I've looked at bug reports at http://bugs.ruby-lang.org/ and there are some 
segfaults reported, but I can't find anything that would clearly said if I did 
something wrong, or if it's ruby bug.
Before I will post bug report at ruby-lang.org I would like to ask if this may 
be problem in uWSGI? Or maybe I did something obviously wrong? Any hint will 
be appreciated.

Łukasz Mierzwa
[uwsgi-static] added check for /home/app1/public
*** Starting uWSGI 1.0-dev-1790 (64bit) on [Thu Dec 15 22:59:35 2011] ***
compiled with version: 4.4.3 on 15 December 2011 18:48:36
current working directory: /root
detected binary path: /usr/bin/uwsgi
*** jailing uWSGI in /sudoku/app1-17:app1 ***
waiting for jailed master (pid: 9526) death...
using Linux cgroup /cgroup/app1
assigned process 1 to cgroup /cgroup/app1/tasks
set 1073741824 to /cgroup/app1/memory.limit_in_bytes
remounting /proc
setgid() to 33
setuid() to 33
your memory page size is 4096 bytes
building mime-types dictionary from file /etc/mime.types...498 entry found
spawned uWSGI http 1 (pid: 2)
HTTP router/proxy bound on :8080
uwsgi socket 0 bound to TCP address 127.0.0.1:37267 (port auto-assigned) fd 3
Python version: 2.6.5 (r265:79063, Apr 16 2010, 14:15:55)  [GCC 4.4.3]
Python main interpreter initialized at 0x1b7cb90
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
your server socket listen backlog is limited to 100 connections
*** Operational MODE: preforking ***
loading rails app /home/app1
rails app /home/app1 ready
non-rack rails version detected...loading thin adapter...
uwsgi: [BUG] Segmentation fault
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

-- control frame ----------
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 CFUNC  :new
c:0001 p:0000 s:0002 b:0002 l:0026f8 d:0026f8 TOP   
---------------------------
-- Ruby level backtrace information ----------------------------------------
uwsgi:0:in `new'

-- C level backtrace information -------------------------------------------
/usr/local/lib/libruby.so.1.9(rb_vm_bugreport+0x5f) [0x7f4c900748ff]
/usr/local/lib/libruby.so.1.9(+0x63516) [0x7f4c8ff5c516]
/usr/local/lib/libruby.so.1.9(rb_bug+0xb3) [0x7f4c8ff5c6b3]
/usr/local/lib/libruby.so.1.9(+0x10d2a5) [0x7f4c900062a5]
/lib/libpthread.so.0(+0xf8f0) [0x7f4c918758f0]
/lib/libc.so.6(__longjmp_chk+0x18) [0x7f4c8fc750f8]
/usr/local/lib/libruby.so.1.9(+0x1701a3) [0x7f4c900691a3]
/usr/local/lib/libruby.so.1.9(+0x171edc) [0x7f4c9006aedc]
/usr/local/lib/libruby.so.1.9(rb_class_new_instance+0x30) [0x7f4c8ffa8150]
/usr/local/lib/libruby.so.1.9(+0x171f8e) [0x7f4c9006af8e]
/usr/local/lib/libruby.so.1.9(rb_funcall+0x115) [0x7f4c9006b8d5]
uwsgi(uwsgi_rack_init_apps+0x380) [0x454020]
uwsgi(uwsgi_init_all_apps+0x22) [0x42fa82]
uwsgi(uwsgi_start+0x1bf0) [0x432660]
/lib/libc.so.6(clone+0x6d) [0x7f4c8fc5c70d]

[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

pid 9526 ended. Respawning...
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to