pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/44222: kaffe halts on BufferedReader.readLine (while building wip/jdk15)



>Number:         44222
>Category:       pkg
>Synopsis:       kaffe halts on BufferedReader.readLine (while building 
>wip/jdk15)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 12 10:10:00 +0000 2010
>Originator:     B ICT A.P. deBrouwer Jr.
>Release:        i386 5.0.2
>Organization:
-none-
>Environment:
NetBSD 10.0.2.17 5.0.2 NetBSD 5.0.2 (GENERIC.IP4) #2: Sun Nov 14 16:18:05 CET 
2010  root%h12.hosts@localhost:/obj/sys/arch/i386/compile/GENERIC.IP4 i386
>Description:
wip/jdk15 being resurrected, it's build using kaffe on DragonFly
did succeed but a build on NetBSD/i386 and amd64 didn't.
>How-To-Repeat:
apply fix in problem report `pkg/44221'
and
add localpatches/wip/jdk15/Database.java.diff like below and see kaffee 
'stalled' in a readLine while building wip/jdk15:

--- hotspot/src/share/tools/MakeDeps/Database.java.orig 2008-05-28 
09:01:18.000000000 +0200
+++ hotspot/src/share/tools/MakeDeps/Database.java      2010-12-09 
13:11:53.000000000 +0100
@@ -82,9 +82,9 @@
        throws FileFormatException, IOException, FileNotFoundException {
        macros.readFrom(platFileName, missingOk);
 
        BufferedReader reader = null;
        try {
-           reader = new BufferedReader(new FileReader(dbFileName));
+           reader = new BufferedReader(new FileReader(dbFileName));
        } catch (FileNotFoundException e) {
            if (missingOk) {
                return;
@@ -97,6 +99,7 @@
        int lineNo = 0;
        do {
            line = reader.readLine();
+       System.out.println("\nDatabase: "+ line);
            lineNo++;
            if (line != null) {
                StreamTokenizer tokenizer =


i'm not sure the __NetBSD_Version__ at all given
i have 
# head /usr/src/sys/kern/sys_sig.c
/*      $NetBSD: sys_sig.c,v 1.17.4.2.2.1
and only pre 1.17.x mentioning a sigwait is:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/kern/sys_sig.c.diff?r1=1.12&r2=1.13&only_with_tag=MAIN&f=h

but/and the fix below solves the 'stalles' and
am now able to continue the wip/jdk15 build using kaffe.


fix still has to be reported upsteam to kaffe
and removed again after kaffe's acceptance and pkgsrc's kaffe upgrade to a 
kaffe version incorporating the fix.
>Fix:
--- kaffe/kaffevm/systems/unix-pthreads/thread-impl.c.orig      2010-12-11 
23:19:36.000000000 +0100
+++ kaffe/kaffevm/systems/unix-pthreads/thread-impl.c   2010-12-11 
23:19:47.000000000 +0100
@@ -415,7 +415,7 @@
   saResume.sa_flags = 0; /* Note that we do not want restart here. */
   saResume.sa_handler = resume_signal_handler;
   saResume.sa_mask = saSuspend.sa_mask;
-#if !defined(KAFFE_BOEHM_GC) && !defined(KAFFE_BUGGY_NETBSD_SIGWAIT)
+#if !defined(KAFFE_BOEHM_GC) && (!defined(KAFFE_BUGGY_NETBSD_SIGWAIT) || 
(defined(__NetBSD__) && __NetBSD_Version__ >= 499000200 /* 4.99.02 */ )
   sigaction( sigResume, &saResume, NULL);
 #endif
 



Home | Main Index | Thread Index | Old Index