Re: [gentoo-amd64] Re: bug report help

2011-01-27 Thread Fernando Boaglio
Anyway, I have tried with:

sun-jdk-1.6.0.23
icedtea-6.1.9.4
icedtea6-bin-1.9.4

And I always get the same error:

*** glibc detected *** java: free(): invalid pointer:

Today I noticied if I run using root Eclipse doesn't crash.

[]'s
Fernando Boaglio


Re: [gentoo-amd64] Re: bug report help

2011-01-25 Thread Fernando Boaglio
Hi,

This is my glibc version:

# emerge -vp glibc


[ebuild   R   ] sys-libs/glibc-2.12.2  USE=glibc-omitfp (multilib) nls
-debug -gd (-hardened) -profile (-selinux) -vanilla 0 kB


I've tried with dev-java/icedtea (6.1.9.4) , but got same thing:

./eclipse -vm /usr/lib64/icedtea6/bin/java  -vmargs -Xms1024M -Xmx1024M
-XX:PermSize=256M -XX:MaxPermSize=256M

*** glibc detected *** /usr/lib64/icedtea6/bin/java: free(): invalid
pointer: 0x01bdccd0 ***

=== Backtrace: =
/lib/libc.so.6(+0x79da4)[0x7fd955b9dda4]
/usr/lib64/icedtea6/jre/lib/amd64/server/libjvm.so(+0x4921f0)[0x7fd95537c1f0]
/home/fb/eclipseWTP3.2.2/configuration/org.eclipse.osgi/bundles/151/1/.cp/libswt-pi-gtk-3655.so(Java_org_eclipse_swt_internal_gtk_OS__1g_1data_1input_1stream_1read_1line+0xe7)[0x7fd9449feb52]
[0x7fd9509ddca8]

=== Memory map: 
0040-00409000 r-xp  08:01 25399263
/usr/lib64/icedtea6/bin/java
00608000-00609000 r--p 8000 08:01 25399263
/usr/lib64/icedtea6/bin/java
00609000-0060a000 rw-p 9000 08:01 25399263
/usr/lib64/icedtea6/bin/java
0060a000-054ee000 rw-p  00:00 0
[heap]
b000-1 rw-p  00:00 0
7fd93b829000-7fd93b837000 r-xp  08:01 22085993
/lib64/libudev.so.0.9.3
7fd93b837000-7fd93ba36000 ---p e000 08:01 22085993
/lib64/libudev.so.0.9.3
7fd93ba36000-7fd93ba37000 r--p d000 08:01 22085993
/lib64/libudev.so.0.9.3
7fd93ba37000-7fd93ba38000 rw-p e000 08:01 22085993
/lib64/libudev.so.0.9.3
7fd93ba38000-7fd93ba65000 r-xp  08:01 24350043
/usr/lib64/gio/modules/libgvfsdbus.so
7fd93ba65000-7fd93bc64000 ---p 0002d000 08:01 24350043
/usr/lib64/gio/modules/libgvfsdbus.so
7fd93bc64000-7fd93bc65000 r--p 0002c000 08:01 24350043
/usr/lib64/gio/modules/libgvfsdbus.so
7fd93bc65000-7fd93bc66000 rw-p 0002d000 08:01 24350043
/usr/lib64/gio/modules/libgvfsdbus.so

[]'s
Fernando Boaglio


Re: [gentoo-amd64] Re: bug report help

2011-01-25 Thread Lie Ryan
It was actually quite easy now to emerge icedtea from source, you just need
to add the java overlay and then emerge as usual. After emerge and if you
are keeping the binary icedtea or sun's, you'd then need to point your
preferred java vm using eselect.

(Apology for the top post, the Gmail client in Android 2.1 doesn't allow you
to even delete the quoted text, this was fixed in 2.2 but you and I had to
bear with this for the moment)

On 25/01/2011 1:03 PM, Duncan 1i5t5.dun...@cox.net wrote:

Fernando Boaglio posted on Mon, 24 Jan 2011 13:41:59 -0200 as excerpted:


 I did, same thing:


 fb@de09 ~/eclipse $ ./eclipse -vm /opt/icedtea6-bin-1.9.4/bin/java
 ...
Two notes, here:

1) I don't know about sunjdk as there's license issues such that I won't
install it, but the iced-tea6-bin package, while free, is a pre-compiled
binary install.  As such, revdep-rebuild won't be able to do anything for
it as it'll just reinstall the same binary, so the package installs a
revdep-rebuild control file so revdep-rebuild skips checking it, to
prevent reinstalls that wouldn't fix anything.

FWIW there's the icedtea package for from-source building, but the build-
process is said to be quite convoluted, many dependencies, etc., thus the
binary package option.

If the sunjdk package similarly has binary components, since that's what
originally triggered the bug, that /might/ be your issue.  However, I
don't know that it does.

2) What version of glibc do you have?  Unless you're running ~arch or even
masked/live, this probably doesn't apply, but... LWN article posted Nov
10, 2010 about a glibc change to memcpy behavior when used in a context
with specifically undefined behavior:

http://lwn.net/Articles/414467/

Also see the Nov 24, 2010 longer LWN commentary article, which covers both
the glibc change and a kernel behavior change, examining how they were
handled when found to break things, etc.

http://lwn.net/Articles/416821/

FWIW, I'm with the glibc folks here.  The behavior is specifically said to
be undefined when the memory regions overlap, and think about it, if your
memory source and destination regions overlap, by definition it's not a
simple copy anyway, as the data in the source region has changed at the
end and with a simple copy, it should intuitively be the same as it was --
unless you overlap the copies, but then that's not a simple copy so
shouldn't be using the copy function!  Duh!

The kernel thing is specifically different, in part because Linus has
established clear rules about breaking the kernel/userspace interface (in
a word, don't!) -- part of the reason that change was reverted.  If it had
instead been specifically documented as changeable, much like the kernel's
internal interfaces are (much to the dismay of many closed-source kernel
module devs)... the outcome there would likely have been similar to the
glibc outcome.

--
Duncan - List replies preferred.   No HTML msgs.
Every nonfree program has a lord, a master --
and if you use the program, he is your master.  Richard Stallman