Published on WSO2 Oxygen Tank (http://wso2.org)

Problem installing WSO2/Ruby on CentOS 5.1

By thelliez
Created 2008-01-19 22:37

After a successful install on Windows 2003, I needed to try on Linux. But it failed with CentOS 5.1.

I installed wsf_c from the rpm. The examples worked ok.

WSO2/Ruby was installed from sources. The (samples) provider service started ok.

But running the consumer exampled (ruby echo_client.rb) failed.

It first failed complaining of a missing so (lib_mod_rampart.so.0). I copied all the files from /opt/wso2/wsf_c/modules/rampart/ to /opt/wso2/wsf_c/lib

The error was still there, so I executed:

export LD_LIBRARY_PATH=/usr/local/lib:${WSFC_HOME}lib

The error went away for another one (seeb buffer overflow below).

Any help would be greatly appreciated.

 

Regards,

Thierry Thelliez

# ruby echo_client.rb
*** buffer overflow detected ***: ruby terminated
======= Backtrace: =========
/lib/libc.so.6(__chk_fail+0x41)[0xa743a1]
/lib/libc.so.6[0xa73de3]
/lib/libc.so.6(__snprintf_chk+0x37)[0xa73cc7]
/usr/lib/ruby/site_ruby/1.8/i386-linux/wsservice.so(wsf_env_create_svr+0xe4)[0x69d374]
/usr/lib/ruby/site_ruby/1.8/i386-linux/wsservice.so(Init_wsservice+0x16d)[0x69e53d]
/usr/lib/libruby.so.1.8(dln_load+0x10f)[0xb3a04f]
/usr/lib/libruby.so.1.8(rb_require_safe+0x5cb)[0xb5665b]
/usr/lib/libruby.so.1.8(rb_f_require+0x29)[0xb56839]
/usr/lib/libruby.so.1.8[0xb40daa]
/usr/lib/libruby.so.1.8[0xb4849b]
/usr/lib/libruby.so.1.8[0xb491b8]
/usr/lib/libruby.so.1.8[0xb50f92]
/usr/lib/libruby.so.1.8(rb_load+0x502)[0xb55fb2]
/usr/lib/libruby.so.1.8(rb_require_safe+0x56b)[0xb565fb]
/usr/lib/libruby.so.1.8(rb_f_require+0x29)[0xb56839]
/usr/lib/libruby.so.1.8[0xb40daa]
/usr/lib/libruby.so.1.8[0xb4849b]
/usr/lib/libruby.so.1.8[0xb491b8]
/usr/lib/libruby.so.1.8[0xb50f92]
/usr/lib/libruby.so.1.8[0xb56a27]
/usr/lib/libruby.so.1.8(ruby_exec+0x22)[0xb56a72]
/usr/lib/libruby.so.1.8(ruby_run+0x2f)[0xb56aaf]
ruby[0x8048622]
/lib/libc.so.6(__libc_start_main+0xdc)[0x9a7dec]
ruby[0x8048521]


Source URL:
http://wso2.org/forum/thread/3083