Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420721 - dev-java/* with sys-libs/glibc-2.14.1-r3 - broken networking
Summary: dev-java/* with sys-libs/glibc-2.14.1-r3 - broken networking
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-11 18:05 UTC by wbrana
Modified: 2012-06-14 08:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Logs, config, application client (trace.7z,258.25 KB, application/x-7z)
2012-06-11 21:19 UTC, wbrana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wbrana 2012-06-11 18:05:27 UTC
after upgrade from sys-libs/glibc-2.13-r4 TCP JDBC connection to Postgresql server at 127.0.0.1 from 32-bit Java application is randomly disconnected. Both server and client are reporting connection closed.
It doesn't happen with 64-bit Java applications.

Portage 2.1.10.65 (hardened/linux/amd64, gcc-4.4.7, glibc-2.14.1-r3, 3.2.19-hardened x86_64)
=================================================================
System uname: Linux-3.2.19-hardened-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Sat, 09 Jun 2012 00:45:01 +0000
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p29
dev-java/java-config:     2.1.12
dev-lang/python:          2.6.8, 2.7.3-r2, 3.2.3-r1
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.8-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.5, 1.12.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.7, 4.5.3-r2
sys-devel/gcc-config:     1.7.2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 ETQW RTCW-ETEULA googleearth AdobeFlash-10.3 Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /usr/share/maven-bin-3.0/conf /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/mnt/md3/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv webrsync-gpg"
FFLAGS="-O2 -pipe"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="en_GB"
MAKEOPTS="-j2"
PKGDIR="/mnt/md3/cache/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/md3/cache"
PORTDIR="/mnt/md3/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi aio alsa amd64 amr apng berkdb bzip2 cairo caps chm cli consolekit cracklib crypt cxx dbus device-mapper dlz dri dts dvb eix enca exif extensions extras faad ffmpeg flac gdbm glib glibc-omitfp glitz gnutls gudev handbook hardened iconv jit jpeg jpeg2k justify kde lcms lm_sensors logrotate lzma matroska mikmod minizip mmx mng modplug modules mp3 mpeg mudflap multilib mysqli ncurses nodrm nptl nsplugin ogg openal opengl openmp pam pax_kernel pcre pdf pic png policykit pppd qt qt3support qt4 rar readline rtsp schroedinger session slang spell sqlite sqlite3 sse sse2 sse3 ssl ssse3 symlink theora threads tiff truetype unicode urandom usb userpriv v4l2 vlc vorbis vpx x264 xcb xcomposite xml xorg xv xvid zlib" ALSA_CARDS="virtuoso" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 wbrana 2012-06-11 20:15:29 UTC
I was wrong. It happens also with 64-bit Java applications.
Comment 2 wbrana 2012-06-11 21:19:15 UTC
Created attachment 315051 [details]
Logs, config, application client

Application steps: scroll, click and wait, error occurred in less than
30 seconds.
Comment 3 wbrana 2012-06-12 11:05:33 UTC
I can't reproduce with client and server running on OpenSuse 12.1 32-bit (glibc 2.14.1) or
server running on Gentoo 64-bit and client running on Ubuntu 10.04
32-bit VirtualBox virtual machine.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-13 14:26:25 UTC
What Java runtime do you use?
Comment 5 wbrana 2012-06-13 14:32:15 UTC
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
Java HotSpot(TM) 64-bit Server VM (build 23.0-b21, mixed mode)
It occurs also with 1.6.0_32
Comment 6 wbrana 2012-06-13 14:37:58 UTC
Following error appears at stdout/stderr:
org.postgresql.util.PSQLException: This connection has been closed.
        at org.postgresql.jdbc2.AbstractJdbc2Connection.checkClosed(AbstractJdbc2Connection.java:823)
        at org.postgresql.jdbc3.AbstractJdbc3Connection.prepareStatement(AbstractJdbc3Connection.java:272)
        at org.postgresql.jdbc2.AbstractJdbc2Connection.prepareStatement(AbstractJdbc2Connection.java:302)
        at javaapplication3.ViewsThread.run(ViewsThread.java:96)
SQLException: SQLState(08003)
org.postgresql.util.PSQLException: This connection has been closed.
        at org.postgresql.jdbc2.AbstractJdbc2Connection.checkClosed(AbstractJdbc2Connection.java:823)
        at org.postgresql.jdbc2.AbstractJdbc2Connection.rollback(AbstractJdbc2Connection.java:840)
        at javaapplication3.ViewsThread.run(ViewsThread.java:101)
SQLException: SQLState(08003)
org.postgresql.util.PSQLException: This connection has been closed.
        at org.postgresql.jdbc2.AbstractJdbc2Connection.checkClosed(AbstractJdbc2Connection.java:823)
        at org.postgresql.jdbc3.AbstractJdbc3Connection.prepareStatement(AbstractJdbc3Connection.java:272)
        at org.postgresql.jdbc2.AbstractJdbc2Connection.prepareStatement(AbstractJdbc2Connection.java:302)
        at javaapplication3.ViewsThread.run(ViewsThread.java:96)
Comment 7 wbrana 2012-06-13 14:52:16 UTC
database dump
http://www.mediafire.com/?bbbu9anbqxb7ufs
Comment 8 wbrana 2012-06-13 17:13:11 UTC
It happens also with

java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 32-bit Server VM (build 23.1-b03, mixed mode)

but can't reproduce with

java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 32-bit Client VM (build 23.1-b03, mixed mode)
Comment 9 wbrana 2012-06-13 17:26:06 UTC
It also happens with

java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 32-bit Client VM (build 23.1-b03, mixed mode)

if JDBC connection is started by GlassFish server
Comment 10 wbrana 2012-06-13 17:28:32 UTC
kernel update to 3.2.20-hardened didn't help
Comment 11 wbrana 2012-06-13 18:13:10 UTC
booting non-hardened kernel 3.2.20 didn't help
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-13 19:01:48 UTC
(In reply to comment #7)
> database dump
> http://www.mediafire.com/?bbbu9anbqxb7ufs

Please attach that.

(In reply to comment #5)
> java version "1.7.0_04"
> Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
> Java HotSpot(TM) 64-bit Server VM (build 23.0-b21, mixed mode)
> It occurs also with 1.6.0_32

What ebuild would that be?
Comment 13 wbrana 2012-06-13 19:05:50 UTC
> What ebuild would that be?
dev-java/sun-jdk-1.6.0.32
Comment 14 wbrana 2012-06-13 19:08:43 UTC
> Please attach that.
I can't attach that file because it has 10 MB, but there is 1 MB limit.
Comment 15 wbrana 2012-06-13 19:12:42 UTC
It happens also with dev-java/icedtea-7.2.2

java version "1.7.0_04"
OpenJDK Runtime Environment (IcedTea7 2.2) (Gentoo build 1.7.0_04-b21)
OpenJDK 64-Bit Server VM (build 23.0-b21, mixed mode)
Comment 16 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-14 01:40:58 UTC
(In reply to comment #14)
> > Please attach that.
> I can't attach that file because it has 10 MB, but there is 1 MB limit.

Compress it.
Comment 17 wbrana 2012-06-14 08:46:40 UTC
There was a bug in client application.