Segmentation fault on buildr process

12 views
Skip to first unread message

ldibanyez

unread,
Sep 10, 2009, 3:45:00 PM9/10/09
to tempo-dev
Hi,

I tried to install tempo in my Debian Lenny box, but when try to run
the tempo_builder.rb, i got this error:

/usr/lib/ruby/1.8/ftools.rb:64:in `initialize': No such file or
directory - ./tempo-tomcat5-2009.09.10/webapps/axis2/WEB-INF/conf
(Errno::ENOENT)
from /usr/lib/ruby/1.8/ftools.rb:64:in `open'
from /usr/lib/ruby/1.8/ftools.rb:64:in `syscopy'
from /usr/lib/ruby/1.8/ftools.rb:89:in `copy'
from /home/libanez/Desarrollos/tempo/rsc/scripts/../scripts/lib/
bundle_standalone.rb:18:in `setup_axis'
from /home/libanez/Desarrollos/tempo/rsc/scripts/../scripts/lib/
bundle_standalone.rb:5:in `setup_axis_and_ode'
from rsc/scripts/tempo_builder.rb:68:in `build'
from /home/libanez/Desarrollos/tempo/rsc/scripts/../scripts/lib/
build_support.rb:52:in `activate_step'
from rsc/scripts/tempo_builder.rb:66:in `build'
from rsc/scripts/tempo_builder.rb:154

In fact, the axis2 directory is empty.


After reading some blogs, i tried to build with buildr prior to the
execution of tempo_buildr.rb, but it crashed with seg fault at the
jdbc postgres.jar

Downloading postgresql:postgresql:jar:8.3-603.jdbc3
Downloading http://repo1.maven.org/maven2/postgresql/postgresql/8.3-603.jdbc3/postgresql-8.3-603.jdbc3.jar
Segmentation Fault

Any ideas of what is happenning?

Thanks in advance.

Tshegofatso Manakana

unread,
Sep 11, 2009, 3:37:50 AM9/11/09
to temp...@googlegroups.com
Hi,

Are you using proxy server to access web? Try paste the URL http://repo1.maven.org/maven2/postgresql/postgresql/8.3-603.jdbc3/postgresql-8.3-603.jdbc3.jar to your web browser. If you go through immediately then I am wrong. If you get blocked by the proxy then that is whats happening...
--
Tshegofatso Manakana
Cell: 082 874 6774
Fax: 086 520 1046

Nicolas Modrzyk

unread,
Sep 11, 2009, 5:32:15 AM9/11/09
to temp...@googlegroups.com
When you install buildr, and especially the dependency rjb, try to use
a 1.5 jdk.
It should prevent the segfault when downloading artifact.

nico

ldibanyez

unread,
Sep 11, 2009, 11:21:38 AM9/11/09
to tempo-dev
Hi, thanks for the quick answer!

Tshegofatso: No, i have no proxy.

Nicolas: I changed the JAVA_HOME to point to jdk 1.5 and rerun the
buildr, this time the postgres jar downloaded succesfully. The process
continued, and ran a lot of junit test that, apparently, all passed.
But when i ran againt the tempo_builder.rb, the same mistake arose
again:

--> Prepare standalone open source tomcat build
An error occurred: Directory not empty - apache-tomcat-5.5.27 or tempo-
tomcat5-2009.09.11
/usr/lib/ruby/1.8/ftools.rb:64:in `initialize': No such file or
directory - ./tempo-tomcat5-2009.09.11/webapps/axis2/WEB-INF/conf
(Errno::ENOENT)
from /usr/lib/ruby/1.8/ftools.rb:64:in `open'
from /usr/lib/ruby/1.8/ftools.rb:64:in `syscopy'
from /usr/lib/ruby/1.8/ftools.rb:89:in `copy'
from /home/libanez/Desarrollos/tempo/rsc/scripts/../scripts/
lib/bundle_standalone.rb:18:in `setup_axis'
from /home/libanez/Desarrollos/tempo/rsc/scripts/../scripts/
lib/bundle_standalone.rb:5:in `setup_axis_and_ode'
from rsc/scripts/tempo_builder.rb:68:in `build'
from /home/libanez/Desarrollos/tempo/rsc/scripts/../scripts/
lib/build_support.rb:52:in `activate_step'
from rsc/scripts/tempo_builder.rb:66:in `build'
from rsc/scripts/tempo_builder.rb:154


I'm going to try to uninstall buildr and install it again with the jdk
1.5, to see what happens.

On Sep 11, 5:32 am, Nicolas Modrzyk <hellon...@gmail.com> wrote:
> When you install buildr, and especially the dependency rjb, try to use
> a 1.5 jdk.
> It should prevent the segfault when downloading artifact.
>
> nico
>
> On Fri, Sep 11, 2009 at 4:37 PM, Tshegofatso Manakana
>
>
>
> <tmanak...@gmail.com> wrote:
> > Hi,
>
> > Are you using proxy server to access web? Try paste the URL
> >http://repo1.maven.org/maven2/postgresql/postgresql/8.3-603.jdbc3/pos...
> > to your web browser. If you go through immediately then I am wrong. If you
> > get blocked by the proxy then that is whats happening...
>
> >>http://repo1.maven.org/maven2/postgresql/postgresql/8.3-603.jdbc3/pos...

ldibanyez

unread,
Sep 11, 2009, 12:22:36 PM9/11/09
to tempo-dev
> I'm going to try to uninstall buildr and install it again with the jdk
> 1.5, to see what happens.

No advance, same error. It seems to me that, although i delete the
tempo git clone, the next build try is not completeley clean. What
should i remove to attempt a clean reinstall?

In Debian i needed to install, besides ruby, ruby-dev

rubygems, from official site, because of the blocking introduced by
debian packagers

Gems:
gem buildr (dependent on rjb and antwrap)
gem hpricot

ruby1.8. rubydev.

Tomcat 5.5

Anything else that i need to remove? i could remove everything except
the tomcat.

Anyway, the root of the problem seems that axis2 is not deploying
correctly, any log where i can check this?

thanks in advance

Nicolas Modrzyk

unread,
Sep 13, 2009, 7:23:34 PM9/13/09
to temp...@googlegroups.com
The config.rb in the same folder as the tempo_buildr.rb script points
to the location where the build is going to be created.
Maybe one of your downloads did not succeed and the axis war file
could not be installed.

Nico
Reply all
Reply to author
Forward
0 new messages