All of lore.kernel.org
 help / color / mirror / Atom feed
* Weird build problem with classpath-native/java-initial
@ 2012-09-20  6:39 Steffen Sledz
  2012-10-02 13:53 ` [2011.03-maintenance 0/2] pull request 20121002 Steffen Sledz
  0 siblings, 1 reply; 5+ messages in thread
From: Steffen Sledz @ 2012-09-20  6:39 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Robert Schuster, Henning Heinold

We hit a weird build problem after upgrading from openSUSE 12.1 to 12.2.

We're building oe-classic (2011.03-maintenance). But the problem may be relevant for oe-core/meta-java too.

The first observation was that the do_configure step of classpath-native did not finish.

-------------> bitbake output <----------------
...
NOTE: Running task 7 of 18 (ID: 12, /home/sledz/work/openembedded/recipes/classpath/classpath-native_0.98.bb, do_configure)
NOTE: package classpath-native-0.98-r4: task do_configure: Started
(no more output here)
---------------------------------------------------------------------------------------------

Some investigations later we learned that configure calls a self built java-initial script. This script seams to have a problem.

-------------> config.log <---------------
configure:23774: checking if /home/sledz/work/HydraIP/OE/tmp.6/sysroots/i686-linux/usr/bin/java-initial works
configure:23805: CLASSPATH=.: /home/sledz/work/HydraIP/OE/tmp.6/sysroots/i686-linux/usr/bin/java-initial  Test
/home/sledz/work/HydraIP/OE/tmp.6/sysroots/i686-linux/usr/bin/java-initial: line 14:  9173 Segmentation fault      jamvm-initial ${1+"$@"}
/home/sledz/work/HydraIP/OE/tmp.6/sysroots/i686-linux/usr/bin/java-initial: line 14:  9178 Segmentation fault      jamvm-initial ${1+"$@"}
/home/sledz/work/HydraIP/OE/tmp.6/sysroots/i686-linux/usr/bin/java-initial: line 14:  9183 Segmentation fault      jamvm-initial ${1+"$@"}
/home/sledz/work/HydraIP/OE/tmp.6/sysroots/i686-linux/usr/bin/java-initial: line 14:  9188 Segmentation fault      jamvm-initial ${1+"$@"}
/home/sledz/work/HydraIP/OE/tmp.6/sysroots/i686-linux/usr/bin/java-initial: line 14:  9193 Segmentation fault      jamvm-initial ${1+"$@"}
/home/sledz/work/HydraIP/OE/tmp.6/sysroots/i686-linux/usr/bin/java-initial: line 14:  9198 Segmentation fault      jamvm-initial ${1+"$@"}
...
---------------------------------------------------------------------------------------------

A short look into this script shows the cause for the endless loop.

-------------> /home/sledz/work/HydraIP/OE/tmp.6/sysroots/i686-linux/usr/bin/java-initial  <---------------
#!/bin/sh
#
# Wrapper which (almost) silently restarts the VM in case of segfaults.

redo_from_start=1;
while [ $redo_from_start -eq 1 ]; do
    echo "Running JamVM-initial: ${@}"
    redo_from_start=0;
    jamvm-initial ${1+"$@"}
    if [ $? -eq 139 ]; then
        echo "JamVM-initial crashed - silently trying again"
        redo_from_start=1;
    fi
done
---------------------------------------------------------------------------------------------

I see two problems:

* First the script should not use an endless loop.
* Second the segfault should be fixed.

Any specialists with suggestions handling this?

Regards,
Steffen

BTW: I'm absolutely not a Java specialist.

-- 
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:sledz@dresearch-fe.de
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-10-09 14:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-20  6:39 Weird build problem with classpath-native/java-initial Steffen Sledz
2012-10-02 13:53 ` [2011.03-maintenance 0/2] pull request 20121002 Steffen Sledz
2012-10-02 13:53   ` [2011.03-maintenance 1/2] jamvm: reorganize metadata to simplify backport from meta-java Steffen Sledz
2012-10-02 13:53   ` [2011.03-maintenance 2/2] jamvm-initial: backport 1.4.5 " Steffen Sledz
2012-10-09 14:40   ` [2011.03-maintenance 0/2] pull request 20121002 Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.