Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Mar 2005 09:41:15 +0100
From:      cyb <"cyb."@gmx.net>
To:        freebsd-questions@freebsd.org
Subject:   java / azureus core dumps if cputype is set in make.conf
Message-ID:  <1111826475.514.26.camel@p4-3200.local>

next in thread | raw e-mail | index | archive | help

--=-8kUf9JEzChUopHGpZ4B4
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hello everyone,

  I recently rebuilt my FreeBSD 5.3 system. I updated the source with
cvsup to RELENG_5_3 (security branch). This time i added the CPUTYPE,
CFLAGS and NOPROFILE variables to my /etc/make.conf so it would look
like this:

CPUTYPE=3D p4
CFLAGS=3D -O -pipe
NOPROFILE=3D true
PERL_VER=3D5.8.6
PERL_VERSION=3D5.8.6

Building and installing world and kernel went well, everything works
fine.

I installed Azureus (java bittorrent client). The problem is, if I
scroll a scrollbar or just go to the Azureus option menu, I get a core
dump of java and Azureus will give me the following messages in the
error log:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 10 occurred at PC=3D0x34C0CB3A
Function=3D_gtk_tree_view_queue_draw_node+0x1B5B
Library=3D/usr/X11R6/lib/libgtk-x11-2.0.so.600
...
Heap at VM Abort:
Heap
 def new generation   total 576K, used 250K [0x2c470000, 0x2c510000, 0x2c95=
0000)  eden space 512K,  47% used [0x2c470000, 0x2c4acd58, 0x2c4f0000)
  from space 64K,  11% used [0x2c500000, 0x2c501e08, 0x2c510000)
  to   space 64K,   0% used [0x2c4f0000, 0x2c4f0000, 0x2c500000)
 tenured generation   total 5156K, used 4372K [0x2c950000, 0x2ce59000, 0x30=
470000)
   the space 5156K,  84% used [0x2c950000, 0x2cd95148, 0x2cd95200, 0x2ce590=
00)
 compacting perm gen  total 9216K, used 9013K [0x30470000, 0x30d70000, 0x34=
470000)
   the space 9216K,  97% used [0x30470000, 0x30d3d718, 0x30d3d800, 0x30d700=
00)

Local Time =3D Sat Mar 26 00:34:53 2005
Elapsed Time =3D 12
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-p7-cyb_25_mar_2005_18_25 mixed=
 mode)
#

After a lot of testing I was able to narrow the problem down to
gtk-2.6.4_1 which i had to built with this /etc/make.conf

#CPUTYPE=3D p4
CFLAGS=3D -O -pipe
NOPROFILE=3D true
PERL_VER=3D5.8.6
PERL_VERSION=3D5.8.6

Now my question, is it usefull to set the CPUTYPE in make.conf to
activate prozessor-specific optimizations at all?

taken from the example make.conf:
> # The CPUTYPE variable controls which processor should be targeted for
> # generated code.  This controls processor-specific optimizations in
> # certain code (currently only OpenSSL) as well as modifying the value
> # of CFLAGS to contain the appropriate optimization directive to gcc.

Has someone else had problems with Azureus/gtk2 if the CPUTYPE was set?
Is there a known bug in Azureus/gtk2 preventing the use of CPUTYPE?

Regards,
 Andreas

--=20
GnuPG key  : 0xD25FCC81  |  http://cyb.websimplex.de/pubkey.asc
Fingerprint: D182 6F22 7EEC DD4C 0F6E  564C 691B 0372 D25F CC81




--=-8kUf9JEzChUopHGpZ4B4
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQBCRSAraRsDctJfzIERAomkAJsEg4mAS9BxkzAhGuDuNiDGZ03rEACZAVUe
4ofwJr0oDHsDMhuuqmM+qAw=
=vH5o
-----END PGP SIGNATURE-----

--=-8kUf9JEzChUopHGpZ4B4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1111826475.514.26.camel>