Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Java (http://www.linux-archive.org/debian-java/)
-   -   Help: symlink problems building openjdk-6 (http://www.linux-archive.org/debian-java/690266-help-symlink-problems-building-openjdk-6-a.html)

Thorsten Glaser 08-03-2012 12:36 PM

Help: symlink problems building openjdk-6
 
Hi,

after doko recommended it to me *way* back then, but only now I’ve
got all of its Build-Depends installable, I’m currently trying to
build src:openjdk-6 (with all references to gcj-4.7 changed back
to gcj-4.6, and, for consistency, the same with gcc/g++ – but this
doesn’t affect the problem) on m68k. Can anyone please help?

I’m running into this issue some hours into the process:

Linking vm...
/usr/bin/ld: cannot open output file libjvm.so: Too many levels of symbolic links

Fuller log attached (debian/rules build-arch 2>&1 | tee ../bld.log).

Thanks in advance,
//mirabilos
--
21:27⎜[Natureshadow] BÄH! Wer hatn das Bier neben den Notebooklüfter
⎜ gestellt ...
21:27⎜>Natureshadow< lol 21:27⎜>Natureshadow< du?
21:27⎜[Natureshadow] vermutlich ... -- Kev^WNatureshadow allein zu Haus

Niels Thykier 08-03-2012 02:05 PM

Help: symlink problems building openjdk-6
 
On 2012-08-03 14:36, Thorsten Glaser wrote:
> Hi,
>
> after doko recommended it to me *way* back then, but only now I’ve
> got all of its Build-Depends installable, I’m currently trying to
> build src:openjdk-6 (with all references to gcj-4.7 changed back
> to gcj-4.6, and, for consistency, the same with gcc/g++ – but this
> doesn’t affect the problem) on m68k. Can anyone please help?
>
> I’m running into this issue some hours into the process:
>
> Linking vm...
> /usr/bin/ld: cannot open output file libjvm.so: Too many levels of symbolic links
>
> Fuller log attached (debian/rules build-arch 2>&1 | tee ../bld.log).
>
> Thanks in advance,
> //mirabilos

I am not how or why, but I think your issue is:

[ -f libjvm.so ] || { ln -s libjvm.so libjvm.so;
^^^^^^^^^^^^^^^^^^^
ln -s libjvm.so.1 libjvm.so.1; };
^^^^^^^^^^^^^^^^^^^^^^^


(Spacing slightly modified). Those two ln -s lines make self-recursive
unresolvable symlinks.

~Niels


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 501BDA96.8020303@thykier.net">http://lists.debian.org/501BDA96.8020303@thykier.net

Damien Raude-Morvan 08-03-2012 02:33 PM

Help: symlink problems building openjdk-6
 
Le 03/08/2012 14:36, Thorsten Glaser a écrit :

Hi,


Hi Thorsten,


after doko recommended it to me *way* back then, but only now I’ve
got all of its Build-Depends installable, I’m currently trying to
build src:openjdk-6 (with all references to gcj-4.7 changed back
to gcj-4.6, and, for consistency, the same with gcc/g++ – but this
doesn’t affect the problem) on m68k. Can anyone please help?

I’m running into this issue some hours into the process:

Linking vm...
/usr/bin/ld: cannot open output file libjvm.so: Too many levels of symbolic links


This "Too many levels of symbolic links" is not root cause of failure.
In fact, openjdk $(MAKE) is called twice in case of failure [1] (I don't
remember exact justification for this...).


In your log file I can see a previous issue during first linker
invocation (near line 8970) :


Linking vm...
verifier.o: In function
`ClassVerifier::change_sig_to_verificationType(Sig natureStream*,
VerificationType*, Thread*)':
/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/verifier.hpp:263:(.text+0x14e):
relocation truncated to fit: R_68K_GOT16O against `.LC1'

verifier.o: In function `Verifier::should_verify_for(oopDesc*, bool)':
/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/verifier.cpp:87:(.text+0x28c):
relocation truncated to fit: R_68K_GOT16O against symbol
`BytecodeVerificationLocal' defined in .bss section in globals.o

verifier.o: In function `Verifier::relax_verify_for(oopDesc*)':
/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/verifier.cpp:96:(.text+0x2b2):
relocation truncated to fit: R_68K_GOT16O against symbol
`BytecodeVerificationLocal' defined in .bss section in globals.o
verifier.o: In function `Verifier::inference_verify(instanceKlassHandle,
char*, unsigned int, Thread*)':
/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/verifier.cpp:219:(.text+0x438):
relocation truncated to fit: R_68K_GOT16O against `.LC5'
/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/verifier.cpp:231:(.text+0x4e8):
relocation truncated to fit: R_68K_GOT16O against
`_is_new_verify_byte_codes_fn'
/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/verifier.cpp:231:(.text+0x5ec):
relocation truncated to fit: R_68K_GOT16O against
`_is_new_verify_byte_codes_fn'

verifier.o: In function `OrderAccess::release_store(int volatile*, int)':
/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/os_cpu/linux_zero/vm/orderAccess_linux_zero.inline.hpp:131:(.text+0x6c4 ):
relocation truncated to fit: R_68K_GOT16O against
`_is_new_verify_byte_codes_fn'

verifier.o: In function `verify_byte_codes_fn':
/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/verifier.cpp:75:(.text+0x6ca):
relocation truncated to fit: R_68K_GOT16O against `.LC3'
verifier.o: In function `Verifier::inference_verify(instanceKlassHandle,
char*, unsigned int, Thread*)':
/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/verifier.cpp:219:(.text+0x734):
relocation truncated to fit: R_68K_GOT16O against `.LC5'
verifier.o: In function `StackMapFrame::push_stack(VerificationType,
Thread*)':
/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/stackMapFrame.hpp:143:(.text+0xb44):
relocation truncated to fit: R_68K_GOT16O against `.LC9'
verifier.o: In function `StackMapFrame::push_stack_2(VerificationType,
VerificationType, Thread*)':
/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/stackMapFrame.hpp:154:(.text+0xbac):
additional relocation overflows omitted from the output

collect2: ld returned 1 exit status


[1]
http://bazaar.launchpad.net/~openjdk/openjdk/openjdk6/view/head:/rules#L1111



--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 501BE121.1010208@drazzib.com">http://lists.debian.org/501BE121.1010208@drazzib.com

Thorsten Glaser 08-03-2012 03:46 PM

Help: symlink problems building openjdk-6
 
Niels Thykier dixit:

>I am not how or why, but I think your issue is:
>
> [ -f libjvm.so ] || { ln -s libjvm.so libjvm.so;
> ^^^^^^^^^^^^^^^^^^^
> ln -s libjvm.so.1 libjvm.so.1; };
> ^^^^^^^^^^^^^^^^^^^^^^^
>
>
>(Spacing slightly modified). Those two ln -s lines make self-recursive
>unresolvable symlinks.

Ah, thanks for digging this out. Now I wonder why… will need
to dive into the buildsystem, probably…

bye,
//mirabilos
--
<Natureshadow> Dann mach ich git annex copy --to shore und fertig ist das
<Natureshadow> das ist ja viel cooler als ownCloud ...
<mirabilos> sag ich doch
<Natureshadow> ja wieso stimmt das denn immer was du sagst ...


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: Pine.BSM.4.64L.1208031546050.11464@herc.mirbsd.org ">http://lists.debian.org/Pine.BSM.4.64L.1208031546050.11464@herc.mirbsd.org

Thorsten Glaser 08-03-2012 03:54 PM

Help: symlink problems building openjdk-6
 
Damien Raude-Morvan dixit:

> This "Too many levels of symbolic links" is not root cause of failure. In fact,
> openjdk $(MAKE) is called twice in case of failure [1] (I don't remember exact
> justification for this...).

Ouch, okay! A *lot* of thanks for spotting that!

> In your log file I can see a previous issue during first linker invocation
> (near line 8970) :
>
> Linking vm...
> verifier.o: In function
> `ClassVerifier::change_sig_to_verificationType(Sig natureStream*,
> VerificationType*, Thread*)':
> /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/verifier.hpp:263:(.text+0x14e):
> relocation truncated to fit: R_68K_GOT16O against `.LC1'
> verifier.o: In function `Verifier::should_verify_for(oopDesc*, bool)':
> /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/verifier.cpp:87:(.text+0x28c):
> relocation truncated to fit: R_68K_GOT16O against symbol
> `BytecodeVerificationLocal' defined in .bss section in globals.o
> verifier.o: In function `Verifier::relax_verify_for(oopDesc*)':
> /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/verifier.cpp:96:(.text+0x2b2):
> relocation truncated to fit: R_68K_GOT16O against symbol
> `BytecodeVerificationLocal' defined in .bss section in globals.o
> verifier.o: In function `Verifier::inference_verify(instanceKlassHandle, char*,
> unsigned int, Thread*)':
> /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/verifier.cpp:219:(.text+0x438):
> relocation truncated to fit: R_68K_GOT16O against `.LC5'
> /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/verifier.cpp:231:(.text+0x4e8):
> relocation truncated to fit: R_68K_GOT16O against
> `_is_new_verify_byte_codes_fn'
> /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/verifier.cpp:231:(.text+0x5ec):
> relocation truncated to fit: R_68K_GOT16O against
> `_is_new_verify_byte_codes_fn'
> verifier.o: In function `OrderAccess::release_store(int volatile*, int)':
> /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/os_cpu/linux_zero/vm/orderAccess_linux_zero.inline.hpp:131:(.text+0x6c4 ):
> relocation truncated to fit: R_68K_GOT16O against
> `_is_new_verify_byte_codes_fn'
> verifier.o: In function `verify_byte_codes_fn':
> /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/verifier.cpp:75:(.text+0x6ca):
> relocation truncated to fit: R_68K_GOT16O against `.LC3'
> verifier.o: In function `Verifier::inference_verify(instanceKlassHandle, char*,
> unsigned int, Thread*)':
> /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/verifier.cpp:219:(.text+0x734):
> relocation truncated to fit: R_68K_GOT16O against `.LC5'
> verifier.o: In function `StackMapFrame::push_stack(VerificationType, Thread*)':
> /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/stackMapFrame.hpp:143:(.text+0xb44):
> relocation truncated to fit: R_68K_GOT16O against `.LC9'
> verifier.o: In function `StackMapFrame::push_stack_2(VerificationType,
> VerificationType, Thread*)':
> /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/classfile/stackMapFrame.hpp:154:(.text+0xbac):
> additional relocation overflows omitted from the output
> collect2: ld returned 1 exit status

Huh. Forwarding this to the m68k porters, please anyone, help with
that. I don’t know enough about those platform specifics.

Thanks in advance,
//mirabilos
--
FWIW, I'm quite impressed with mksh interactively. I thought it was much
*much* more bare bones. But it turns out it beats the living hell out of
ksh93 in that respect. I'd even consider it for my daily use if I hadn't
wasted half my life on my zsh setup. :-) -- Frank Terbeck in #!/bin/mksh


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: Pine.BSM.4.64L.1208031553000.11464@herc.mirbsd.org ">http://lists.debian.org/Pine.BSM.4.64L.1208031553000.11464@herc.mirbsd.org

Andreas Schwab 08-03-2012 04:15 PM

Help: symlink problems building openjdk-6
 
Thorsten Glaser <tg@mirbsd.de> writes:

>> relocation truncated to fit: R_68K_GOT16O against `.LC1'

Compile with -fPIC.

Andreas.

--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: m2r4rohryc.fsf@igel.home">http://lists.debian.org/m2r4rohryc.fsf@igel.home

Thorsten Glaser 08-08-2012 01:29 PM

Help: symlink problems building openjdk-6
 
Andreas Schwab dixit:

>Thorsten Glaser <tg@mirbsd.de> writes:
>
>>> relocation truncated to fit: R_68K_GOT16O against `.LC1'
>
>Compile with -fPIC.

Thanks, that helped – a bit. I mean, I knew Java™ was slow,
but not *that* slow:

17634 pts/1 Sl+ 4662:03 /tmp/buildd/openjdk-6-6b24-1.11.3/build/bootstrap/jdk1.6.0/bin/java -version

Attaching a gdb to that:

GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "m68k-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /var/cache/pbuilder/build/cow.20573/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk.build-ecj/j2sdk-image/bin/java...done.
Attaching to program: /var/cache/pbuilder/build/cow.20573/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk.build-ecj/j2sdk-image/bin/java, process 17634

warning: Could not load shared library symbols for 4 libraries, e.g. /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk.build-ecj/j2sdk-image/bin/../jre/lib/m68k/jli/libjli.so.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
Reading symbols from /usr/lib/libeatmydata/libeatmydata.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libeatmydata/libeatmydata.so
Reading symbols from /usr/lib/cowdancer/libcowdancer.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/cowdancer/libcowdancer.so
Reading symbols from /lib/m68k-linux-gnu/libz.so.1...(no debugging symbols found)...done.
[…]
(gdb) set sysroot /var/cache/pbuilder/build/cow.20573
Reading symbols from /var/cache/pbuilder/build/cow.20573/usr/lib/libeatmydata/libeatmydata.so...(no debugging symbols found)...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/usr/lib/libeatmydata/libeatmydata.so
Reading symbols from /var/cache/pbuilder/build/cow.20573/usr/lib/cowdancer/libcowdancer.so...(no debugging symbols found)...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/usr/lib/cowdancer/libcowdancer.so
Reading symbols from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libz.so.1
Reading symbols from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libpthread.so.0...(no debugging symbols found)...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libpthread.so.0
Reading symbols from /var/cache/pbuilder/build/cow.20573/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk.build-ecj/j2sdk-image/bin/../jre/lib/m68k/jli/libjli.so...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk.build-ecj/j2sdk-image/bin/../jre/lib/m68k/jli/libjli.so
Reading symbols from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libdl.so.2
Reading symbols from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libc.so.6
Reading symbols from /var/cache/pbuilder/build/cow.20573/lib/ld.so.1...(no debugging symbols found)...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/lib/ld.so.1
Reading symbols from /var/cache/pbuilder/build/cow.20573/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk.build-ecj/j2sdk-image/jre/lib/m68k/server/libjvm.so...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk.build-ecj/j2sdk-image/jre/lib/m68k/server/libjvm.so
Reading symbols from /var/cache/pbuilder/build/cow.20573/usr/lib/m68k-linux-gnu/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/usr/lib/m68k-linux-gnu/libstdc++.so.6
Reading symbols from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libm.so.6
Reading symbols from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libgcc_s.so.2...(no debugging symbols found)...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libgcc_s.so.2
Reading symbols from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/librt.so.1
Reading symbols from /var/cache/pbuilder/build/cow.20573/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk.build-ecj/j2sdk-image/jre/lib/m68k/libverify.so...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk.build-ecj/j2sdk-image/jre/lib/m68k/libverify.so
Reading symbols from /var/cache/pbuilder/build/cow.20573/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk.build-ecj/j2sdk-image/jre/lib/m68k/libjava.so...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk.build-ecj/j2sdk-image/jre/lib/m68k/libjava.so
Reading symbols from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libnsl.so.1
Reading symbols from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libnss_compat.so.2...(no debugging symbols found)...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libnss_compat.so.2
Reading symbols from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libnss_nis.so.2...(no debugging symbols found)...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libnss_nis.so.2
Reading symbols from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libnss_files.so.2
(gdb) bt
#0 0xc004bfba in pthread_join () from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libpthread.so.0
#1 0x80005e9a in ContinueInNewThread (continuation=0x80002cac <JavaMain>, stack_size=1572864, args=0xefa248a6,
ret=0) at ../../../../src/solaris/bin/java_md.c:1754
#2 0x80001f26 in main (argc=1, argv=0x8000a09c) at ../../../../src/share/bin/java.c:370
(gdb) info threads
Id Target Id Frame
2 Thread 0xc07d34c0 (LWP 17635) "java" m68k_compare_and_swap (newval=94866335, ptr=0x80012020,
oldval=94866336)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/os_cpu/linux_zero/vm/atomic_linux_zero.inline.hpp:67
* 1 Thread 0xc0192210 (LWP 17634) "java" 0xc004bfba in pthread_join ()
from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libpthread.so.0
(gdb) thread 2
[Switching to thread 2 (Thread 0xc07d34c0 (LWP 17635))]
#0 m68k_compare_and_swap (newval=94866335, ptr=0x80012020, oldval=94866336)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/os_cpu/linux_zero/vm/atomic_linux_zero.inline.hpp:67
67 /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/os_cpu/linux_zero/vm/atomic_linux_zero.inline.hpp: No such file or directory.
(gdb) dir /var/cache/pbuilder/build/cow.20573
Source directories searched: /var/cache/pbuilder/build/cow.20573:$cdir:$cwd
(gdb) list
67 int prev = *ptr;
68 if (prev != oldval)
69 return prev;
70
71 if (__m68k_cmpxchg (prev, newval, ptr) == newval)
72 // Success.
73 return prev;
74
75 // We failed even though prev == oldval. Try again.
76 }
(gdb) bt
#0 m68k_compare_and_swap (newval=94866335, ptr=0x80012020, oldval=94866336)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/os_cpu/linux_zero/vm/atomic_linux_zero.inline.hpp:67
#1 cmpxchg (compare_value=94866336, dest=0x80012020, exchange_value=94866335)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/os_cpu/linux_zero/vm/atomic_linux_zero.inline.hpp:266
#2 os::PlatformEvent::park (this=0x80012000)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/os/linux/vm/os_linux.cpp:4941
#3 0xc0416506 in ParkCommon (ev=0x80012000, timo=<optimized out>)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/mutex.cpp:420
#4 ILock (Self=0x80010008, this=0x8000efa0)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/mutex.cpp:487
#5 Monitor::ILock (this=0x8000efa0, Self=0x80010008)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/mutex.cpp:452
#6 0xc0416b64 in Monitor::lock_without_safepoint_check (this=0x8000efa0, Self=0x80010008)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/mutex.cpp:941
#7 0xc0416ba0 in Monitor::lock_without_safepoint_check (this=0x8000efa0)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/mutex.cpp:947
#8 0xc0384bd0 in MutexLockerEx (mutex=0x8000efa0, this=<synthetic pointer>, no_safepoint_check=<optimized out>)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/mutexLocker.hpp:207
#9 JNIHandleBlock::allocate_block (thread=0x0)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/jniHandles.cpp:300
#10 0xc04a3956 in Threads::create_vm (args=0xc07d2ed6, canTryAgain=0xc07d2e87)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/thread.cpp:3074
#11 0xc0371752 in JNI_CreateJavaVM (vm=0xc07d2ece, penv=0xc07d2ed2, args=0xc07d2ed6)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/prims/jni.cpp:3344
#12 0x80002d20 in InitializeJVM (penv=0xc07d2ed2, pvm=0xc07d2ece, ifn=<optimized out>)
at ../../../../src/share/bin/java.c:1269
#13 JavaMain (_args=0xefa248a6) at ../../../../src/share/bin/java.c:404
#14 0xc004b056 in start_thread () from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libpthread.so.0
#15 0xc012829c in clone () from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libc.so.6


The atomic_linux_zero.inline.hpp file contains:

52 static inline int __m68k_cmpxchg(int oldval, int newval, volatile int *ptr) {
53 int ret;
54 __asm __volatile ("cas%.l %0,%2,%1"
55 : "=d" (ret), "+m" (*(ptr))
56 : "d" (newval), "0" (oldval));
57 return ret;
58 }

I guess we should let it use __sync_val_compare_and_swap instead then?
Or is this related to the Qt4 problem, which also looks to my layman
eye like one thread is waiting for another (though it’s idle-spinning,
not busy-spinning like here)? Is cas broken in ARAnyM, or…? This is a
bit over what I normally see. (And why is the argument order of static
inline int m68k_compare_and_swap(volatile int *ptr, int oldval, int
newval) swapped?

A few "si" further:

(gdb) info r
d0 0xec2c25f5 -332651019
d1 0xec2c25f4 -332651020
d2 0x80010008 -2147418104
d3 0x80012001 -2147409919
d4 0x80010008 -2147418104
d5 0x0 0
d6 0x8000a09c -2147442532
d7 0xefa24818 -274577384
a0 0x80012020 0x80012020
a1 0xec2c25f5 0xec2c25f5
a2 0x80012000 0x80012000
a3 0x80012000 0x80012000
a4 0x800098aa 0x800098aa
a5 0xc052166c 0xc052166c
fp 0xc07d2d0c 0xc07d2d0c
sp 0xc07d2cfc 0xc07d2cfc
ps 0x8208 [ N I1 T1 ]
pc 0xc0438a4c 0xc0438a4c <os::PlatformEvent::park()+42>
fpcontrol 0x0 0
fpstatus 0x8 8
fpiaddr 0x0 0
(gdb) disas
Dump of assembler code for function os::PlatformEvent::park():
0xc0438a22 <+0>: linkw %fp,#0
0xc0438a26 <+4>: moveml %a2-%a5,%sp@-
0xc0438a2a <+8>: lea %pc@(0xc052166c),%a5
0xc0438a32 <+16>: moveal %fp@(8),%a2
0xc0438a36 <+20>: lea %a2@(32),%a0
0xc0438a3a <+24>: moveal %a2@(32),%a1
0xc0438a3e <+28>: movel %a1,%d1
0xc0438a40 <+30>: subql #1,%d1
0xc0438a42 <+32>: movel %a2@(32),%d0
0xc0438a46 <+36>: cmpl %a1,%d0
0xc0438a48 <+38>: bnes 0xc0438a3a <os::PlatformEvent::park()+24>
0xc0438a4a <+40>: movel %a1,%d0
=> 0xc0438a4c <+42>: casl %d0,%d1,%a0@
0xc0438a50 <+46>: cmpl %d1,%d0
0xc0438a52 <+48>: bnes 0xc0438a42 <os::PlatformEvent::park()+32>
0xc0438a54 <+50>: tstl %a1
0xc0438a56 <+52>: bltw 0xc0438b3e <os::PlatformEvent::park()+284>
0xc0438a5a <+56>: beqs 0xc0438a6c <os::PlatformEvent::park()+74>
0xc0438a5c <+58>: movel %a2@(32),%d0
0xc0438a60 <+62>: blts 0xc0438ac4 <os::PlatformEvent::park()+162>
0xc0438a62 <+64>: moveml %fp@(-16),%a2-%a5
0xc0438a68 <+70>: unlk %fp
0xc0438a6a <+72>: rts
0xc0438a6c <+74>: lea %a2@(40),%a3
0xc0438a70 <+78>: movel %a3,%sp@-
0xc0438a72 <+80>: bsrl 0xc02147c4 <pthread_mutex_lock@plt>
0xc0438a78 <+86>: movel %a2@(36),%d0
0xc0438a7c <+90>: addql #4,%sp
0xc0438a7e <+92>: bnes 0xc0438af8 <os::PlatformEvent::park()+214>
0xc0438a80 <+94>: movel %a2@(36),%d0
0xc0438a84 <+98>: addql #1,%d0
---Type <return> to continue, or q <return> to quit---
(gdb) si
m68k_compare_and_swap (newval=-332651020, ptr=0x80012020, oldval=-332651019)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/os_cpu/linux_zero/vm/atomic_linux_zero.inline.hpp:71
71 in /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/os_cpu/linux_zero/vm/atomic_linux_zero.inline.hpp
(gdb) info r
d0 0xec2c25f5 -332651019
d1 0xec2c25f4 -332651020
d2 0x80010008 -2147418104
d3 0x80012001 -2147409919
d4 0x80010008 -2147418104
d5 0x0 0
d6 0x8000a09c -2147442532
d7 0xefa24818 -274577384
a0 0x80012020 0x80012020
a1 0xec2c25f5 0xec2c25f5
a2 0x80012000 0x80012000
a3 0x80012000 0x80012000
a4 0x800098aa 0x800098aa
a5 0xc052166c 0xc052166c
fp 0xc07d2d0c 0xc07d2d0c
sp 0xc07d2cfc 0xc07d2cfc
ps 0x8204 [ Z I1 T1 ]
pc 0xc0438a50 0xc0438a50 <os::PlatformEvent::park()+46>
fpcontrol 0x0 0
fpstatus 0x8 8
fpiaddr 0x0 0
(gdb) x/lx 0x80012020
0x80012020: 0xec2c25f4

Puzzled,
//mirabilos
--
[...] if maybe ext3fs wasn't a better pick, or jfs, or maybe reiserfs, oh but
what about xfs, and if only i had waited until reiser4 was ready... in the be-
ginning, there was ffs, and in the middle, there was ffs, and at the end, there
was still ffs, and the sys admins knew it was good. :) -- Ted Unangst über *fs


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: Pine.BSM.4.64L.1208081255510.12823@herc.mirbsd.org ">http://lists.debian.org/Pine.BSM.4.64L.1208081255510.12823@herc.mirbsd.org

Thorsten Glaser 08-09-2012 07:33 AM

Help: symlink problems building openjdk-6
 
Dixi quod…

>I guess we should let it use __sync_val_compare_and_swap instead then?

That one’s interesting: it makes an idle-spin instead of busy-spin:

top - 07:26:10 up 11 days, 17:52, 0 users, load average: 0.01, 0.03, 0.05
Tasks: 63 total, 1 running, 62 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.0 us, 0.0 sy, 0.0 ni, 0.0 id, 0.0 wa,100.0 hi, 0.0 si, 0.0 st

9234 pts/1 Sl+ 0:00 /tmp/buildd/openjdk-6-6b24-1.11.3/build/bootstrap/jdk1.6.0/bin/java -version

(gdb) bt
#0 0xc004bfba in pthread_join ()
from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libpthread.so.0
#1 0x80005e9a in ContinueInNewThread (continuation=0x80002cac <JavaMain>, stack_size=1572864,
args=0xefba4886, ret=0) at ../../../../src/solaris/bin/java_md.c:1754
#2 0x80001f26 in main (argc=1, argv=0x8000a09c) at ../../../../src/share/bin/java.c:370
(gdb) info threads
Id Target Id Frame
3 Thread 0xc07d34c0 (LWP 9235) "java" 0xc004f504 in pthread_cond_wait@@GLIBC_2.3.2 ()
from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libpthread.so.0
2 Thread 0xdeeae4c0 (LWP 9236) "java" 0xc004f95c in pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libpthread.so.0
* 1 Thread 0xc0192210 (LWP 9234) "java" 0xc004bfba in pthread_join ()
from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libpthread.so.0
(gdb) thread 2
[Switching to thread 2 (Thread 0xdeeae4c0 (LWP 9236))]
#0 0xc004f95c in pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libpthread.so.0
(gdb) bt
#0 0xc004f95c in pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libpthread.so.0
#1 0xc0438ace in park (millis=1000, this=0x80062100)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/os/linux/vm/os_linux.cpp:5006
#2 os::PlatformEvent::park (this=0x80062100, millis=1000)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/os/linux/vm/os_linux.cpp:4968
#3 0xc0416888 in ParkCommon (timo=1000, ev=0x80062100)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/mutex.cpp:422
#4 Monitor::IWait (this=0x8000f4e8, Self=0x80061318, timo=1000)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/mutex.cpp:784
#5 0xc0416efe in Monitor::wait (this=0x8000f4e8, no_safepoint_check=true, timeout=1000,
as_suspend_equivalent=false)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/mutex.cpp:1093
#6 0xc04d395a in VMThread::loop (this=0x80061318)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/vmThread.cpp:408
#7 0xc04d3aba in VMThread::run (this=0x80061318)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/vmThread.cpp:273
#8 0xc0434ff8 in java_start (thread=0x80061318)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/os/linux/vm/os_linux.cpp:856
#9 0xc004b056 in start_thread ()
from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libpthread.so.0
#10 0xc012829c in clone () from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libc.so.6
(gdb) thread 3
[Switching to thread 3 (Thread 0xc07d34c0 (LWP 9235))]
#0 0xc004f504 in pthread_cond_wait@@GLIBC_2.3.2 ()
from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libpthread.so.0
(gdb) bt
#0 0xc004f504 in pthread_cond_wait@@GLIBC_2.3.2 ()
from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libpthread.so.0
#1 0xc04388cc in os::PlatformEvent::park (this=0x80011d00)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/os/linux/vm/os_linux.cpp:4951
#2 0xc042aca0 in ObjectMonitor::EnterI (this=0xc07d2928, __the_thread__=0x80010008)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/objectMonitor.cpp:566
#4 0xc0337402 in instanceKlass::initialize_impl (this_oop=..., __the_thread__=0x80010008)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/oops/instanceKlass.cpp:401
#5 0xc0337a06 in initialize (__the_thread__=0x80010008, this=0xdab20588)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/oops/instanceKlass.cpp:198
#6 instanceKlass::initialize (this=0xdab20588, __the_thread__=0x80010008)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/oops/instanceKlass.cpp:194
#7 0xc02ea576 in Exceptions::new_exception (thread=0x80010008, h_name=..., signature=...,
args=0xc07d2818, h_cause=..., h_loader=..., h_protection_domain=...)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/utilities/exceptions.cpp:269
#8 0xc02ea896 in Exceptions::new_exception (thread=0x80010008, h_name=..., message=0x0, h_cause=...,
h_loader=..., h_protection_domain=..., to_utf8_safe=Exceptions::safe_to_utf8)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/utilities/exceptions.cpp:353
#9 0xc02eaa76 in Exceptions::_throw_msg (thread=0x80010008,
file=0xc04feaa4 "/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/objectMonitor.cpp", line=1710, h_name=..., message=0x0, h_loader=..., h_protection_domain=...)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/utilities/exceptions.cpp:169
#10 0xc02eab60 in Exceptions::_throw_msg (thread=0x80010008,
file=0xc04feaa4 "/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/objectMonitor.cpp", line=1710, name=0xdaaf1e48, message=0x0)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/utilities/exceptions.cpp:188
#11 0xc0428cf6 in ObjectMonitor::notifyAll (this=0xc07d2928, __the_thread__=0x80010008)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/objectMonitor.cpp:1710
#12 0xc0335556 in notify_all (__the_thread__=0x80010008, this=0xc07d2922)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/synchronizer.hpp:158
#13 instanceKlass::set_initialization_state_and_notify _impl (this_oop=...,
state=instanceKlass::initialization_error, __the_thread__=0x80010008)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/oops/instanceKlass.cpp:521
#14 0xc03355de in instanceKlass::set_initialization_state_and_notify (this=0xdab20588,
state=instanceKlass::initialization_error, __the_thread__=0x80010008)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/oops/instanceKlass.cpp:515
#15 0xc03377b4 in instanceKlass::initialize_impl (this_oop=..., __the_thread__=0x80010008)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/oops/instanceKlass.cpp:458
#16 0xc0337a06 in initialize (__the_thread__=0x80010008, this=0xdab20588)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/oops/instanceKlass.cpp:198
#17 instanceKlass::initialize (this=0xdab20588, __the_thread__=0x80010008)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/oops/instanceKlass.cpp:194
#18 0xc02ea576 in Exceptions::new_exception (thread=0x80010008, h_name=..., signature=...,
args=0xc07d2ac8, h_cause=..., h_loader=..., h_protection_domain=...)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/utilities/exceptions.cpp:269
#19 0xc02ea896 in Exceptions::new_exception (thread=0x80010008, h_name=..., message=0x0, h_cause=...,
h_loader=..., h_protection_domain=..., to_utf8_safe=Exceptions::safe_to_utf8)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/utilities/exceptions.cpp:353
#20 0xc02eaa76 in Exceptions::_throw_msg (thread=0x80010008,
file=0xc04feaa4 "/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/objectMonitor.cpp", line=1710, h_name=..., message=0x0, h_loader=..., h_protection_domain=...)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/utilities/exceptions.cpp:169
#21 0xc02eab60 in Exceptions::_throw_msg (thread=0x80010008,
file=0xc04feaa4 "/tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/objectMonitor.cpp", line=1710, name=0xdaaf1e48, message=0x0)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/utilities/exceptions.cpp:188
#22 0xc0428cf6 in ObjectMonitor::notifyAll (this=0xc07d2bd8, __the_thread__=0x80010008)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/objectMonitor.cpp:1710
#23 0xc0335556 in notify_all (__the_thread__=0x80010008, this=0xc07d2bd2)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/synchronizer.hpp:158
#24 instanceKlass::set_initialization_state_and_notify _impl (this_oop=...,
state=instanceKlass::fully_initialized, __the_thread__=0x80010008)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/oops/instanceKlass.cpp:521
#25 0xc03355de in instanceKlass::set_initialization_state_and_notify (this=0xdaaf67d8,
state=instanceKlass::fully_initialized, __the_thread__=0x80010008)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/oops/instanceKlass.cpp:515
#26 0xc03377fe in instanceKlass::initialize_impl (this_oop=..., __the_thread__=0x80010008)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/oops/instanceKlass.cpp:484
#27 0xc0337a06 in initialize (__the_thread__=0x80010008, this=0xdaaf67d8)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/oops/instanceKlass.cpp:198
#28 instanceKlass::initialize (this=0xdaaf67d8, __the_thread__=0x80010008)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/oops/instanceKlass.cpp:194
#29 0xc0337752 in instanceKlass::initialize_impl (this_oop=..., __the_thread__=0x80010008)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/oops/instanceKlass.cpp:451
#30 0xc0337a06 in initialize (__the_thread__=0x80010008, this=0xdaafeff0)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/oops/instanceKlass.cpp:198
#31 instanceKlass::initialize (this=0xdaafeff0, __the_thread__=0x80010008)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/oops/instanceKlass.cpp:194
#32 0xc04a3c84 in initialize_class (__the_thread__=0x80010008, class_name=...)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/thread.cpp:896
#33 Threads::create_vm (args=0xc07d2ed6, canTryAgain=0xc07d2e87)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/runtime/thread.cpp:3164
#34 0xc0371a80 in JNI_CreateJavaVM (vm=0xc07d2ece, penv=0xc07d2ed2, args=0xc07d2ed6)
at /tmp/buildd/openjdk-6-6b24-1.11.3/build/openjdk-ecj/hotspot/src/share/vm/prims/jni.cpp:3344
#35 0x80002d20 in InitializeJVM (penv=0xc07d2ed2, pvm=0xc07d2ece, ifn=<optimized out>)
at ../../../../src/share/bin/java.c:1269
#36 JavaMain (_args=0xefba4886) at ../../../../src/share/bin/java.c:404
#37 0xc004b056 in start_thread ()
from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libpthread.so.0
#38 0xc012829c in clone () from /var/cache/pbuilder/build/cow.20573/lib/m68k-linux-gnu/libc.so.6

Is there something wrong with threads (whatever façette of it)?

bye,
//mirabilos
--
22:20⎜<asarch> The crazy that persists in his craziness becomes a master
22:21⎜<asarch> And the distance between the craziness and geniality is
only measured by the success 18:35⎜<asarch> "Psychotics are consistently
inconsistent. The essence of sanity is to be inconsistently inconsistent


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: Pine.BSM.4.64L.1208090726460.24176@herc.mirbsd.org ">http://lists.debian.org/Pine.BSM.4.64L.1208090726460.24176@herc.mirbsd.org

schmitz 08-11-2012 04:51 AM

Help: symlink problems building openjdk-6
 
Thorsten,


I guess we should let it use __sync_val_compare_and_swap instead then?



That one’s interesting: it makes an idle-spin instead of busy-spin:



....


Is there something wrong with threads (whatever façette of it)?


Is there another thread supposed to join in and break the deadlock? Lock
initialized wrong?


Just a stray thought ...

Cheers,

Michael

(hoping this will reach you via one of the lists, as you appear to
refuse mail from me otherwise)



--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 5025E4DE.4070409@biophys.uni-duesseldorf.de">http://lists.debian.org/5025E4DE.4070409@biophys.uni-duesseldorf.de

Thorsten Glaser 08-12-2012 01:06 PM

Help: symlink problems building openjdk-6
 
schmitz dixit:

> Is there another thread supposed to join in and break the deadlock? Lock
> initialized wrong?

I guess yes at the first one, no at the second one, I didn’t see much
m68k-specific code there, and things appear to work on the other arches
(plus, Qt4 has similar issues). As I said earlier, I have almost zero
skills in parallel programming. My current guess is that when a thread
waits on another thread which wait()s on another program, things lock
up.

> (hoping this will reach you via one of the lists, as you appear to refuse mail
> from me otherwise)

Not from you specifically, but Google Mail has finally made it onto
the blacklist indeed. (Lots of spam and unresponsive abuse@)

bye,
//mirabilos
--
Yay for having to rewrite other people's Bash scripts because bash
suddenly stopped supporting the bash extensions they make use of
-- Tonnerre Lombard in #nosec


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: Pine.BSM.4.64L.1208121303330.18273@herc.mirbsd.org ">http://lists.debian.org/Pine.BSM.4.64L.1208121303330.18273@herc.mirbsd.org


All times are GMT. The time now is 07:34 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.