From owner-freebsd-java Sun Oct 20 2:30:46 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9CE337B401 for ; Sun, 20 Oct 2002 02:30:45 -0700 (PDT) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 551D743EA9 for ; Sun, 20 Oct 2002 02:30:45 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 183CPp-00048n-00; Sun, 20 Oct 2002 02:30:33 -0700 Date: Sun, 20 Oct 2002 02:30:33 -0700 To: Greg Lewis Cc: Marc Recht , freebsd-java@FreeBSD.ORG, phantom@FreeBSD.org.ua, "Bill Huey (Hui)" Subject: Re: Native J2SE 1.4 update (it's working) Message-ID: <20021020093033.GA15907@gnuppy.monkey.org> References: <20021018095327.GA7430@gnuppy.monkey.org> <1034952663.77412.7.camel@leeloo.intern.geht.de> <20021018223413.GA2277@gnuppy.monkey.org> <20021020134801.B73824@misty.eyesbeyond.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021020134801.B73824@misty.eyesbeyond.com> User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, Oct 20, 2002 at 01:48:01PM +0930, Greg Lewis wrote: > > I've talked about it before, but I'd like a patch page for me to upload > > my own fixes, etc... (are the empowered folks paying attention ?) > > What would you like the page to do and why don't I just commit the > patches to the FreeBSD port in between patchsets (or doesn't this > solve the problem?). This is mainly to free you from doing this task and for me to add experimental hacks to the tree. An automated CVS snapshot would probably do just as well. Don't know. bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Oct 20 10:30:44 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A36A37B401; Sun, 20 Oct 2002 10:29:55 -0700 (PDT) Received: from mail.nsu.ru (mx.nsu.ru [193.124.215.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id E18DA43EAA; Sun, 20 Oct 2002 10:29:51 -0700 (PDT) (envelope-from fjoe@iclub.nsu.ru) Received: from drweb by mail.nsu.ru with drweb-scanned (Exim 3.20 #1) id 183JtX-0000N0-00; Mon, 21 Oct 2002 00:29:43 +0700 Received: from iclub.nsu.ru ([193.124.215.97] ident=root) by mail.nsu.ru with esmtp (Exim 3.20 #1) id 183Jfe-00057A-00; Mon, 21 Oct 2002 00:15:22 +0700 Received: from iclub.nsu.ru (fjoe@localhost [127.0.0.1]) by iclub.nsu.ru (8.12.6/8.12.6) with ESMTP id g9KHFFFG038168; Mon, 21 Oct 2002 00:15:15 +0700 (NSS) (envelope-from fjoe@iclub.nsu.ru) Received: (from fjoe@localhost) by iclub.nsu.ru (8.12.6/8.12.6/Submit) id g9KHFEwt038167; Mon, 21 Oct 2002 00:15:14 +0700 (NSS) Date: Mon, 21 Oct 2002 00:15:14 +0700 From: Max Khon To: freebsd-stable@freebsd.org, freebsd-java@freebsd.org Subject: libc_r MFC Message-ID: <20021021001514.A38080@iclub.nsu.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Envelope-To: freebsd-stable@freebsd.org, freebsd-java@freebsd.org X-Spam-Status: No, hits=-4.9 required=5.0 tests=PORN_10,UNIFIED_PATCH version=2.20 X-Spam-Level: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline hi, there! Please test attached patch. It contains MFC of signal handling, thread suspension and a couple of bug fixes. I have succesfully run Java2D demo and JBuilder 7 with hotspot (compiler2) built from ports/java/jdk13 with these patches. /fjoe --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=current-diffs Index: include/pthread_np.h =================================================================== RCS file: /home/ncvs/src/include/pthread_np.h,v retrieving revision 1.7.2.2 diff -u -p -r1.7.2.2 pthread_np.h --- include/pthread_np.h 15 Oct 2002 16:52:04 -0000 1.7.2.2 +++ include/pthread_np.h 20 Oct 2002 15:50:46 -0000 @@ -46,8 +46,10 @@ __BEGIN_DECLS int pthread_attr_setcreatesuspend_np __P((pthread_attr_t *)); int pthread_main_np __P((void)); int pthread_multi_np __P((void)); +void pthread_resume_all_np __P((void)); int pthread_resume_np __P((pthread_t)); int pthread_single_np __P((void)); +void pthread_suspend_all_np __P((void)); int pthread_suspend_np __P((pthread_t)); int pthread_mutexattr_getkind_np __P((pthread_mutexattr_t)); int pthread_mutexattr_setkind_np __P((pthread_mutexattr_t *, int)); Index: lib/libc_r/uthread/pthread_private.h =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/pthread_private.h,v retrieving revision 1.36.2.20 diff -u -p -r1.36.2.20 pthread_private.h --- lib/libc_r/uthread/pthread_private.h 17 Oct 2002 19:37:33 -0000 1.36.2.20 +++ lib/libc_r/uthread/pthread_private.h 20 Oct 2002 14:44:06 -0000 @@ -188,14 +188,15 @@ if ((thrd)->state != newstate) { \ if ((thrd)->state == PS_RUNNING) { \ PTHREAD_PRIOQ_REMOVE(thrd); \ + PTHREAD_SET_STATE(thrd, newstate); \ PTHREAD_WAITQ_INSERT(thrd); \ } else if (newstate == PS_RUNNING) { \ PTHREAD_WAITQ_REMOVE(thrd); \ + PTHREAD_SET_STATE(thrd, newstate); \ PTHREAD_PRIOQ_INSERT_TAIL(thrd); \ } \ } \ _thread_kern_new_state = 0; \ - PTHREAD_SET_STATE(thrd, newstate); \ } while (0) #else #define PTHREAD_ASSERT(cond, msg) @@ -395,18 +396,6 @@ struct pthread_attr { #define PTHREAD_CREATE_SUSPENDED 1 /* - * Additional state for a thread suspended with pthread_suspend_np(). - */ -enum pthread_susp { - SUSP_NO, /* Not suspended. */ - SUSP_YES, /* Suspended. */ - SUSP_JOIN, /* Suspended, joining. */ - SUSP_NOWAIT, /* Suspended, was in a mutex or condition queue. */ - SUSP_MUTEX_WAIT,/* Suspended, still in a mutex queue. */ - SUSP_COND_WAIT /* Suspended, still in a condition queue. */ -}; - -/* * Miscellaneous definitions. */ #define PTHREAD_STACK_DEFAULT 65536 @@ -604,33 +593,8 @@ struct join_status { }; /* - * Normally thread contexts are stored as jmp_bufs via _setjmp()/_longjmp(), - * but they may also be sigjmp_buf and ucontext_t. When a thread is - * interrupted by a signal, it's context is saved as a ucontext_t. An - * application is also free to use [_]longjmp()/[_]siglongjmp() to jump - * between contexts within the same thread. Future support will also - * include setcontext()/getcontext(). - * - * Define an enumerated type that can identify the 4 different context - * types. - */ -typedef enum { - CTX_JB_NOSIG, /* context is jmp_buf without saved sigset */ - CTX_JB, /* context is jmp_buf (with saved sigset) */ - CTX_SJB, /* context is sigjmp_buf (with saved sigset) */ - CTX_UC /* context is ucontext_t (with saved sigset) */ -} thread_context_t; - -/* - * There are 2 basic contexts that a frame may contain at any - * one time: - * - * o ctx - The context that the thread should return to after normal - * completion of the signal handler. - * o sig_jb - The context just before the signal handler is invoked. - * Attempts at abnormal returns from user supplied signal handlers - * will return back to the signal context to perform any necessary - * cleanup. + * The frame that is added to the top of a threads stack when setting up + * up the thread to run a signal handler. */ struct pthread_signal_frame { /* @@ -639,19 +603,12 @@ struct pthread_signal_frame { struct pthread_state_data saved_state; /* - * Threads return context; ctxtype identifies the type of context. - * For signal frame 0, these point to the context storage area - * within the pthread structure. When handling signals (frame > 0), - * these point to a context storage area that is allocated off the - * threads stack. + * Threads return context; we use only jmp_buf's for now. */ union { jmp_buf jb; - sigjmp_buf sigjb; ucontext_t uc; } ctx; - thread_context_t ctxtype; - int longjmp_val; int signo; /* signal, arg 1 to sighandler */ int sig_has_args; /* use signal args if true */ ucontext_t uc; @@ -692,15 +649,12 @@ struct pthread { struct pthread_attr attr; /* - * Threads return context; ctxtype identifies the type of context. + * Threads return context; we use only jmp_buf's for now. */ union { jmp_buf jb; - sigjmp_buf sigjb; ucontext_t uc; } ctx; - thread_context_t ctxtype; - int longjmp_val; /* * Used for tracking delivery of signal handlers. @@ -716,8 +670,6 @@ struct pthread { #define PTHREAD_CANCEL_NEEDED 0x0010 int cancelflags; - enum pthread_susp suspended; - thread_continuation_t continuation; /* @@ -759,7 +711,7 @@ struct pthread { int error; /* - * THe joiner is the thread that is joining to this thread. The + * The joiner is the thread that is joining to this thread. The * join status keeps track of a join operation to another thread. */ struct pthread *joiner; @@ -834,7 +786,8 @@ struct pthread { #define PTHREAD_FLAGS_IN_FDQ 0x0040 /* in fd lock queue using qe link */ #define PTHREAD_FLAGS_IN_CONDQ 0x0080 /* in condition queue using sqe link*/ #define PTHREAD_FLAGS_IN_MUTEXQ 0x0100 /* in mutex queue using sqe link */ -#define PTHREAD_FLAGS_TRACE 0x0200 /* for debugging purposes */ +#define PTHREAD_FLAGS_SUSPENDED 0x0200 /* thread is suspended */ +#define PTHREAD_FLAGS_TRACE 0x0400 /* for debugging purposes */ #define PTHREAD_FLAGS_IN_SYNCQ \ (PTHREAD_FLAGS_IN_CONDQ | PTHREAD_FLAGS_IN_MUTEXQ) @@ -917,17 +870,6 @@ SCLASS struct pthread * volatile _last ; #endif -/* - * Ptr to the thread running in single-threaded mode or NULL if - * running multi-threaded (default POSIX behaviour). - */ -SCLASS struct pthread * volatile _thread_single -#ifdef GLOBAL_PTHREAD_PRIVATE -= NULL; -#else -; -#endif - /* List of all threads: */ SCLASS TAILQ_HEAD(, pthread) _thread_list #ifdef GLOBAL_PTHREAD_PRIVATE @@ -1145,9 +1087,6 @@ SCLASS volatile int _sigq_check_reqd #endif ; -/* The signal stack. */ -SCLASS struct sigaltstack _thread_sigstack; - /* Thread switch hook. */ SCLASS pthread_switch_routine_t _sched_switch_hook #ifdef GLOBAL_PTHREAD_PRIVATE @@ -1284,9 +1223,15 @@ void _thread_enter_cancellation_point(vo void _thread_leave_cancellation_point(void); void _thread_cancellation_point(void); +/* #include */ +#ifdef _SYS_AIO_H_ +int __sys_aio_suspend(const struct aiocb * const[], int, const struct timespec *); +#endif + /* #include */ #ifdef _SYS_EVENT_H_ -int __sys_kevent(int, const struct kevent *, int, struct kevent *, int, const struct timespec *); +int __sys_kevent(int, const struct kevent *, int, struct kevent *, + int, const struct timespec *); #endif /* #include */ @@ -1340,11 +1285,6 @@ ssize_t __sys_writev(int, const struct i /* #include */ #ifdef WNOHANG pid_t __sys_wait4(pid_t, int *, int, struct rusage *); -#endif - -/* #include */ -#ifdef _SYS_AIO_H_ -int __sys_aio_suspend(const struct aiocb * const[], int, const struct timespec *); #endif /* #include */ Index: lib/libc_r/uthread/uthread_cancel.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_cancel.c,v retrieving revision 1.3.2.8 diff -u -p -r1.3.2.8 uthread_cancel.c --- lib/libc_r/uthread/uthread_cancel.c 17 Oct 2002 19:37:33 -0000 1.3.2.8 +++ lib/libc_r/uthread/uthread_cancel.c 20 Oct 2002 14:43:55 -0000 @@ -61,8 +61,7 @@ pthread_cancel(pthread_t pthread) case PS_JOIN: /* - * Disconnect the thread from the joinee and - * detach: + * Disconnect the thread from the joinee: */ if (pthread->join_status.thread != NULL) { pthread->join_status.thread->joiner @@ -74,20 +73,6 @@ pthread_cancel(pthread_t pthread) break; case PS_SUSPENDED: - if (pthread->suspended == SUSP_NO || - pthread->suspended == SUSP_YES || - pthread->suspended == SUSP_JOIN || - pthread->suspended == SUSP_NOWAIT) { - /* - * This thread isn't in any scheduling - * queues; just change it's state: - */ - pthread->cancelflags |= - PTHREAD_CANCELLING; - PTHREAD_SET_STATE(pthread, PS_RUNNING); - break; - } - /* FALLTHROUGH */ case PS_MUTEX_WAIT: case PS_COND_WAIT: case PS_FDLR_WAIT: @@ -105,7 +90,7 @@ pthread_cancel(pthread_t pthread) */ pthread->interrupted = 1; pthread->cancelflags |= PTHREAD_CANCEL_NEEDED; - PTHREAD_NEW_STATE(pthread,PS_RUNNING); + PTHREAD_NEW_STATE(pthread, PS_RUNNING); pthread->continuation = finish_cancellation; break; Index: lib/libc_r/uthread/uthread_cond.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_cond.c,v retrieving revision 1.22.2.7 diff -u -p -r1.22.2.7 uthread_cond.c --- lib/libc_r/uthread/uthread_cond.c 17 Oct 2002 19:37:33 -0000 1.22.2.7 +++ lib/libc_r/uthread/uthread_cond.c 20 Oct 2002 14:43:55 -0000 @@ -516,15 +516,9 @@ pthread_cond_signal(pthread_cond_t * con if ((pthread = cond_queue_deq(*cond)) != NULL) { /* - * Unless the thread is currently suspended, - * allow it to run. If the thread is suspended, - * make a note that the thread isn't in a wait - * queue any more. + * Wake up the signaled thread: */ - if (pthread->state != PS_SUSPENDED) - PTHREAD_NEW_STATE(pthread,PS_RUNNING); - else - pthread->suspended = SUSP_NOWAIT; + PTHREAD_NEW_STATE(pthread, PS_RUNNING); } /* Check for no more waiters: */ @@ -588,15 +582,9 @@ pthread_cond_broadcast(pthread_cond_t * */ while ((pthread = cond_queue_deq(*cond)) != NULL) { /* - * Unless the thread is currently suspended, - * allow it to run. If the thread is suspended, - * make a note that the thread isn't in a wait - * queue any more. + * Wake up the signaled thread: */ - if (pthread->state != PS_SUSPENDED) - PTHREAD_NEW_STATE(pthread,PS_RUNNING); - else - pthread->suspended = SUSP_NOWAIT; + PTHREAD_NEW_STATE(pthread, PS_RUNNING); } /* There are no more waiting threads: */ Index: lib/libc_r/uthread/uthread_create.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_create.c,v retrieving revision 1.24.2.4 diff -u -p -r1.24.2.4 uthread_create.c --- lib/libc_r/uthread/uthread_create.c 17 Oct 2002 19:37:35 -0000 1.24.2.4 +++ lib/libc_r/uthread/uthread_create.c 20 Oct 2002 14:44:06 -0000 @@ -53,16 +53,11 @@ int _thread_next_offset = OFF(tle.tqe_ int _thread_uniqueid_offset = OFF(uniqueid); int _thread_state_offset = OFF(state); int _thread_name_offset = OFF(name); -int _thread_ctxtype_offset = OFF(ctxtype); int _thread_ctx_offset = OFF(ctx); #undef OFF int _thread_PS_RUNNING_value = PS_RUNNING; int _thread_PS_DEAD_value = PS_DEAD; -int _thread_CTX_JB_NOSIG_value = CTX_JB_NOSIG; -int _thread_CTX_JB_value = CTX_JB; -int _thread_CTX_SJB_value = CTX_SJB; -int _thread_CTX_UC_value = CTX_UC; int pthread_create(pthread_t * thread, const pthread_attr_t * attr, @@ -202,9 +197,6 @@ pthread_create(pthread_t * thread, const (long)new_thread->stack + pattr->stacksize_attr - sizeof(double)); - /* Initialize the rest of the frame: */ - new_thread->ctxtype = CTX_JB_NOSIG; - /* Copy the thread attributes: */ memcpy(&new_thread->attr, pattr, sizeof(struct pthread_attr)); @@ -269,9 +261,10 @@ pthread_create(pthread_t * thread, const /* Add the thread to the linked list of all threads: */ TAILQ_INSERT_HEAD(&_thread_list, new_thread, tle); - if (pattr->suspend == PTHREAD_CREATE_SUSPENDED) + if (pattr->suspend == PTHREAD_CREATE_SUSPENDED) { + new_thread->flags |= PTHREAD_FLAGS_SUSPENDED; new_thread->state = PS_SUSPENDED; - else { + } else { new_thread->state = PS_RUNNING; PTHREAD_PRIOQ_INSERT_TAIL(new_thread); } Index: lib/libc_r/uthread/uthread_exit.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_exit.c,v retrieving revision 1.16.2.7 diff -u -p -r1.16.2.7 uthread_exit.c --- lib/libc_r/uthread/uthread_exit.c 17 Oct 2002 19:37:35 -0000 1.16.2.7 +++ lib/libc_r/uthread/uthread_exit.c 20 Oct 2002 14:43:55 -0000 @@ -210,22 +210,8 @@ pthread_exit(void *status) pthread = curthread->joiner; curthread->joiner = NULL; - switch (pthread->suspended) { - case SUSP_JOIN: - /* - * The joining thread is suspended. Change the - * suspension state to make the thread runnable when it - * is resumed: - */ - pthread->suspended = SUSP_NO; - break; - case SUSP_NO: - /* Make the joining thread runnable: */ - PTHREAD_NEW_STATE(pthread, PS_RUNNING); - break; - default: - PANIC("Unreachable code reached"); - } + /* Make the joining thread runnable: */ + PTHREAD_NEW_STATE(pthread, PS_RUNNING); /* Set the return value for the joining thread: */ pthread->join_status.ret = curthread->ret; Index: lib/libc_r/uthread/uthread_gc.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_gc.c,v retrieving revision 1.11.2.4 diff -u -p -r1.11.2.4 uthread_gc.c --- lib/libc_r/uthread/uthread_gc.c 17 Oct 2002 19:44:38 -0000 1.11.2.4 +++ lib/libc_r/uthread/uthread_gc.c 20 Oct 2002 14:43:55 -0000 @@ -123,13 +123,13 @@ _thread_gc(pthread_addr_t arg) * Check if this thread has detached: */ else if ((pthread->attr.flags & - PTHREAD_DETACHED) != 0) { + PTHREAD_DETACHED) != 0) { /* Remove this thread from the dead list: */ TAILQ_REMOVE(&_dead_list, pthread, dle); /* * Check if the stack was not specified by - * the caller to pthread_create and has not + * the caller to pthread_create() and has not * been destroyed yet: */ if (pthread->attr.stackaddr_attr == NULL && @@ -170,7 +170,7 @@ _thread_gc(pthread_addr_t arg) * not destroy it. * * Check if the stack was not specified by - * the caller to pthread_create and has not + * the caller to pthread_create() and has not * been destroyed yet: */ if (pthread->attr.stackaddr_attr == NULL && Index: lib/libc_r/uthread/uthread_init.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_init.c,v retrieving revision 1.23.2.9 diff -u -p -r1.23.2.9 uthread_init.c --- lib/libc_r/uthread/uthread_init.c 17 Oct 2002 19:37:36 -0000 1.23.2.9 +++ lib/libc_r/uthread/uthread_init.c 20 Oct 2002 15:12:33 -0000 @@ -147,20 +147,21 @@ _thread_init(void) PANIC("Can't open console"); if (setlogin("root") == -1) PANIC("Can't set login to root"); - if (__sys_ioctl(fd,TIOCSCTTY, (char *) NULL) == -1) + if (__sys_ioctl(fd, TIOCSCTTY, (char *) NULL) == -1) PANIC("Can't set controlling terminal"); - if (__sys_dup2(fd,0) == -1 || - __sys_dup2(fd,1) == -1 || - __sys_dup2(fd,2) == -1) + if (__sys_dup2(fd, 0) == -1 || + __sys_dup2(fd, 1) == -1 || + __sys_dup2(fd, 2) == -1) PANIC("Can't dup2"); } /* Get the standard I/O flags before messing with them : */ - for (i = 0; i < 3; i++) + for (i = 0; i < 3; i++) { if (((_pthread_stdio_flags[i] = - __sys_fcntl(i,F_GETFL, NULL)) == -1) && + __sys_fcntl(i, F_GETFL, NULL)) == -1) && (errno != EBADF)) PANIC("Cannot get stdio flags"); + } /* * Create a pipe that is written to by the signal handler to prevent @@ -170,8 +171,21 @@ _thread_init(void) /* Cannot create pipe, so abort: */ PANIC("Cannot create kernel pipe"); } + + /* + * Make sure the pipe does not get in the way of stdio: + */ + for (i = 0; i < 2; i++) { + if (_thread_kern_pipe[i] < 3) { + fd = __sys_fcntl(_thread_kern_pipe[i], F_DUPFD, 3); + if (fd == -1) + PANIC("Cannot create kernel pipe"); + __sys_close(_thread_kern_pipe[i]); + _thread_kern_pipe[i] = fd; + } + } /* Get the flags for the read pipe: */ - else if ((flags = __sys_fcntl(_thread_kern_pipe[0], F_GETFL, NULL)) == -1) { + if ((flags = __sys_fcntl(_thread_kern_pipe[0], F_GETFL, NULL)) == -1) { /* Abort this application: */ PANIC("Cannot get kernel read pipe flags"); } @@ -231,7 +245,7 @@ _thread_init(void) mib[1] = KERN_USRSTACK; len = sizeof (int); if (sysctl(mib, 2, &_usrstack, &len, NULL, 0) == -1) - _usrstack = USRSTACK; + _usrstack = (void *)USRSTACK; /* * Create a red zone below the main stack. All other stacks are * constrained to a maximum size by the paramters passed to @@ -291,7 +305,6 @@ _thread_init(void) /* Initialize the initial context: */ _thread_initial->curframe = NULL; - _thread_initial->ctxtype = CTX_JB_NOSIG; /* Initialise the rest of the fields: */ _thread_initial->poll_data.nfds = 0; @@ -316,17 +329,6 @@ _thread_init(void) /* Clear the signal queue: */ memset(_thread_sigq, 0, sizeof(_thread_sigq)); - - /* - * Create and install an alternate signal stack of - * the recommended size: - */ - _thread_sigstack.ss_sp = malloc(SIGSTKSZ); - _thread_sigstack.ss_size = SIGSTKSZ; - _thread_sigstack.ss_flags = 0; - if ((_thread_sigstack.ss_sp == NULL) || - (__sys_sigaltstack(&_thread_sigstack, NULL) != 0)) - PANIC("Unable to install alternate signal stack"); /* Enter a loop to get the existing signal status: */ for (i = 1; i < NSIG; i++) { Index: lib/libc_r/uthread/uthread_kern.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_kern.c,v retrieving revision 1.28.2.12 diff -u -p -r1.28.2.12 uthread_kern.c --- lib/libc_r/uthread/uthread_kern.c 17 Oct 2002 20:09:23 -0000 1.28.2.12 +++ lib/libc_r/uthread/uthread_kern.c 20 Oct 2002 16:04:03 -0000 @@ -101,7 +101,7 @@ _thread_kern_sched_frame(struct pthread_ void -_thread_kern_sched(ucontext_t *scp) +_thread_kern_sched(ucontext_t *ucp) { struct pthread *curthread = _get_curthread(); @@ -113,50 +113,61 @@ _thread_kern_sched(ucontext_t *scp) _thread_kern_in_sched = 1; /* Check if this function was called from the signal handler: */ - if (scp != NULL) { + if (ucp != NULL) { + /* XXX - Save FP registers? */ + FP_SAVE_UC(ucp); called_from_handler = 1; DBG_MSG("Entering scheduler due to signal\n"); - } else { - /* Save the state of the current thread: */ - if (_setjmp(curthread->ctx.jb) == 0) { - /* Flag the jump buffer was the last state saved: */ - curthread->ctxtype = CTX_JB_NOSIG; - curthread->longjmp_val = 1; - } else { - DBG_MSG("Returned from ___longjmp, thread %p\n", - curthread); - /* - * This point is reached when a longjmp() is called - * to restore the state of a thread. - * - * This is the normal way out of the scheduler. - */ - _thread_kern_in_sched = 0; + } - if (curthread->sig_defer_count == 0) { - if (((curthread->cancelflags & - PTHREAD_AT_CANCEL_POINT) == 0) && - ((curthread->cancelflags & - PTHREAD_CANCEL_ASYNCHRONOUS) != 0)) - /* - * Cancellations override signals. - * - * Stick a cancellation point at the - * start of each async-cancellable - * thread's resumption. - * - * We allow threads woken at cancel - * points to do their own checks. - */ - pthread_testcancel(); - } + /* Save the state of the current thread: */ + if (_setjmp(curthread->ctx.jb) != 0) { + DBG_MSG("Returned from ___longjmp, thread %p\n", + curthread); + /* + * This point is reached when a longjmp() is called + * to restore the state of a thread. + * + * This is the normal way out of the scheduler. + */ + _thread_kern_in_sched = 0; - if (_sched_switch_hook != NULL) { - /* Run the installed switch hook: */ - thread_run_switch_hook(_last_user_thread, - curthread); - } + if (curthread->sig_defer_count == 0) { + if (((curthread->cancelflags & + PTHREAD_AT_CANCEL_POINT) == 0) && + ((curthread->cancelflags & + PTHREAD_CANCEL_ASYNCHRONOUS) != 0)) + /* + * Cancellations override signals. + * + * Stick a cancellation point at the + * start of each async-cancellable + * thread's resumption. + * + * We allow threads woken at cancel + * points to do their own checks. + */ + pthread_testcancel(); + } + + if (_sched_switch_hook != NULL) { + /* Run the installed switch hook: */ + thread_run_switch_hook(_last_user_thread, curthread); + } + if (ucp == NULL) return; + else { + /* XXX - Restore FP registers? */ + FP_RESTORE_UC(ucp); + + /* + * Set the process signal mask in the context; it + * could have changed by the handler. + */ + ucp->uc_sigmask = _process_sigmask; + + /* Resume the interrupted thread: */ + sigreturn(ucp); } } /* Switch to the thread scheduler: */ @@ -191,20 +202,12 @@ _thread_kern_scheduler(void) called_from_handler = 0; /* - * The signal handler should have saved the state of - * the current thread. Restore the process signal - * mask. + * We were called from a signal handler; restore the process + * signal mask. */ if (__sys_sigprocmask(SIG_SETMASK, &_process_sigmask, NULL) != 0) PANIC("Unable to restore process mask after signal"); - - /* - * Since the signal handler didn't return normally, we - * have to tell the kernel to reuse the signal stack. - */ - if (__sys_sigaltstack(&_thread_sigstack, NULL) != 0) - PANIC("Unable to restore alternate signal stack"); } /* @@ -582,42 +585,11 @@ _thread_kern_scheduler(void) /* * Continue the thread at its current frame: */ - switch(curthread->ctxtype) { - case CTX_JB_NOSIG: - ___longjmp(curthread->ctx.jb, - curthread->longjmp_val); - break; - case CTX_JB: - __longjmp(curthread->ctx.jb, - curthread->longjmp_val); - break; - case CTX_SJB: - __siglongjmp(curthread->ctx.sigjb, - curthread->longjmp_val); - break; - case CTX_UC: - /* XXX - Restore FP regsisters? */ - FP_RESTORE_UC(&curthread->ctx.uc); - - /* - * Do a sigreturn to restart the thread that - * was interrupted by a signal: - */ - _thread_kern_in_sched = 0; - #if NOT_YET - _setcontext(&curthread->ctx.uc); + _setcontext(&curthread->ctx.uc); #else - /* - * Ensure the process signal mask is set - * correctly: - */ - curthread->ctx.uc.uc_sigmask = - _process_sigmask; - sigreturn(&curthread->ctx.uc); + ___longjmp(curthread->ctx.jb, 1); #endif - break; - } /* This point should not be reached. */ PANIC("Thread has returned from sigreturn or longjmp"); } Index: lib/libc_r/uthread/uthread_multi_np.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_multi_np.c,v retrieving revision 1.4 diff -u -p -r1.4 uthread_multi_np.c --- lib/libc_r/uthread/uthread_multi_np.c 12 Jan 2000 09:28:46 -0000 1.4 +++ lib/libc_r/uthread/uthread_multi_np.c 20 Oct 2002 14:43:55 -0000 @@ -34,13 +34,18 @@ #include #ifdef _THREAD_SAFE #include -#include "pthread_private.h" +#include int pthread_multi_np() { + /* Return to multi-threaded scheduling mode: */ - _thread_single = NULL; - return(0); + /* + * XXX - Do we want to do this? + * __is_threaded = 1; + */ + pthread_resume_all_np(); + return (0); } #endif Index: lib/libc_r/uthread/uthread_mutex.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_mutex.c,v retrieving revision 1.20.2.7 diff -u -p -r1.20.2.7 uthread_mutex.c --- lib/libc_r/uthread/uthread_mutex.c 17 Oct 2002 19:37:37 -0000 1.20.2.7 +++ lib/libc_r/uthread/uthread_mutex.c 20 Oct 2002 16:25:48 -0000 @@ -793,21 +793,9 @@ mutex_unlock_common(pthread_mutex_t * mu */ if (((*mutex)->m_owner = mutex_queue_deq(*mutex)) != NULL) { - /* - * Unless the new owner of the mutex is - * currently suspended, allow the owner - * to run. If the thread is suspended, - * make a note that the thread isn't in - * a wait queue any more. - */ - if (((*mutex)->m_owner->state != - PS_SUSPENDED)) { - PTHREAD_NEW_STATE((*mutex)->m_owner, - PS_RUNNING); - } else { - (*mutex)->m_owner->suspended = - SUSP_NOWAIT; - } + /* Make the new owner runnable: */ + PTHREAD_NEW_STATE((*mutex)->m_owner, + PS_RUNNING); /* * Add the mutex to the threads list of @@ -925,20 +913,10 @@ mutex_unlock_common(pthread_mutex_t * mu (*mutex)->m_prio; /* - * Unless the new owner of the mutex is - * currently suspended, allow the owner - * to run. If the thread is suspended, - * make a note that the thread isn't in - * a wait queue any more. - */ - if (((*mutex)->m_owner->state != - PS_SUSPENDED)) { - PTHREAD_NEW_STATE((*mutex)->m_owner, - PS_RUNNING); - } else { - (*mutex)->m_owner->suspended = - SUSP_NOWAIT; - } + * Make the new owner runnable: + */ + PTHREAD_NEW_STATE((*mutex)->m_owner, + PS_RUNNING); } } break; @@ -1054,20 +1032,10 @@ mutex_unlock_common(pthread_mutex_t * mu (*mutex)->m_prio; /* - * Unless the new owner of the mutex is - * currently suspended, allow the owner - * to run. If the thread is suspended, - * make a note that the thread isn't in - * a wait queue any more. - */ - if (((*mutex)->m_owner->state != - PS_SUSPENDED)) { - PTHREAD_NEW_STATE((*mutex)->m_owner, - PS_RUNNING); - } else { - (*mutex)->m_owner->suspended = - SUSP_NOWAIT; - } + * Make the new owner runnable: + */ + PTHREAD_NEW_STATE((*mutex)->m_owner, + PS_RUNNING); } } break; Index: lib/libc_r/uthread/uthread_priority_queue.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_priority_queue.c,v retrieving revision 1.5.2.2 diff -u -p -r1.5.2.2 uthread_priority_queue.c --- lib/libc_r/uthread/uthread_priority_queue.c 17 Oct 2002 19:37:38 -0000 1.5.2.2 +++ lib/libc_r/uthread/uthread_priority_queue.c 20 Oct 2002 14:43:55 -0000 @@ -165,52 +165,74 @@ _pq_remove(pq_queue_t *pq, pthread_t pth void _pq_insert_head(pq_queue_t *pq, pthread_t pthread) { - int prio = pthread->active_priority; + int prio; /* - * Make some assertions when debugging is enabled: + * Don't insert suspended threads into the priority queue. + * The caller is responsible for setting the threads state. */ - _PQ_ASSERT_INACTIVE("_pq_insert_head: pq_active"); - _PQ_SET_ACTIVE(); - _PQ_ASSERT_NOT_QUEUED(pthread, - "_pq_insert_head: Already in priority queue"); - _PQ_ASSERT_PROTECTED("_pq_insert_head: prioq not protected!"); - - TAILQ_INSERT_HEAD(&pq->pq_lists[prio].pl_head, pthread, pqe); - if (pq->pq_lists[prio].pl_queued == 0) - /* Insert the list into the priority queue: */ - pq_insert_prio_list(pq, prio); + if ((pthread->flags & PTHREAD_FLAGS_SUSPENDED) != 0) { + /* Make sure the threads state is suspended. */ + if (pthread->state != PS_SUSPENDED) + PTHREAD_SET_STATE(pthread, PS_SUSPENDED); + } else { + /* + * Make some assertions when debugging is enabled: + */ + _PQ_ASSERT_INACTIVE("_pq_insert_head: pq_active"); + _PQ_SET_ACTIVE(); + _PQ_ASSERT_NOT_QUEUED(pthread, + "_pq_insert_head: Already in priority queue"); + _PQ_ASSERT_PROTECTED("_pq_insert_head: prioq not protected!"); + + prio = pthread->active_priority; + TAILQ_INSERT_HEAD(&pq->pq_lists[prio].pl_head, pthread, pqe); + if (pq->pq_lists[prio].pl_queued == 0) + /* Insert the list into the priority queue: */ + pq_insert_prio_list(pq, prio); - /* Mark this thread as being in the priority queue. */ - pthread->flags |= PTHREAD_FLAGS_IN_PRIOQ; + /* Mark this thread as being in the priority queue. */ + pthread->flags |= PTHREAD_FLAGS_IN_PRIOQ; - _PQ_CLEAR_ACTIVE(); + _PQ_CLEAR_ACTIVE(); + } } void _pq_insert_tail(pq_queue_t *pq, pthread_t pthread) { - int prio = pthread->active_priority; + int prio; /* - * Make some assertions when debugging is enabled: + * Don't insert suspended threads into the priority queue. + * The caller is responsible for setting the threads state. */ - _PQ_ASSERT_INACTIVE("_pq_insert_tail: pq_active"); - _PQ_SET_ACTIVE(); - _PQ_ASSERT_NOT_QUEUED(pthread, - "_pq_insert_tail: Already in priority queue"); - _PQ_ASSERT_PROTECTED("_pq_insert_tail: prioq not protected!"); - - TAILQ_INSERT_TAIL(&pq->pq_lists[prio].pl_head, pthread, pqe); - if (pq->pq_lists[prio].pl_queued == 0) - /* Insert the list into the priority queue: */ - pq_insert_prio_list(pq, prio); + if ((pthread->flags & PTHREAD_FLAGS_SUSPENDED) != 0) { + /* Make sure the threads state is suspended. */ + if (pthread->state != PS_SUSPENDED) + PTHREAD_SET_STATE(pthread, PS_SUSPENDED); + } else { + /* + * Make some assertions when debugging is enabled: + */ + _PQ_ASSERT_INACTIVE("_pq_insert_tail: pq_active"); + _PQ_SET_ACTIVE(); + _PQ_ASSERT_NOT_QUEUED(pthread, + "_pq_insert_tail: Already in priority queue"); + _PQ_ASSERT_PROTECTED("_pq_insert_tail: prioq not protected!"); + + prio = pthread->active_priority; + TAILQ_INSERT_TAIL(&pq->pq_lists[prio].pl_head, pthread, pqe); + if (pq->pq_lists[prio].pl_queued == 0) + /* Insert the list into the priority queue: */ + pq_insert_prio_list(pq, prio); - /* Mark this thread as being in the priority queue. */ - pthread->flags |= PTHREAD_FLAGS_IN_PRIOQ; + /* Mark this thread as being in the priority queue. */ + pthread->flags |= PTHREAD_FLAGS_IN_PRIOQ; - _PQ_CLEAR_ACTIVE(); + _PQ_CLEAR_ACTIVE(); + } } @@ -238,6 +260,17 @@ _pq_first(pq_queue_t *pq) /* Mark the list as not being in the queue: */ pql->pl_queued = 0; + } else if ((pthread->flags & PTHREAD_FLAGS_SUSPENDED) != 0) { + /* + * This thread is suspended; remove it from the + * list and ensure its state is suspended. + */ + TAILQ_REMOVE(&pql->pl_head, pthread, pqe); + PTHREAD_SET_STATE(pthread, PS_SUSPENDED); + + /* This thread is now longer in the priority queue. */ + pthread->flags &= ~PTHREAD_FLAGS_IN_PRIOQ; + pthread = NULL; } } Index: lib/libc_r/uthread/uthread_resume_np.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_resume_np.c,v retrieving revision 1.7.2.3 diff -u -p -r1.7.2.3 uthread_resume_np.c --- lib/libc_r/uthread/uthread_resume_np.c 23 Jun 2001 00:47:05 -0000 1.7.2.3 +++ lib/libc_r/uthread/uthread_resume_np.c 20 Oct 2002 14:43:55 -0000 @@ -36,61 +36,75 @@ #include #include "pthread_private.h" +static void resume_common(struct pthread *); + /* Resume a thread: */ int pthread_resume_np(pthread_t thread) { - int ret; - enum pthread_susp old_suspended; + int ret; /* Find the thread in the list of active threads: */ if ((ret = _find_thread(thread)) == 0) { - /* Cancel any pending suspensions: */ - old_suspended = thread->suspended; - thread->suspended = SUSP_NO; - - /* Is it currently suspended? */ - if (thread->state == PS_SUSPENDED) { - /* - * Defer signals to protect the scheduling queues - * from access by the signal handler: - */ - _thread_kern_sig_defer(); - - switch (old_suspended) { - case SUSP_MUTEX_WAIT: - /* Set the thread's state back. */ - PTHREAD_SET_STATE(thread,PS_MUTEX_WAIT); - break; - case SUSP_COND_WAIT: - /* Set the thread's state back. */ - PTHREAD_SET_STATE(thread,PS_COND_WAIT); - break; - case SUSP_JOIN: - /* Set the thread's state back. */ - PTHREAD_SET_STATE(thread,PS_JOIN); - break; - case SUSP_NOWAIT: - /* Allow the thread to run. */ - PTHREAD_SET_STATE(thread,PS_RUNNING); - PTHREAD_WAITQ_REMOVE(thread); - PTHREAD_PRIOQ_INSERT_TAIL(thread); - break; - case SUSP_NO: - case SUSP_YES: - /* Allow the thread to run. */ - PTHREAD_SET_STATE(thread,PS_RUNNING); - PTHREAD_PRIOQ_INSERT_TAIL(thread); - break; - } - - /* - * Undefer and handle pending signals, yielding if - * necessary: - */ - _thread_kern_sig_undefer(); - } + /* + * Defer signals to protect the scheduling queues + * from access by the signal handler: + */ + _thread_kern_sig_defer(); + + if ((thread->flags & PTHREAD_FLAGS_SUSPENDED) != 0) + resume_common(thread); + + /* + * Undefer and handle pending signals, yielding if + * necessary: + */ + _thread_kern_sig_undefer(); + } + return (ret); +} + +void +pthread_resume_all_np(void) +{ + struct pthread *curthread = _get_curthread(); + struct pthread *thread; + + /* + * Defer signals to protect the scheduling queues from access + * by the signal handler: + */ + _thread_kern_sig_defer(); + + TAILQ_FOREACH(thread, &_thread_list, tle) { + if ((thread != curthread) && + ((thread->flags & PTHREAD_FLAGS_SUSPENDED) != 0)) + resume_common(thread); + } + + /* + * Undefer and handle pending signals, yielding if necessary: + */ + _thread_kern_sig_undefer(); +} + +static void +resume_common(struct pthread *thread) +{ + /* Clear the suspend flag: */ + thread->flags &= ~PTHREAD_FLAGS_SUSPENDED; + + /* + * If the thread's state is suspended, that means it is + * now runnable but not in any scheduling queue. Set the + * state to running and insert it into the run queue. + */ + if (thread->state == PS_SUSPENDED) { + PTHREAD_SET_STATE(thread, PS_RUNNING); + if (thread->priority_mutex_count > 0) + PTHREAD_PRIOQ_INSERT_HEAD(thread); + else + PTHREAD_PRIOQ_INSERT_TAIL(thread); } - return(ret); } #endif Index: lib/libc_r/uthread/uthread_select.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_select.c,v retrieving revision 1.16.2.4 diff -u -p -r1.16.2.4 uthread_select.c --- lib/libc_r/uthread/uthread_select.c 17 Oct 2002 19:37:38 -0000 1.16.2.4 +++ lib/libc_r/uthread/uthread_select.c 20 Oct 2002 16:53:00 -0000 @@ -51,7 +51,7 @@ _select(int numfds, fd_set * readfds, fd struct pthread *curthread = _get_curthread(); struct timespec ts; int i, ret = 0, f_wait = 1; - int pfd_index, got_one = 0, fd_count = 0; + int pfd_index, got_events = 0, fd_count = 0; struct pthread_poll_data data; if (numfds > _thread_dtablesize) { @@ -165,13 +165,23 @@ _select(int numfds, fd_set * readfds, fd * this file descriptor from the fdset if * the requested event wasn't ready. */ - got_one = 0; + + /* + * First check for invalid descriptor. + * If found, set errno and return -1. + */ + if (data.fds[i].revents & POLLNVAL) { + errno = EBADF; + return -1; + } + + got_events = 0; if (readfds != NULL) { if (FD_ISSET(data.fds[i].fd, readfds)) { if ((data.fds[i].revents & (POLLIN | POLLRDNORM | POLLERR | POLLHUP | POLLNVAL)) != 0) - got_one = 1; + got_events++; else FD_CLR(data.fds[i].fd, readfds); } @@ -181,7 +191,7 @@ _select(int numfds, fd_set * readfds, fd if ((data.fds[i].revents & (POLLOUT | POLLWRNORM | POLLWRBAND | POLLERR | POLLHUP | POLLNVAL)) != 0) - got_one = 1; + got_events++; else FD_CLR(data.fds[i].fd, writefds); @@ -190,16 +200,15 @@ _select(int numfds, fd_set * readfds, fd if (exceptfds != NULL) { if (FD_ISSET(data.fds[i].fd, exceptfds)) { if (data.fds[i].revents & (POLLRDBAND | - POLLPRI | POLLHUP | POLLERR | - POLLNVAL)) - got_one = 1; + POLLPRI)) + got_events++; else FD_CLR(data.fds[i].fd, exceptfds); } } - if (got_one) - numfds++; + if (got_events != 0) + numfds+=got_events; } ret = numfds; } Index: lib/libc_r/uthread/uthread_sig.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_sig.c,v retrieving revision 1.25.2.12 diff -u -p -r1.25.2.12 uthread_sig.c --- lib/libc_r/uthread/uthread_sig.c 17 Oct 2002 19:37:38 -0000 1.25.2.12 +++ lib/libc_r/uthread/uthread_sig.c 20 Oct 2002 16:10:05 -0000 @@ -48,11 +48,12 @@ static void thread_sig_add(struct pthrea static void thread_sig_check_state(struct pthread *pthread, int sig); static struct pthread *thread_sig_find(int sig); static void thread_sig_handle_special(int sig); -static void thread_sig_savecontext(struct pthread *pthread, ucontext_t *ucp); static void thread_sigframe_add(struct pthread *thread, int sig, int has_args); static void thread_sigframe_save(struct pthread *thread, struct pthread_signal_frame *psf); +static void thread_sig_invoke_handler(int sig, siginfo_t *info, + ucontext_t *ucp); /* #define DEBUG_SIGNAL */ #ifdef DEBUG_SIGNAL @@ -74,22 +75,13 @@ _thread_sig_handler(int sig, siginfo_t * { struct pthread *curthread = _get_curthread(); struct pthread *pthread, *pthread_h; - void *stackp; - int in_sched = 0; + int in_sched = _thread_kern_in_sched; char c; if (ucp == NULL) PANIC("Thread signal handler received null context"); DBG_MSG("Got signal %d, current thread %p\n", sig, curthread); - if (_thread_kern_in_sched != 0) - in_sched = 1; - else { - stackp = (void *)GET_STACK_UC(ucp); - if ((stackp >= _thread_kern_sched_stack) && - (stackp <= _thread_kern_sched_stack + SCHED_STACK_SIZE)) - in_sched = 1; - } /* Check if an interval timer signal: */ if (sig == _SCHED_SIGNAL) { /* Update the scheduling clock: */ @@ -110,16 +102,7 @@ _thread_sig_handler(int sig, siginfo_t * else if (curthread->sig_defer_count > 0) curthread->yield_on_sig_undefer = 1; else { - /* - * Save the context of the currently running thread: - */ - thread_sig_savecontext(curthread, ucp); - - /* - * Schedule the next thread. This function is not - * expected to return because it will do a longjmp - * instead. - */ + /* Schedule the next thread: */ _thread_kern_sched(ucp); /* @@ -213,18 +196,30 @@ _thread_sig_handler(int sig, siginfo_t * thread_sig_handle_special(sig); pthread_h = NULL; - if ((pthread = thread_sig_find(sig)) != NULL) { - DBG_MSG("Got signal %d, adding frame to thread %p\n", - sig, pthread); + if ((pthread = thread_sig_find(sig)) == NULL) + DBG_MSG("No thread to handle signal %d\n", sig); + else if (pthread == curthread) { /* - * A thread was found that can handle the signal. - * Save the context of the currently running thread - * so that we can switch to another thread without - * losing track of where the current thread left off. - * This also applies if the current thread is the - * thread to be signaled. + * Unblock the signal and restore the process signal + * mask in case we don't return from the handler: */ - thread_sig_savecontext(curthread, ucp); + _thread_sigq[sig - 1].blocked = 0; + __sys_sigprocmask(SIG_SETMASK, &_process_sigmask, NULL); + + /* Call the signal handler for the current thread: */ + thread_sig_invoke_handler(sig, info, ucp); + + /* + * Set the process signal mask in the context; it + * could have changed by the handler. + */ + ucp->uc_sigmask = _process_sigmask; + + /* Resume the interrupted thread: */ + sigreturn(ucp); + } else { + DBG_MSG("Got signal %d, adding frame to thread %p\n", + sig, pthread); /* Setup the target thread to receive the signal: */ thread_sig_add(pthread, sig, /*has_args*/ 1); @@ -234,8 +229,6 @@ _thread_sig_handler(int sig, siginfo_t * DBG_MSG("Finished adding frame, head of prio list %p\n", pthread_h); } - else - DBG_MSG("No thread to handle signal %d\n", sig); SIG_SET_INACTIVE(); /* @@ -244,8 +237,8 @@ _thread_sig_handler(int sig, siginfo_t * * signal and the currently running thread is not in a * signal handler. */ - if ((pthread == curthread) || ((pthread_h != NULL) && - (pthread_h->active_priority > curthread->active_priority))) { + if ((pthread_h != NULL) && + (pthread_h->active_priority > curthread->active_priority)) { /* Enter the kernel scheduler: */ _thread_kern_sched(ucp); } @@ -258,15 +251,45 @@ _thread_sig_handler(int sig, siginfo_t * } static void -thread_sig_savecontext(struct pthread *pthread, ucontext_t *ucp) -{ - memcpy(&pthread->ctx.uc, ucp, sizeof(*ucp)); +thread_sig_invoke_handler(int sig, siginfo_t *info, ucontext_t *ucp) + { + struct pthread *curthread = _get_curthread(); + void (*sigfunc)(int, siginfo_t *, void *); + int saved_seqno; + sigset_t saved_sigmask; - /* XXX - Save FP registers too? */ - FP_SAVE_UC(&pthread->ctx.uc); + /* Invoke the signal handler without going through the scheduler: + */ + DBG_MSG("Got signal %d, calling handler for current thread %p\n", + sig, curthread); - /* Mark the context saved as a ucontext: */ - pthread->ctxtype = CTX_UC; + /* Save the threads signal mask: */ + saved_sigmask = curthread->sigmask; + saved_seqno = curthread->sigmask_seqno; + + /* Setup the threads signal mask: */ + SIGSETOR(curthread->sigmask, _thread_sigact[sig - 1].sa_mask); + sigaddset(&curthread->sigmask, sig); + + /* + * Check that a custom handler is installed and if + * the signal is not blocked: + */ + sigfunc = _thread_sigact[sig - 1].sa_sigaction; + if (((__sighandler_t *)sigfunc != SIG_DFL) && + ((__sighandler_t *)sigfunc != SIG_IGN)) { + if (((_thread_sigact[sig - 1].sa_flags & SA_SIGINFO) != 0) || + (info == NULL)) + (*(sigfunc))(sig, info, ucp); + else + (*(sigfunc))(sig, (siginfo_t *)info->si_code, ucp); + } + /* + * Only restore the signal mask if it hasn't been changed by the + * application during invocation of the signal handler: + */ + if (curthread->sigmask_seqno == saved_seqno) + curthread->sigmask = saved_sigmask; } /* @@ -353,7 +376,8 @@ thread_sig_find(int sig) return (NULL); } else if ((handler_installed != 0) && - !sigismember(&pthread->sigmask, sig)) { + !sigismember(&pthread->sigmask, sig) && + ((pthread->flags & PTHREAD_FLAGS_SUSPENDED) == 0)) { if (pthread->state == PS_SIGSUSPEND) { if (suspended_thread == NULL) suspended_thread = pthread; @@ -769,10 +793,17 @@ thread_sig_add(struct pthread *pthread, /* * The thread should be removed from all scheduling * queues at this point. Raise the priority and place - * the thread in the run queue. + * the thread in the run queue. It is also possible + * for a signal to be sent to a suspended thread, + * mostly via pthread_kill(). If a thread is suspended, + * don't insert it into the priority queue; just set + * its state to suspended and it will run the signal + * handler when it is resumed. */ pthread->active_priority |= PTHREAD_SIGNAL_PRIORITY; - if (thread_is_active == 0) + if ((pthread->flags & PTHREAD_FLAGS_SUSPENDED) != 0) + PTHREAD_SET_STATE(pthread, PS_SUSPENDED); + else if (thread_is_active == 0) PTHREAD_PRIOQ_INSERT_TAIL(pthread); } } @@ -901,17 +932,13 @@ _thread_sig_send(struct pthread *pthread /* Return the signal number: */ pthread->signo = sig; - } else if (pthread == curthread) { + } else if (sigismember(&pthread->sigmask, sig)) /* Add the signal to the pending set: */ sigaddset(&pthread->sigpend, sig); - if (!sigismember(&pthread->sigmask, sig)) { - /* - * Call the kernel scheduler which will safely - * install a signal frame for this thread: - */ - _thread_kern_sched_sig(); - } - } else if (!sigismember(&pthread->sigmask, sig)) { + else if (pthread == curthread) + /* Call the signal handler for the current thread: */ + thread_sig_invoke_handler(sig, NULL, NULL); + else { /* Protect the scheduling queues: */ _thread_kern_sig_defer(); /* @@ -921,9 +948,6 @@ _thread_sig_send(struct pthread *pthread thread_sig_add(pthread, sig, /* has args */ 0); /* Unprotect the scheduling queues: */ _thread_kern_sig_undefer(); - } else { - /* Increment the pending signal count. */ - sigaddset(&pthread->sigpend,sig); } } } @@ -936,7 +960,6 @@ _thread_sig_send(struct pthread *pthread void _thread_sig_wrapper(void) { - void (*sigfunc)(int, siginfo_t *, void *); struct pthread_signal_frame *psf; struct pthread *thread = _get_curthread(); @@ -1002,27 +1025,13 @@ _thread_sig_wrapper(void) thread->sig_defer_count = 0; /* - * Check that a custom handler is installed and if the signal - * is not blocked: + * Dispatch the signal via the custom signal handler: */ - sigfunc = _thread_sigact[psf->signo - 1].sa_sigaction; - if (((__sighandler_t *)sigfunc != SIG_DFL) && - ((__sighandler_t *)sigfunc != SIG_IGN)) { - DBG_MSG("_thread_sig_wrapper: Calling signal handler for " - "thread 0x%p\n", thread); - /* - * Dispatch the signal via the custom signal - * handler: - */ - if (psf->sig_has_args == 0) - (*(sigfunc))(psf->signo, NULL, NULL); - else if ((_thread_sigact[psf->signo - 1].sa_flags & - SA_SIGINFO) != 0) - (*(sigfunc))(psf->signo, &psf->siginfo, &psf->uc); - else - (*(sigfunc))(psf->signo, - (siginfo_t *)psf->siginfo.si_code, &psf->uc); - } + if (psf->sig_has_args == 0) + thread_sig_invoke_handler(psf->signo, NULL, NULL); + else + thread_sig_invoke_handler(psf->signo, &psf->siginfo, &psf->uc); + /* * Call the kernel scheduler to safely restore the frame and * schedule the next thread: @@ -1034,24 +1043,10 @@ static void thread_sigframe_add(struct pthread *thread, int sig, int has_args) { struct pthread_signal_frame *psf = NULL; - unsigned long stackp = 0; + unsigned long stackp; - /* Get the top of the threads stack: */ - switch (thread->ctxtype) { - case CTX_JB: - case CTX_JB_NOSIG: - stackp = GET_STACK_JB(thread->ctx.jb); - break; - case CTX_SJB: - stackp = GET_STACK_SJB(thread->ctx.sigjb); - break; - case CTX_UC: - stackp = GET_STACK_UC(&thread->ctx.uc); - break; - default: - PANIC("Invalid thread context type"); - break; - } + /* Get the top of the threads stack: */ + stackp = GET_STACK_JB(thread->ctx.jb); /* * Leave a little space on the stack and round down to the @@ -1085,8 +1080,6 @@ thread_sigframe_add(struct pthread *thre /* Set up the new frame: */ thread->curframe = psf; - thread->ctxtype = CTX_JB_NOSIG; - thread->longjmp_val = 1; thread->flags &= PTHREAD_FLAGS_PRIVATE | PTHREAD_FLAGS_TRACE | PTHREAD_FLAGS_IN_SYNCQ; /* @@ -1102,8 +1095,7 @@ void _thread_sigframe_restore(struct pthread *thread, struct pthread_signal_frame *psf) { - thread->ctxtype = psf->ctxtype; - memcpy(&thread->ctx.uc, &psf->ctx.uc, sizeof(thread->ctx.uc)); + memcpy(&thread->ctx, &psf->ctx, sizeof(thread->ctx)); /* * Only restore the signal mask if it hasn't been changed * by the application during invocation of the signal handler: @@ -1116,7 +1108,6 @@ _thread_sigframe_restore(struct pthread thread->state = psf->saved_state.psd_state; thread->flags = psf->saved_state.psd_flags; thread->interrupted = psf->saved_state.psd_interrupted; - thread->longjmp_val = psf->saved_state.psd_longjmp_val; thread->signo = psf->saved_state.psd_signo; thread->sig_defer_count = psf->saved_state.psd_sig_defer_count; } @@ -1124,8 +1115,7 @@ _thread_sigframe_restore(struct pthread static void thread_sigframe_save(struct pthread *thread, struct pthread_signal_frame *psf) { - psf->ctxtype = thread->ctxtype; - memcpy(&psf->ctx.uc, &thread->ctx.uc, sizeof(thread->ctx.uc)); + memcpy(&psf->ctx, &thread->ctx, sizeof(thread->ctx)); psf->saved_state.psd_sigmask = thread->sigmask; psf->saved_state.psd_curframe = thread->curframe; psf->saved_state.psd_wakeup_time = thread->wakeup_time; @@ -1134,7 +1124,6 @@ thread_sigframe_save(struct pthread *thr psf->saved_state.psd_flags = thread->flags & (PTHREAD_FLAGS_PRIVATE | PTHREAD_FLAGS_TRACE); psf->saved_state.psd_interrupted = thread->interrupted; - psf->saved_state.psd_longjmp_val = thread->longjmp_val; psf->saved_state.psd_sigmask_seqno = thread->sigmask_seqno; psf->saved_state.psd_signo = thread->signo; psf->saved_state.psd_sig_defer_count = thread->sig_defer_count; Index: lib/libc_r/uthread/uthread_sigpending.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_sigpending.c,v retrieving revision 1.6.2.1 diff -u -p -r1.6.2.1 uthread_sigpending.c --- lib/libc_r/uthread/uthread_sigpending.c 17 Oct 2002 19:37:39 -0000 1.6.2.1 +++ lib/libc_r/uthread/uthread_sigpending.c 20 Oct 2002 16:12:30 -0000 @@ -31,6 +31,9 @@ * * $FreeBSD: src/lib/libc_r/uthread/uthread_sigpending.c,v 1.6.2.1 2002/10/17 19:37:39 fjoe Exp $ */ +#include +#include +#include #include #include #ifdef _THREAD_SAFE @@ -38,7 +41,7 @@ #include "pthread_private.h" int -_sigpending(sigset_t * set) +_sigpending(sigset_t *set) { struct pthread *curthread = _get_curthread(); int ret = 0; @@ -50,6 +53,7 @@ _sigpending(sigset_t * set) } else { *set = curthread->sigpend; + SIGSETOR(*set, _process_sigpending); } /* Return the completion status: */ return (ret); Index: lib/libc_r/uthread/uthread_sigsuspend.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_sigsuspend.c,v retrieving revision 1.9.2.1 diff -u -p -r1.9.2.1 uthread_sigsuspend.c --- lib/libc_r/uthread/uthread_sigsuspend.c 17 Oct 2002 19:37:39 -0000 1.9.2.1 +++ lib/libc_r/uthread/uthread_sigsuspend.c 20 Oct 2002 16:10:05 -0000 @@ -32,6 +32,8 @@ * $FreeBSD: src/lib/libc_r/uthread/uthread_sigsuspend.c,v 1.9.2.1 2002/10/17 19:37:39 fjoe Exp $ */ #include +#include +#include #include #ifdef _THREAD_SAFE #include @@ -42,7 +44,7 @@ _sigsuspend(const sigset_t * set) { struct pthread *curthread = _get_curthread(); int ret = -1; - sigset_t oset; + sigset_t oset, sigset; /* Check if a new signal set was provided by the caller: */ if (set != NULL) { @@ -52,8 +54,24 @@ _sigsuspend(const sigset_t * set) /* Change the caller's mask: */ curthread->sigmask = *set; - /* Wait for a signal: */ - _thread_kern_sched_state(PS_SIGSUSPEND, __FILE__, __LINE__); + /* + * Check if there are pending signals for the running + * thread or process that aren't blocked: + */ + sigset = curthread->sigpend; + SIGSETOR(sigset, _process_sigpending); + SIGSETNAND(sigset, curthread->sigmask); + if (SIGNOTEMPTY(sigset)) { + /* + * Call the kernel scheduler which will safely + * install a signal frame for the running thread: + */ + _thread_kern_sched_sig(); + } else { + /* Wait for a signal: */ + _thread_kern_sched_state(PS_SIGSUSPEND, + __FILE__, __LINE__); + } /* Always return an interrupted error: */ errno = EINTR; Index: lib/libc_r/uthread/uthread_single_np.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_single_np.c,v retrieving revision 1.3.2.1 diff -u -p -r1.3.2.1 uthread_single_np.c --- lib/libc_r/uthread/uthread_single_np.c 17 Oct 2002 19:37:39 -0000 1.3.2.1 +++ lib/libc_r/uthread/uthread_single_np.c 20 Oct 2002 14:43:55 -0000 @@ -34,12 +34,17 @@ #include #ifdef _THREAD_SAFE #include -#include "pthread_private.h" +#include int pthread_single_np() { + /* Enter single-threaded (non-POSIX) scheduling mode: */ - _thread_single = _get_curthread(); - return(0); + pthread_suspend_all_np(); + /* + * XXX - Do we want to do this? + * __is_threaded = 0; + */ + return (0); } #endif Index: lib/libc_r/uthread/uthread_suspend_np.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_suspend_np.c,v retrieving revision 1.7.2.5 diff -u -p -r1.7.2.5 uthread_suspend_np.c --- lib/libc_r/uthread/uthread_suspend_np.c 17 Oct 2002 19:37:39 -0000 1.7.2.5 +++ lib/libc_r/uthread/uthread_suspend_np.c 20 Oct 2002 14:43:55 -0000 @@ -36,7 +36,7 @@ #include #include "pthread_private.h" -static void finish_suspension(void *arg); +static void suspend_common(struct pthread *thread); /* Suspend a thread: */ int @@ -44,100 +44,19 @@ pthread_suspend_np(pthread_t thread) { int ret; + /* Suspending the current thread doesn't make sense. */ + if (thread == _get_curthread()) + ret = EDEADLK; + /* Find the thread in the list of active threads: */ - if ((ret = _find_thread(thread)) == 0) { + else if ((ret = _find_thread(thread)) == 0) { /* * Defer signals to protect the scheduling queues from * access by the signal handler: */ _thread_kern_sig_defer(); - switch (thread->state) { - case PS_RUNNING: - /* - * Remove the thread from the priority queue and - * set the state to suspended: - */ - PTHREAD_PRIOQ_REMOVE(thread); - PTHREAD_SET_STATE(thread, PS_SUSPENDED); - break; - - case PS_SPINBLOCK: - case PS_FDR_WAIT: - case PS_FDW_WAIT: - case PS_POLL_WAIT: - case PS_SELECT_WAIT: - /* - * Remove these threads from the work queue - * and mark the operation as interrupted: - */ - if ((thread->flags & PTHREAD_FLAGS_IN_WORKQ) != 0) - PTHREAD_WORKQ_REMOVE(thread); - _thread_seterrno(thread,EINTR); - - /* FALLTHROUGH */ - case PS_SLEEP_WAIT: - thread->interrupted = 1; - - /* FALLTHROUGH */ - case PS_SIGTHREAD: - case PS_WAIT_WAIT: - case PS_SIGSUSPEND: - case PS_SIGWAIT: - /* - * Remove these threads from the waiting queue and - * set their state to suspended: - */ - PTHREAD_WAITQ_REMOVE(thread); - PTHREAD_SET_STATE(thread, PS_SUSPENDED); - break; - - case PS_MUTEX_WAIT: - /* Mark the thread as suspended and still in a queue. */ - thread->suspended = SUSP_MUTEX_WAIT; - - PTHREAD_SET_STATE(thread, PS_SUSPENDED); - break; - case PS_COND_WAIT: - /* Mark the thread as suspended and still in a queue. */ - thread->suspended = SUSP_COND_WAIT; - - PTHREAD_SET_STATE(thread, PS_SUSPENDED); - break; - case PS_JOIN: - /* Mark the thread as suspended and joining: */ - thread->suspended = SUSP_JOIN; - - PTHREAD_NEW_STATE(thread, PS_SUSPENDED); - break; - case PS_FDLR_WAIT: - case PS_FDLW_WAIT: - case PS_FILE_WAIT: - /* Mark the thread as suspended: */ - thread->suspended = SUSP_YES; - - /* - * Threads in these states may be in queues. - * In order to preserve queue integrity, the - * cancelled thread must remove itself from the - * queue. Mark the thread as interrupted and - * set the state to running. When the thread - * resumes, it will remove itself from the queue - * and call the suspension completion routine. - */ - thread->interrupted = 1; - _thread_seterrno(thread, EINTR); - PTHREAD_NEW_STATE(thread, PS_RUNNING); - thread->continuation = finish_suspension; - break; - - case PS_DEAD: - case PS_DEADLOCK: - case PS_STATE_MAX: - case PS_SUSPENDED: - /* Nothing needs to be done: */ - break; - } + suspend_common(thread); /* * Undefer and handle pending signals, yielding if @@ -145,17 +64,40 @@ pthread_suspend_np(pthread_t thread) */ _thread_kern_sig_undefer(); } - return(ret); + return (ret); } -static void -finish_suspension(void *arg) +void +pthread_suspend_all_np(void) { struct pthread *curthread = _get_curthread(); + struct pthread *thread; - if (curthread->suspended != SUSP_NO) - _thread_kern_sched_state(PS_SUSPENDED, __FILE__, __LINE__); -} + /* + * Defer signals to protect the scheduling queues from + * access by the signal handler: + */ + _thread_kern_sig_defer(); + + TAILQ_FOREACH(thread, &_thread_list, tle) { + if (thread != curthread) + suspend_common(thread); + } + /* + * Undefer and handle pending signals, yielding if + * necessary: + */ + _thread_kern_sig_undefer(); +} +void +suspend_common(struct pthread *thread) +{ + thread->flags |= PTHREAD_FLAGS_SUSPENDED; + if (thread->flags & PTHREAD_FLAGS_IN_PRIOQ) { + PTHREAD_PRIOQ_REMOVE(thread); + PTHREAD_SET_STATE(thread, PS_SUSPENDED); + } +} #endif --UlVJffcvxoiEqYs2-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Oct 20 11:59:45 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D99E237B401 for ; Sun, 20 Oct 2002 11:59:44 -0700 (PDT) Received: from titan.seed.net.tw (titan.seed.net.tw [139.175.54.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33EBE43E4A for ; Sun, 20 Oct 2002 11:59:39 -0700 (PDT) (envelope-from leafy@leafy.idv.tw) Received: from [61.59.153.67] (helo=leafy.idv.tw) by titan.seed.net.tw with esmtp (Seednet MTA build 20010831) id 183LIX-000218-00 for freebsd-java@FreeBSD.ORG; Mon, 21 Oct 2002 02:59:37 +0800 Received: from leafy.idv.tw (localhost [127.0.0.1]) by leafy.idv.tw (8.12.6/8.12.6) with ESMTP id g9KIxaEh000257 for ; Mon, 21 Oct 2002 02:59:37 +0800 (CST) (envelope-from leafy@leafy.idv.tw) Received: (from leafy@localhost) by leafy.idv.tw (8.12.6/8.12.6/Submit) id g9KIxaBF000256 for freebsd-java@FreeBSD.ORG; Mon, 21 Oct 2002 02:59:36 +0800 (CST) Date: Mon, 21 Oct 2002 02:59:36 +0800 From: JY To: freebsd-java@FreeBSD.ORG Subject: Re: libc_r MFC Message-ID: <20021020185936.GA243@leafy.idv.tw> Mail-Followup-To: freebsd-java@FreeBSD.ORG References: <20021021001514.A38080@iclub.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline In-Reply-To: <20021021001514.A38080@iclub.nsu.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Oct 21, 2002 at 12:15:14AM +0700, Max Khon wrote: > hi, there! > > Please test attached patch. It contains MFC of signal handling, > thread suspension and a couple of bug fixes. > > I have succesfully run Java2D demo and JBuilder 7 with hotspot (compiler2) > built from ports/java/jdk13 with these patches. > > /fjoe Hi, I ran SwingSet2 demo with java -native (still classic VM), I run into a "user defined Signal 1" error when trying to click JFileChooser Demo. Is this expected? JY To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Oct 20 12: 3: 3 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B683E37B401 for ; Sun, 20 Oct 2002 12:03:02 -0700 (PDT) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52D0743E75 for ; Sun, 20 Oct 2002 12:03:02 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 183LLk-0000Mr-00; Sun, 20 Oct 2002 12:02:56 -0700 Date: Sun, 20 Oct 2002 12:02:56 -0700 To: JY Cc: freebsd-java@FreeBSD.ORG, "Bill Huey (Hui)" Subject: Re: libc_r MFC Message-ID: <20021020190256.GA1410@gnuppy.monkey.org> References: <20021021001514.A38080@iclub.nsu.ru> <20021020185936.GA243@leafy.idv.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021020185936.GA243@leafy.idv.tw> User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Oct 21, 2002 at 02:59:36AM +0800, JY wrote: > Hi, > > I ran SwingSet2 demo with java -native (still classic VM), I run into a "user defined Signal 1" error when trying to click JFileChooser Demo. > Is this expected? Nope, does this happen under -current too ? I didn't get it to abort on that error. bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Oct 20 12: 6:49 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C315837B401 for ; Sun, 20 Oct 2002 12:06:48 -0700 (PDT) Received: from titan.seed.net.tw (titan.seed.net.tw [139.175.54.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA30143EB2 for ; Sun, 20 Oct 2002 12:06:47 -0700 (PDT) (envelope-from leafy@leafy.idv.tw) Received: from [61.59.153.67] (helo=leafy.idv.tw) by titan.seed.net.tw with esmtp (Seednet MTA build 20010831) id 183LPS-0002W4-00 for freebsd-java@FreeBSD.ORG; Mon, 21 Oct 2002 03:06:46 +0800 Received: from leafy.idv.tw (localhost [127.0.0.1]) by leafy.idv.tw (8.12.6/8.12.6) with ESMTP id g9KJ6kEh000677 for ; Mon, 21 Oct 2002 03:06:46 +0800 (CST) (envelope-from leafy@leafy.idv.tw) Received: (from leafy@localhost) by leafy.idv.tw (8.12.6/8.12.6/Submit) id g9KJ6jM1000676 for freebsd-java@FreeBSD.ORG; Mon, 21 Oct 2002 03:06:45 +0800 (CST) Date: Mon, 21 Oct 2002 03:06:45 +0800 From: JY To: freebsd-java@FreeBSD.ORG Subject: Re: libc_r MFC Message-ID: <20021020190645.GB243@leafy.idv.tw> Mail-Followup-To: freebsd-java@FreeBSD.ORG References: <20021021001514.A38080@iclub.nsu.ru> <20021020185936.GA243@leafy.idv.tw> <20021020190256.GA1410@gnuppy.monkey.org> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline In-Reply-To: <20021020190256.GA1410@gnuppy.monkey.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, Oct 20, 2002 at 12:02:56PM -0700, Bill Huey wrote: > Nope, does this happen under -current too ? I didn't get it to > abort on that error. > > bill I have only a -stable machine, sorry. I've been getting this error since -native flag runs the SwingSet2 demo (after the libc_r uthread merge about 4 days ago) JY To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Oct 20 12: 9:33 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FD0F37B404 for ; Sun, 20 Oct 2002 12:09:32 -0700 (PDT) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC09243EAF for ; Sun, 20 Oct 2002 12:09:31 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 183LS3-0000Np-00; Sun, 20 Oct 2002 12:09:27 -0700 Date: Sun, 20 Oct 2002 12:09:27 -0700 To: JY Cc: freebsd-java@FreeBSD.ORG, "Bill Huey (Hui)" Subject: Re: libc_r MFC Message-ID: <20021020190927.GA1470@gnuppy.monkey.org> References: <20021021001514.A38080@iclub.nsu.ru> <20021020185936.GA243@leafy.idv.tw> <20021020190256.GA1410@gnuppy.monkey.org> <20021020190645.GB243@leafy.idv.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021020190645.GB243@leafy.idv.tw> User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Oct 21, 2002 at 03:06:45AM +0800, JY wrote: > I have only a -stable machine, sorry. > > I've been getting this error since -native flag runs the SwingSet2 demo (after the libc_r uthread merge about 4 days ago) I wasn't aware of the merge. What's going on with that ? bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Oct 20 12:15:42 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D77BF37B401 for ; Sun, 20 Oct 2002 12:15:41 -0700 (PDT) Received: from titan.seed.net.tw (titan.seed.net.tw [139.175.54.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 278F743E75 for ; Sun, 20 Oct 2002 12:15:36 -0700 (PDT) (envelope-from leafy@leafy.idv.tw) Received: from [61.59.153.67] (helo=leafy.idv.tw) by titan.seed.net.tw with esmtp (Seednet MTA build 20010831) id 183LXy-0003Dv-00 for freebsd-java@FreeBSD.ORG; Mon, 21 Oct 2002 03:15:34 +0800 Received: from leafy.idv.tw (localhost [127.0.0.1]) by leafy.idv.tw (8.12.6/8.12.6) with ESMTP id g9KJFXEh000809 for ; Mon, 21 Oct 2002 03:15:33 +0800 (CST) (envelope-from leafy@leafy.idv.tw) Received: (from leafy@localhost) by leafy.idv.tw (8.12.6/8.12.6/Submit) id g9KJFXCh000808 for freebsd-java@FreeBSD.ORG; Mon, 21 Oct 2002 03:15:33 +0800 (CST) Date: Mon, 21 Oct 2002 03:15:33 +0800 From: JY To: freebsd-java@FreeBSD.ORG Subject: Re: libc_r MFC Message-ID: <20021020191533.GA732@leafy.idv.tw> Mail-Followup-To: freebsd-java@FreeBSD.ORG References: <20021021001514.A38080@iclub.nsu.ru> <20021020185936.GA243@leafy.idv.tw> <20021020190256.GA1410@gnuppy.monkey.org> <20021020190645.GB243@leafy.idv.tw> <20021020190927.GA1470@gnuppy.monkey.org> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline In-Reply-To: <20021020190927.GA1470@gnuppy.monkey.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, Oct 20, 2002 at 12:09:27PM -0700, Bill Huey wrote: > > I've been getting this error since -native flag runs the SwingSet2 demo (after the libc_r uthread merge about 4 days ago) > > I wasn't aware of the merge. What's going on with that ? > > bill http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc_r/uthread/?only_with_tag=RELENG_4 I can't help you on that because I don't understand what he changed, but I suppose it's all part of the current libc_r MFC. This is the verbose output for Java right before it kicked the bucket: [Loaded javax.swing.plaf.metal.MetalFileChooserUI$2 from /usr/local/jdk1.3.1/jre/lib/rt.jar] [Loaded javax.swing.plaf.metal.MetalFileChooserUI$FilterComboBoxModel from /usr/local/jdk1.3.1/jre/lib/rt.jar] [Loaded javax.swing.plaf.metal.MetalFileChooserUI$FilterComboBoxRenderer from /usr/local/jdk1.3.1/jre/lib/rt.jar] [Loaded javax.swing.plaf.metal.MetalFileChooserUI$3 from /usr/local/jdk1.3.1/jre/lib/rt.jar] [Loaded javax.swing.plaf.metal.MetalFileChooserUI$4 from /usr/local/jdk1.3.1/jre/lib/rt.jar] [Loaded javax.swing.plaf.metal.MetalFileChooserUI$6 from /usr/local/jdk1.3.1/jre/lib/rt.jar] [Loaded javax.swing.plaf.basic.BasicFileChooserUI$1 from /usr/local/jdk1.3.1/jre/lib/rt.jar] [Loaded javax.swing.plaf.basic.BasicFileChooserUI$2 from /usr/local/jdk1.3.1/jre/lib/rt.jar] [Loaded javax.swing.plaf.metal.MetalFileChooserUI$5 from /usr/local/jdk1.3.1/jre/lib/rt.jar] [Loaded [Ljavax.swing.filechooser.FileFilter;] [Loaded javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread from /usr/local/jdk1.3.1/jre/lib/rt.jar] User defined signal 1 JY To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Oct 20 12:20:39 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 525FC37B404 for ; Sun, 20 Oct 2002 12:20:38 -0700 (PDT) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id D373C43E88 for ; Sun, 20 Oct 2002 12:20:37 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 183Lch-0000Pf-00; Sun, 20 Oct 2002 12:20:27 -0700 Date: Sun, 20 Oct 2002 12:20:27 -0700 To: JY Cc: freebsd-java@FreeBSD.ORG, "Bill Huey (Hui)" Subject: Re: libc_r MFC Message-ID: <20021020192027.GA1583@gnuppy.monkey.org> References: <20021021001514.A38080@iclub.nsu.ru> <20021020185936.GA243@leafy.idv.tw> <20021020190256.GA1410@gnuppy.monkey.org> <20021020190645.GB243@leafy.idv.tw> <20021020190927.GA1470@gnuppy.monkey.org> <20021020191533.GA732@leafy.idv.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021020191533.GA732@leafy.idv.tw> User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Oct 21, 2002 at 03:15:33AM +0800, JY wrote: > http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc_r/uthread/?only_with_tag=RELENG_4 > I can't help you on that because I don't understand what he changed, but I suppose it's all part of the current libc_r MFC. I don't know what's going on with the status of the merge from the CVS mail so it could very likely be incomplete still. I don't remember that happening under -current. bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Oct 20 12:41:11 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D17337B401 for ; Sun, 20 Oct 2002 12:41:11 -0700 (PDT) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6AB143E8A for ; Sun, 20 Oct 2002 12:41:10 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 183Lwg-0000SE-00; Sun, 20 Oct 2002 12:41:06 -0700 Date: Sun, 20 Oct 2002 12:41:06 -0700 To: JY Cc: freebsd-java@FreeBSD.ORG Subject: Re: libc_r MFC Message-ID: <20021020194106.GA1743@gnuppy.monkey.org> References: <20021021001514.A38080@iclub.nsu.ru> <20021020185936.GA243@leafy.idv.tw> <20021020190256.GA1410@gnuppy.monkey.org> <20021020190645.GB243@leafy.idv.tw> <20021020190927.GA1470@gnuppy.monkey.org> <20021020191533.GA732@leafy.idv.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021020191533.GA732@leafy.idv.tw> User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Oct 21, 2002 at 03:15:33AM +0800, JY wrote: > This is the verbose output for Java right before it kicked the bucket: ... > User defined signal 1 Yeah, it ran flawlessly under -current and my build of it, so I don't know what to tell you.. bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Oct 20 15:41:10 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F41237B401 for ; Sun, 20 Oct 2002 15:41:09 -0700 (PDT) Received: from mail.nsu.ru (mx.nsu.ru [193.124.215.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EC8043E42 for ; Sun, 20 Oct 2002 15:41:08 -0700 (PDT) (envelope-from fjoe@iclub.nsu.ru) Received: from drweb by mail.nsu.ru with drweb-scanned (Exim 3.20 #1) id 183Ok9-0004TS-00; Mon, 21 Oct 2002 05:40:21 +0700 Received: from iclub.nsu.ru ([193.124.215.97] ident=root) by mail.nsu.ru with esmtp (Exim 3.20 #1) id 183OjW-0004K4-00; Mon, 21 Oct 2002 05:39:42 +0700 Received: from iclub.nsu.ru (fjoe@localhost [127.0.0.1]) by iclub.nsu.ru (8.12.6/8.12.6) with ESMTP id g9KMdbFG046838; Mon, 21 Oct 2002 05:39:37 +0700 (NSS) (envelope-from fjoe@iclub.nsu.ru) Received: (from fjoe@localhost) by iclub.nsu.ru (8.12.6/8.12.6/Submit) id g9KMdari046836; Mon, 21 Oct 2002 05:39:36 +0700 (NSS) Date: Mon, 21 Oct 2002 05:39:36 +0700 From: Max Khon To: JY Cc: freebsd-java@freebsd.org Subject: Re: libc_r MFC Message-ID: <20021021053935.A46165@iclub.nsu.ru> References: <20021021001514.A38080@iclub.nsu.ru> <20021020185936.GA243@leafy.idv.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20021020185936.GA243@leafy.idv.tw>; from leafy@leafy.idv.tw on Mon, Oct 21, 2002 at 02:59:36AM +0800 X-Envelope-To: leafy@leafy.idv.tw, freebsd-java@freebsd.org X-Spam-Status: No, hits=-4.4 required=5.0 tests=IN_REP_TO version=2.20 X-Spam-Level: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hi, there! On Mon, Oct 21, 2002 at 02:59:36AM +0800, JY wrote: > > Please test attached patch. It contains MFC of signal handling, > > thread suspension and a couple of bug fixes. > > > > I have succesfully run Java2D demo and JBuilder 7 with hotspot (compiler2) > > built from ports/java/jdk13 with these patches. > > I ran SwingSet2 demo with java -native (still classic VM), I run into a "user defined Signal 1" error when trying to click JFileChooser Demo. > Is this expected? with or without patch I posted? /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Oct 20 15:42:52 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C1DF37B401 for ; Sun, 20 Oct 2002 15:42:51 -0700 (PDT) Received: from mail.nsu.ru (mx.nsu.ru [193.124.215.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAE5143E75 for ; Sun, 20 Oct 2002 15:42:50 -0700 (PDT) (envelope-from fjoe@iclub.nsu.ru) Received: from drweb by mail.nsu.ru with drweb-scanned (Exim 3.20 #1) id 183Olr-0004pa-00; Mon, 21 Oct 2002 05:42:07 +0700 Received: from iclub.nsu.ru ([193.124.215.97] ident=root) by mail.nsu.ru with esmtp (Exim 3.20 #1) id 183OlI-0004hN-00; Mon, 21 Oct 2002 05:41:32 +0700 Received: from iclub.nsu.ru (fjoe@localhost [127.0.0.1]) by iclub.nsu.ru (8.12.6/8.12.6) with ESMTP id g9KMfSFG046906; Mon, 21 Oct 2002 05:41:28 +0700 (NSS) (envelope-from fjoe@iclub.nsu.ru) Received: (from fjoe@localhost) by iclub.nsu.ru (8.12.6/8.12.6/Submit) id g9KMfRdc046905; Mon, 21 Oct 2002 05:41:27 +0700 (NSS) Date: Mon, 21 Oct 2002 05:41:27 +0700 From: Max Khon To: JY Cc: freebsd-java@freebsd.org Subject: Re: libc_r MFC Message-ID: <20021021054127.B46165@iclub.nsu.ru> References: <20021021001514.A38080@iclub.nsu.ru> <20021020185936.GA243@leafy.idv.tw> <20021020190256.GA1410@gnuppy.monkey.org> <20021020190645.GB243@leafy.idv.tw> <20021020190927.GA1470@gnuppy.monkey.org> <20021020191533.GA732@leafy.idv.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20021020191533.GA732@leafy.idv.tw>; from leafy@leafy.idv.tw on Mon, Oct 21, 2002 at 03:15:33AM +0800 X-Envelope-To: leafy@leafy.idv.tw, freebsd-java@freebsd.org X-Spam-Status: No, hits=-4.4 required=5.0 tests=IN_REP_TO version=2.20 X-Spam-Level: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hi, there! On Mon, Oct 21, 2002 at 03:15:33AM +0800, JY wrote: > > > I've been getting this error since -native flag runs the SwingSet2 demo (after the libc_r uthread merge about 4 days ago) > > > > I wasn't aware of the merge. What's going on with that ? > > > > bill > http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc_r/uthread/?only_with_tag=RELENG_4 > I can't help you on that because I don't understand what he changed, but I suppose it's all part of the current libc_r MFC. no. those were no-op changes (diff reduction). have you tried the patch I posted (it contains MFC of most libc_r)? /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Oct 20 17:34: 1 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E078F37B401; Sun, 20 Oct 2002 17:34:00 -0700 (PDT) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CA8143E97; Sun, 20 Oct 2002 17:34:00 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 183QVm-0000gg-00; Sun, 20 Oct 2002 17:33:38 -0700 Date: Sun, 20 Oct 2002 17:33:38 -0700 To: Max Khon Cc: freebsd-stable@freebsd.org, freebsd-java@freebsd.org, "Bill Huey (Hui)" Subject: Re: libc_r MFC Message-ID: <20021021003338.GA2625@gnuppy.monkey.org> References: <20021021001514.A38080@iclub.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021021001514.A38080@iclub.nsu.ru> User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Oct 21, 2002 at 12:15:14AM +0700, Max Khon wrote: > hi, there! > > Please test attached patch. It contains MFC of signal handling, > thread suspension and a couple of bug fixes. > > I have succesfully run Java2D demo and JBuilder 7 with hotspot (compiler2) > built from ports/java/jdk13 with these patches. Thanks, this has been badly needed for a long time. This with the combination of a working HotSpot VM in both 1.3 and 1.4 is going to legitimate Java under FreeBSD. It is big news. ;) We should get a mass patchset released for all of this stuff and make a big announcement for all the recent work that's been done. bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Oct 20 18:49:10 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DF1E37B401 for ; Sun, 20 Oct 2002 18:49:09 -0700 (PDT) Received: from titan.seed.net.tw (titan.seed.net.tw [139.175.54.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CE4F43E75 for ; Sun, 20 Oct 2002 18:49:03 -0700 (PDT) (envelope-from leafy@leafy.idv.tw) Received: from [61.59.154.160] (helo=leafy.idv.tw) by titan.seed.net.tw with esmtp (Seednet MTA build 20010831) id 183Rgk-0006FO-00 for freebsd-java@freebsd.org; Mon, 21 Oct 2002 09:49:02 +0800 Received: from leafy.idv.tw (localhost [127.0.0.1]) by leafy.idv.tw (8.12.6/8.12.6) with ESMTP id g9L1n0Eh061315 for ; Mon, 21 Oct 2002 09:49:01 +0800 (CST) (envelope-from leafy@leafy.idv.tw) Received: (from leafy@localhost) by leafy.idv.tw (8.12.6/8.12.6/Submit) id g9L1n0jd061314 for freebsd-java@freebsd.org; Mon, 21 Oct 2002 09:49:00 +0800 (CST) Date: Mon, 21 Oct 2002 09:48:59 +0800 From: JY To: freebsd-java@freebsd.org Subject: Re: libc_r MFC Message-ID: <20021021014859.GA60441@leafy.idv.tw> Mail-Followup-To: freebsd-java@freebsd.org References: <20021021001514.A38080@iclub.nsu.ru> <20021020185936.GA243@leafy.idv.tw> <20021021053935.A46165@iclub.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline In-Reply-To: <20021021053935.A46165@iclub.nsu.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Oct 21, 2002 at 05:39:36AM +0700, Max Khon wrote: > > I ran SwingSet2 demo with java -native (still classic VM), I run into a "user defined Signal 1" error when trying to click JFileChooser Demo. > > Is this expected? > > with or without patch I posted? > > /fjoe > With and without. And the progressbar demo is blank but source code shows. JY To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Oct 20 23:25:52 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 742BC37B401 for ; Sun, 20 Oct 2002 23:25:51 -0700 (PDT) Received: from mail.nsu.ru (mx.nsu.ru [193.124.215.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FA7E43E42 for ; Sun, 20 Oct 2002 23:25:50 -0700 (PDT) (envelope-from fjoe@iclub.nsu.ru) Received: from drweb by mail.nsu.ru with drweb-scanned (Exim 3.20 #1) id 183Vzq-0001lG-00; Mon, 21 Oct 2002 13:25:02 +0700 Received: from iclub.nsu.ru ([193.124.215.97] ident=root) by mail.nsu.ru with esmtp (Exim 3.20 #1) id 183VzF-0001Zb-00; Mon, 21 Oct 2002 13:24:25 +0700 Received: from iclub.nsu.ru (fjoe@localhost [127.0.0.1]) by iclub.nsu.ru (8.12.6/8.12.6) with ESMTP id g9L6OKFG058980; Mon, 21 Oct 2002 13:24:21 +0700 (NSS) (envelope-from fjoe@iclub.nsu.ru) Received: (from fjoe@localhost) by iclub.nsu.ru (8.12.6/8.12.6/Submit) id g9L6OJBW058979; Mon, 21 Oct 2002 13:24:19 +0700 (NSS) Date: Mon, 21 Oct 2002 13:24:19 +0700 From: Max Khon To: JY Cc: freebsd-java@freebsd.org Subject: Re: libc_r MFC Message-ID: <20021021132419.B58194@iclub.nsu.ru> References: <20021021001514.A38080@iclub.nsu.ru> <20021020185936.GA243@leafy.idv.tw> <20021021053935.A46165@iclub.nsu.ru> <20021021014859.GA60441@leafy.idv.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20021021014859.GA60441@leafy.idv.tw>; from leafy@leafy.idv.tw on Mon, Oct 21, 2002 at 09:48:59AM +0800 X-Envelope-To: leafy@leafy.idv.tw, freebsd-java@freebsd.org X-Spam-Status: No, hits=-4.4 required=5.0 tests=IN_REP_TO version=2.20 X-Spam-Level: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hi, there! On Mon, Oct 21, 2002 at 09:48:59AM +0800, JY wrote: > > > I ran SwingSet2 demo with java -native (still classic VM), I run into a "user defined Signal 1" error when trying to click JFileChooser Demo. > > > Is this expected? > > > > with or without patch I posted? > > > > /fjoe > > > With and without. And the progressbar demo is blank but source code shows. does it run for you without -native? /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Oct 21 0:31:23 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54AA837B401 for ; Mon, 21 Oct 2002 00:31:22 -0700 (PDT) Received: from titan.seed.net.tw (titan.seed.net.tw [139.175.54.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D05E43E7B for ; Mon, 21 Oct 2002 00:31:16 -0700 (PDT) (envelope-from leafy@leafy.idv.tw) Received: from [211.74.217.8] (helo=leafy.idv.tw) by titan.seed.net.tw with esmtp (Seednet MTA build 20010831) id 183X1u-0004he-00 for freebsd-java@freebsd.org; Mon, 21 Oct 2002 15:31:15 +0800 Received: from leafy.idv.tw (localhost [127.0.0.1]) by leafy.idv.tw (8.12.6/8.12.6) with ESMTP id g9L7VEU5065436 for ; Mon, 21 Oct 2002 15:31:14 +0800 (CST) (envelope-from leafy@leafy.idv.tw) Received: (from leafy@localhost) by leafy.idv.tw (8.12.6/8.12.6/Submit) id g9L7VDa4065435 for freebsd-java@freebsd.org; Mon, 21 Oct 2002 15:31:13 +0800 (CST) Date: Mon, 21 Oct 2002 15:31:13 +0800 From: JY To: freebsd-java@freebsd.org Subject: Re: libc_r MFC Message-ID: <20021021073113.GA65405@leafy.idv.tw> Mail-Followup-To: freebsd-java@freebsd.org References: <20021021001514.A38080@iclub.nsu.ru> <20021020185936.GA243@leafy.idv.tw> <20021021053935.A46165@iclub.nsu.ru> <20021021014859.GA60441@leafy.idv.tw> <20021021132419.B58194@iclub.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline In-Reply-To: <20021021132419.B58194@iclub.nsu.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Oct 21, 2002 at 01:24:19PM +0700, Max Khon wrote: > > With and without. And the progressbar demo is blank but source code shows. > > does it run for you without -native? > > /fjoe > Yes, it's all working with green threads. JY To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Oct 21 0:38:16 2002 Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB39237B401; Mon, 21 Oct 2002 00:38:15 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 658DD43E3B; Mon, 21 Oct 2002 00:38:15 -0700 (PDT) (envelope-from znerd@FreeBSD.org) Received: from freefall.freebsd.org (znerd@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9L7cFx3098923; Mon, 21 Oct 2002 00:38:15 -0700 (PDT) (envelope-from znerd@freefall.freebsd.org) Received: (from znerd@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9L7cFkH098919; Mon, 21 Oct 2002 00:38:15 -0700 (PDT) Date: Mon, 21 Oct 2002 00:38:15 -0700 (PDT) From: Ernst de Haan Message-Id: <200210210738.g9L7cFkH098919@freefall.freebsd.org> To: znerd@freebsd.org, znerd@FreeBSD.org, freebsd-java@FreeBSD.org, znerd@FreeBSD.org Subject: Re: java/44250: Update port: Xerces-J 2.1.0 --> 2.2.0 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: Update port: Xerces-J 2.1.0 --> 2.2.0 State-Changed-From-To: open->analyzed State-Changed-By: znerd State-Changed-When: Mon Oct 21 00:37:11 PDT 2002 State-Changed-Why: This is a valid PR. Responsible-Changed-From-To: freebsd-java->znerd Responsible-Changed-By: znerd Responsible-Changed-When: Mon Oct 21 00:37:11 PDT 2002 Responsible-Changed-Why: I'll handle this. Kevin Lo asked me to commit it. http://www.freebsd.org/cgi/query-pr.cgi?pr=44250 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Oct 21 0:59:19 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 252E937B404; Mon, 21 Oct 2002 00:59:18 -0700 (PDT) Received: from relay1.cris.net (relay1.cris.net [212.110.128.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id D51DF43E42; Mon, 21 Oct 2002 00:59:13 -0700 (PDT) (envelope-from ml@phantom.cris.net) Received: from phantom.cris.net (root@phantom.cris.net [212.110.130.74]) by relay1.cris.net (8.12.6/8.12.4) with ESMTP id g9LAvquU074027; Mon, 21 Oct 2002 10:57:53 GMT (envelope-from ml@phantom.cris.net) Received: (from ml@localhost) by phantom.cris.net (8.12.2/8.12.2) id g9L84Mad052545; Mon, 21 Oct 2002 11:04:22 +0300 (EEST) (envelope-from ml) Date: Mon, 21 Oct 2002 11:04:22 +0300 From: Alexey Zelkin To: Max Khon Cc: freebsd-stable@FreeBSD.ORG, freebsd-java@FreeBSD.ORG Subject: Re: libc_r MFC Message-ID: <20021021110422.A52514@phantom.cris.net> References: <20021021001514.A38080@iclub.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20021021001514.A38080@iclub.nsu.ru>; from fjoe@iclub.nsu.ru on Mon, Oct 21, 2002 at 12:15:14AM +0700 X-Operating-System: FreeBSD 4.5-STABLE i386 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hi, On Mon, Oct 21, 2002 at 12:15:14AM +0700, Max Khon wrote: > Please test attached patch. It contains MFC of signal handling, > thread suspension and a couple of bug fixes. Ohh! I spent yesterday yesterday a half of day to check out my 1.4 patches to work at -STABLE. And almost finished letter with sad news to -STABLE people... And now I have to dig into testing process from scratch again :-( PS: Seriously, good job! Thanks! Will try your patches today later. > I have succesfully run Java2D demo and JBuilder 7 with hotspot (compiler2) > built from ports/java/jdk13 with these patches. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Oct 21 3:47:42 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4757A37B401 for ; Mon, 21 Oct 2002 03:47:41 -0700 (PDT) Received: from relay1.cris.net (relay1.cris.net [212.110.128.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEFE443E65 for ; Mon, 21 Oct 2002 03:47:37 -0700 (PDT) (envelope-from phantom@phantom.cris.net) Received: from phantom.cris.net (root@phantom.cris.net [212.110.130.74]) by relay1.cris.net (8.12.6/8.12.4) with ESMTP id g9LDk2uU080661; Mon, 21 Oct 2002 13:46:02 GMT (envelope-from phantom@phantom.cris.net) Received: (from phantom@localhost) by phantom.cris.net (8.12.2/8.12.2) id g9LAqMnL053591; Mon, 21 Oct 2002 13:52:22 +0300 (EEST) (envelope-from phantom) Date: Mon, 21 Oct 2002 13:52:22 +0300 From: Alexey Zelkin To: Bill Huey Cc: Greg Lewis , Marc Recht , freebsd-java@FreeBSD.ORG Subject: Re: Native J2SE 1.4 update (it's working) Message-ID: <20021021135222.A53544@phantom.cris.net> References: <20021018095327.GA7430@gnuppy.monkey.org> <1034952663.77412.7.camel@leeloo.intern.geht.de> <20021018223413.GA2277@gnuppy.monkey.org> <20021020134801.B73824@misty.eyesbeyond.com> <20021020093033.GA15907@gnuppy.monkey.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20021020093033.GA15907@gnuppy.monkey.org>; from billh@gnuppy.monkey.org on Sun, Oct 20, 2002 at 02:30:33AM -0700 X-Operating-System: FreeBSD 4.5-STABLE i386 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hi, On Sun, Oct 20, 2002 at 02:30:33AM -0700, Bill Huey wrote: > On Sun, Oct 20, 2002 at 01:48:01PM +0930, Greg Lewis wrote: > > > I've talked about it before, but I'd like a patch page for me to upload > > > my own fixes, etc... (are the empowered folks paying attention ?) > > > > What would you like the page to do and why don't I just commit the > > patches to the FreeBSD port in between patchsets (or doesn't this > > solve the problem?). > > This is mainly to free you from doing this task and for me to add > experimental hacks to the tree. An automated CVS snapshot would probably > do just as well. Don't know. As I can understand we've no rights to do it, otherwise jdk source dists could be available from any mirrors sites (not only sun.com's). The only legal thing we can do is automated patchset generation. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Oct 21 4: 0:45 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1207637B401 for ; Mon, 21 Oct 2002 04:00:45 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3830443E4A for ; Mon, 21 Oct 2002 04:00:44 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g9LB0WvK028485; Mon, 21 Oct 2002 13:00:32 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g9LB0T3L028480; Mon, 21 Oct 2002 13:00:29 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: Alexey Zelkin , Bill Huey Subject: Re: Native J2SE 1.4 update (it's working) Date: Mon, 21 Oct 2002 13:00:29 +0200 User-Agent: KMail/1.4.3 Cc: Greg Lewis , Marc Recht , freebsd-java@FreeBSD.ORG References: <20021018095327.GA7430@gnuppy.monkey.org> <20021020093033.GA15907@gnuppy.monkey.org> <20021021135222.A53544@phantom.cris.net> In-Reply-To: <20021021135222.A53544@phantom.cris.net> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200210211300.29570.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > As I can understand we've no rights to do it, otherwise jdk source dists > could be available from any mirrors sites (not only sun.com's). The only > legal thing we can do is automated patchset generation. Which we could perhaps combine with a java/jdk1x-devel port? :) We could automatically take a snapshot every wednesdaynight or so, create the patch sets, upload them somwhere, change the -devel port Makefile and distinfo, commit to CVS and we're done :) Ernst To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Oct 21 5:50: 4 2002 Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F7CF37B401 for ; Mon, 21 Oct 2002 05:50:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D743A43E88 for ; Mon, 21 Oct 2002 05:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9LCo1x3092788 for ; Mon, 21 Oct 2002 05:50:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9LCo1EG092787; Mon, 21 Oct 2002 05:50:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3961C37B406 for ; Mon, 21 Oct 2002 05:44:28 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 703FC43E4A for ; Mon, 21 Oct 2002 05:44:25 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g9LCiSvK028975 for ; Mon, 21 Oct 2002 14:44:28 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g9LCiSaB028974; Mon, 21 Oct 2002 14:44:28 +0200 (CEST) Message-Id: <200210211244.g9LCiSaB028974@zaphod.euronet.nl> Date: Mon, 21 Oct 2002 14:44:28 +0200 (CEST) From: Ernst de Haan Reply-To: Ernst de Haan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: java/44335: devel/jakarta-ant does not install man page for 'ant' Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 44335 >Category: java >Synopsis: devel/jakarta-ant does not install man page for 'ant' >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-java >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 21 05:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Ernst de Haan >Release: FreeBSD 4.6-STABLE i386 >Organization: FreeBSD Project >Environment: System: FreeBSD zaphod.euronet.nl 4.6-STABLE FreeBSD 4.6-STABLE #11: Mon Sep 2 10:15:56 CEST 2002 root@zaphod.euronet.nl:/usr/obj/usr/src/sys/ZAPHOD i386 >Description: The devel/jakarta-ant port should install a man page for 'ant'. It does not. >How-To-Repeat: (1) Install ports/jakarta-ant (2) Run 'ant' to see it is installed: $ ant Buildfile: build.xml does not exist! Build failed (3) Check the man page: $ man ant No manual entry for ant >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Oct 21 10:46:39 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE9B837B401 for ; Mon, 21 Oct 2002 10:46:37 -0700 (PDT) Received: from wellernet.ch (line-zh-102-243.adsl.econophone.ch [212.53.102.243]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6877F43E6A for ; Mon, 21 Oct 2002 10:46:31 -0700 (PDT) (envelope-from lucien@wellernet.ch) Received: from lucien1 [192.168.1.34] by wellernet.ch (SMTPD32-7.05 ) id AD75A007C; Mon, 21 Oct 2002 19:46:29 +0200 From: "Lucien Weller" To: Subject: mod_jk with apache2 and tomcat4 Date: Mon, 21 Oct 2002 19:46:29 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello! I'm running Apache 2.0.43 and Tomcat 4.1.12 on a FreeBSD 4.3.2 system. Now I trying to integrate the two server, but I'm have still some problems. I could now build the mod_jk.so from jakarta-tomcat-connectors-4.1.12-src using ant 1.5. But when U try do start Apache with the newly compiled module (by adding LoadModule jk_module modules/mod_jk.so in httpd.conf) I obtain the following complaint from Apache: Syntax error on line 232 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_jk.so into server: /usr/local/apache2/modules/mod_jk.so: Undefined symbol "pthread_mutex_unlock" Can anybody help me? It would be very nice, because I alredy spend a lot of time in solving the problem. Regards Lucien To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Oct 21 11: 1:14 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B6C037B404 for ; Mon, 21 Oct 2002 11:01:13 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C708E43E75 for ; Mon, 21 Oct 2002 11:01:12 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9LI1Cx3037902 for ; Mon, 21 Oct 2002 11:01:12 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9LI1CFE037890 for java@freebsd.org; Mon, 21 Oct 2002 11:01:12 -0700 (PDT) Date: Mon, 21 Oct 2002 11:01:12 -0700 (PDT) Message-Id: <200210211801.g9LI1CFE037890@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: java@FreeBSD.org Subject: Current problem reports assigned to you Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/02/25] java/35320 java linux-jdk-1.4 JVM fails when running Tomc o [2002/10/05] java/43724 java linux_base-7.1 + linux-sun-jdk-1.3.1.04 d 2 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/10/11] java/43925 java New port: net/beepcore-java (supersedes p 1 problem total. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Oct 21 15:19:45 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7870637B401; Mon, 21 Oct 2002 15:19:44 -0700 (PDT) Received: from relay1.cris.net (relay1.cris.net [212.110.128.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2767B43E9C; Mon, 21 Oct 2002 15:19:39 -0700 (PDT) (envelope-from ml@phantom.cris.net) Received: from phantom.cris.net (root@phantom.cris.net [212.110.130.74]) by relay1.cris.net (8.12.6/8.12.4) with ESMTP id g9M1IMuU002757; Tue, 22 Oct 2002 01:18:22 GMT (envelope-from ml@phantom.cris.net) Received: (from ml@localhost) by phantom.cris.net (8.12.2/8.12.2) id g9LMOlx1068181; Tue, 22 Oct 2002 01:24:47 +0300 (EEST) (envelope-from ml) Date: Tue, 22 Oct 2002 01:24:47 +0300 From: Alexey Zelkin To: Max Khon Cc: freebsd-stable@FreeBSD.ORG, freebsd-java@FreeBSD.ORG Subject: Re: libc_r MFC Message-ID: <20021022012447.A68092@phantom.cris.net> References: <20021021001514.A38080@iclub.nsu.ru> <20021021110422.A52514@phantom.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20021021110422.A52514@phantom.cris.net>; from phantom@FreeBSD.ORG on Mon, Oct 21, 2002 at 11:04:22AM +0300 X-Operating-System: FreeBSD 4.5-STABLE i386 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hi, Well, take my congratulations and big thanks! With this patchset and few small patches I was able to complete build whole jdk 1.4 at -STABLE. Since main run stoper in this process was related to incorrect parameters submitted to signal handler routine by libc_r, I can say that main problem which prevented jdk 1.4 from going to -STABLE is gone. There're still many issues with 1.4, but they look similar to ones which -CURRENT has also, so my vote is "to commit your patches". Thanks, Alexey On Mon, Oct 21, 2002 at 11:04:22AM +0300, Alexey Zelkin wrote: > hi, > > On Mon, Oct 21, 2002 at 12:15:14AM +0700, Max Khon wrote: > > > Please test attached patch. It contains MFC of signal handling, > > thread suspension and a couple of bug fixes. > > Ohh! I spent yesterday yesterday a half of day to check out my 1.4 > patches to work at -STABLE. And almost finished letter with sad news > to -STABLE people... And now I have to dig into testing process from scratch > again :-( > > PS: Seriously, good job! Thanks! Will try your patches today later. > > > I have succesfully run Java2D demo and JBuilder 7 with hotspot (compiler2) > > built from ports/java/jdk13 with these patches. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Oct 21 16:29:25 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD4F037B401 for ; Mon, 21 Oct 2002 16:29:22 -0700 (PDT) Received: from ncsmtp03.ogw.rr.com (ncsmtp03.ogw.rr.com [24.93.67.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13B8E43E3B for ; Mon, 21 Oct 2002 16:29:22 -0700 (PDT) (envelope-from mmercer@nc.rr.com) Received: from mail4.nc.rr.com (fe4 [24.93.67.51]) by ncsmtp03.ogw.rr.com (8.12.5/8.12.2) with ESMTP id g9LNT7iZ022261; Mon, 21 Oct 2002 19:29:07 -0400 (EDT) Received: from nc.rr.com ([24.74.128.130]) by mail4.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Mon, 21 Oct 2002 19:29:28 -0400 Message-ID: <3DB48DD0.8BFC3E17@nc.rr.com> Date: Mon, 21 Oct 2002 19:29:20 -0400 From: Michael E Mercer Reply-To: mmercer@nc.rr.com X-Mailer: Mozilla 4.61 [en] (X11; U; FreeBSD 4.7-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Lucien Weller Cc: freebsd-java@freebsd.org Subject: Re: mod_jk with apache2 and tomcat4 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org from the man page below... try adding the flag -lpthread to the compile line for that shared lib. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ man pthread_mutex_unlock Formatting page, please wait.../usr/share/man/man3/pthread_mutex_unlock.3.gz: 49.8% 56.5% Done. /usr/share/man/cat3/pthread_mutex_unlock.3.gz: 56.5% PTHREAD_MUTEX_UNLOC... FreeBSD Library Functions Manual PTHREAD_MUTEX_UNLOC... NAME pthread_mutex_unlock - unlock a mutex LIBRARY Reentrant C Library (libc_r, -pthread) SYNOPSIS #include int pthread_mutex_unlock(pthread_mutex_t *mutex); DESCRIPTION If the current thread holds the lock on mutex, then the pthread_mutex_unlock() function unlocks mutex. RETURN VALUES If successful, pthread_mutex_unlock() will return zero, otherwise an error number will be returned to indicate the error. ERRORS pthread_mutex_unlock() will fail if: [EINVAL] The value specified by mutex is invalid. [EPERM] The current thread does not hold a lock on mutex. SEE ALSO pthread_mutex_destroy(3), pthread_mutex_init(3), pthread_mutex_lock(3), pthread_mutex_trylock(3) STANDARDS pthread_mutex_unlock() conforms to ISO/IEC 9945-1:1996 (``POSIX.1''). FreeBSD 4.6 July 30, 1998 FreeBSD 4.6 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Lucien Weller wrote: > Hello! > > I'm running Apache 2.0.43 and Tomcat 4.1.12 on a FreeBSD 4.3.2 system. Now I > trying to integrate the two server, but I'm have still some problems. > > I could now build the mod_jk.so from jakarta-tomcat-connectors-4.1.12-src > using ant 1.5. > > But when U try do start Apache with the newly compiled module (by adding > LoadModule jk_module modules/mod_jk.so in httpd.conf) I obtain the following > complaint from Apache: > Syntax error on line 232 of /usr/local/apache2/conf/httpd.conf: > > Cannot load /usr/local/apache2/modules/mod_jk.so into server: > /usr/local/apache2/modules/mod_jk.so: Undefined symbol > "pthread_mutex_unlock" > > Can anybody help me? It would be very nice, because I alredy spend a lot of > time in solving the problem. > > Regards > > Lucien > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Oct 21 16:35:14 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA4D037B401 for ; Mon, 21 Oct 2002 16:35:13 -0700 (PDT) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C7AE43E6A for ; Mon, 21 Oct 2002 16:35:13 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 183m4D-0000vo-00; Mon, 21 Oct 2002 16:34:37 -0700 Date: Mon, 21 Oct 2002 16:34:37 -0700 To: Alexey Zelkin Cc: Greg Lewis , Marc Recht , freebsd-java@FreeBSD.ORG, "Bill Huey (Hui)" Subject: Re: Native J2SE 1.4 update (it's working) Message-ID: <20021021233437.GA3565@gnuppy.monkey.org> References: <20021018095327.GA7430@gnuppy.monkey.org> <1034952663.77412.7.camel@leeloo.intern.geht.de> <20021018223413.GA2277@gnuppy.monkey.org> <20021020134801.B73824@misty.eyesbeyond.com> <20021020093033.GA15907@gnuppy.monkey.org> <20021021135222.A53544@phantom.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021021135222.A53544@phantom.cris.net> User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Oct 21, 2002 at 01:52:22PM +0300, Alexey Zelkin wrote: > hi, > > As I can understand we've no rights to do it, otherwise jdk source dists > could be available from any mirrors sites (not only sun.com's). The only > legal thing we can do is automated patchset generation. Yeah, I think automating something like that would be very good. BTW, Max's libc_r patches are pretty significant too. I'm really happy that you're picking this stuff up, because, frankly, I'm burnt out doing all of it. ;) You were much faster at getting 1.4's HotSpot going than me, but I guess you could say that I did all the tough initial investigation work. That's the only thing that makes me feel a bit wierd. ;) We need to make a big annoucement about all this stuff. I'll have to get at cleaning up the 1.3.1 sources too. bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Oct 21 21:22:31 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E78B37B401 for ; Mon, 21 Oct 2002 21:22:29 -0700 (PDT) Received: from web40501.mail.yahoo.com (web40501.mail.yahoo.com [66.218.78.118]) by mx1.FreeBSD.org (Postfix) with SMTP id 2890743E42 for ; Mon, 21 Oct 2002 21:22:29 -0700 (PDT) (envelope-from sonam_singh_s@yahoo.com) Message-ID: <20021022042229.65844.qmail@web40501.mail.yahoo.com> Received: from [202.88.149.172] by web40501.mail.yahoo.com via HTTP; Mon, 21 Oct 2002 21:22:29 PDT Date: Mon, 21 Oct 2002 21:22:29 -0700 (PDT) From: sonam singh Subject: Re: mod_jk with apache2 and tomcat4 To: Lucien Weller , freebsd-java@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org there is some tricky thing to compile the mod_jk in freebsd with apache2 . go to the apacle/build/config_vars.mk which contains EXTRA_CPPFLAGS = -D_REENTRANT -D_THREAD_SAFE EXTRA_CFLAGS = -g -O2 -DNO_DBM_REWRITEMAP E remove this tags with EXTRA_CPPFLAGS = EXTRA_CFLAGS = -g -O2 -DNO_DBM_REWRITEMAPE now recompile the mod_jk . if u need precompile the mod_jk.so u can mail me regards Sonam Singh sonamsingh@yahoo.com --- Lucien Weller wrote: > Hello! > > I'm running Apache 2.0.43 and Tomcat 4.1.12 on a > FreeBSD 4.3.2 system. Now I > trying to integrate the two server, but I'm have > still some problems. > > I could now build the mod_jk.so from > jakarta-tomcat-connectors-4.1.12-src > using ant 1.5. > > But when U try do start Apache with the newly > compiled module (by adding > LoadModule jk_module modules/mod_jk.so in > httpd.conf) I obtain the following > complaint from Apache: > Syntax error on line 232 of > /usr/local/apache2/conf/httpd.conf: > > Cannot load /usr/local/apache2/modules/mod_jk.so > into server: > /usr/local/apache2/modules/mod_jk.so: Undefined > symbol > "pthread_mutex_unlock" > > > Can anybody help me? It would be very nice, because > I alredy spend a lot of > time in solving the problem. > > Regards > > Lucien > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 22 0:27:16 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3883637B401 for ; Tue, 22 Oct 2002 00:27:15 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6622C43E6E for ; Tue, 22 Oct 2002 00:27:14 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g9M7RHvK032317; Tue, 22 Oct 2002 09:27:17 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g9M7RHRA032316; Tue, 22 Oct 2002 09:27:17 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: "Lucien Weller" , Subject: Re: mod_jk with apache2 and tomcat4 Date: Tue, 22 Oct 2002 09:27:16 +0200 User-Agent: KMail/1.4.3 References: In-Reply-To: X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200210220927.16929.znerd@FreeBSD.org> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi Lucien, Have you tried the new www/mod_webapp-apache2 port by Ari Suutari? Ernst On Monday 21 October 2002 19:46, Lucien Weller wrote: > Hello! > > I'm running Apache 2.0.43 and Tomcat 4.1.12 on a FreeBSD 4.3.2 system. > Now I trying to integrate the two server, but I'm have still some > problems. > > I could now build the mod_jk.so from jakarta-tomcat-connectors-4.1.12-src > using ant 1.5. > > But when U try do start Apache with the newly compiled module (by adding > LoadModule jk_module modules/mod_jk.so in httpd.conf) I obtain the > following complaint from Apache: > Syntax error on line 232 of /usr/local/apache2/conf/httpd.conf: > > Cannot load /usr/local/apache2/modules/mod_jk.so into server: > /usr/local/apache2/modules/mod_jk.so: Undefined symbol > "pthread_mutex_unlock" > > > Can anybody help me? It would be very nice, because I alredy spend a lot > of time in solving the problem. > > Regards > > Lucien > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message -- Ernst de Haan Development Team Leader Wanadoo Nederland B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 22 1: 4:53 2002 Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D41A637B404; Tue, 22 Oct 2002 01:04:52 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F94343E42; Tue, 22 Oct 2002 01:04:50 -0700 (PDT) (envelope-from znerd@FreeBSD.org) Received: from freefall.freebsd.org (znerd@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9M84ox3002805; Tue, 22 Oct 2002 01:04:50 -0700 (PDT) (envelope-from znerd@freefall.freebsd.org) Received: (from znerd@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9M84oVv002801; Tue, 22 Oct 2002 01:04:50 -0700 (PDT) Date: Tue, 22 Oct 2002 01:04:50 -0700 (PDT) From: Ernst de Haan Message-Id: <200210220804.g9M84oVv002801@freefall.freebsd.org> To: znerd@freebsd.org, znerd@FreeBSD.org, freebsd-java@FreeBSD.org, znerd@FreeBSD.org Subject: Re: java/44335: devel/jakarta-ant does not install man page for 'ant' Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: devel/jakarta-ant does not install man page for 'ant' State-Changed-From-To: open->analyzed State-Changed-By: znerd State-Changed-When: Tue Oct 22 01:02:08 PDT 2002 State-Changed-Why: This is a valid PR. Responsible-Changed-From-To: freebsd-java->znerd Responsible-Changed-By: znerd Responsible-Changed-When: Tue Oct 22 01:02:08 PDT 2002 Responsible-Changed-Why: Over to maintainer (me). http://www.freebsd.org/cgi/query-pr.cgi?pr=44335 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 22 5: 0:18 2002 Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 83D3D37B401 for ; Tue, 22 Oct 2002 05:00:13 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 159DE43E6E for ; Tue, 22 Oct 2002 05:00:12 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9MC0Bx3071482 for ; Tue, 22 Oct 2002 05:00:11 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9MC0BxE071481; Tue, 22 Oct 2002 05:00:11 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B044E37B401 for ; Tue, 22 Oct 2002 04:53:17 -0700 (PDT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D6F743E6A for ; Tue, 22 Oct 2002 04:53:17 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.6/8.12.6) with ESMTP id g9MBrF7R045945 for ; Tue, 22 Oct 2002 04:53:15 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.6/8.12.6/Submit) id g9MBrF9d045944; Tue, 22 Oct 2002 04:53:15 -0700 (PDT) Message-Id: <200210221153.g9MBrF9d045944@www.freebsd.org> Date: Tue, 22 Oct 2002 04:53:15 -0700 (PDT) From: huang wen hui To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: java/44380: patch for java-commapi-freebsd Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 44380 >Category: java >Synopsis: patch for java-commapi-freebsd >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-java >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 22 05:00:11 PDT 2002 >Closed-Date: >Last-Modified: >Originator: huang wen hui >Release: 4.6-STABLE >Organization: gddsn >Environment: FreeBSD wfdb.gddsn.org.cn 4.6-STABLE FreeBSD 4.6-STABLE #4: Sun Jul 21 20:43:12CST 2002 hwh@wfdb.gddsn.org.cn:/usr/obj/usr/src/sys/WFDB i386 >Description: 1. com port could not receive correct data, because patch is wrong 2. ComPort.getName() return null. >How-To-Repeat: Use /usr/ports/comms/java-commapi-freebsd. >Fix: *** libSerial.c.orig Mon Jul 19 11:45:04 1999 --- src/org/freebsd/io/comm/libSerial.c Feb 22 11:19:43 2002 *************** *** 42,47 **** --- 42,48 ---- #include #include #include + #include #define IOEXCEPTION "java/io/IOException" #define USCOEXCEPTION "javax/comm/UnsupportedCommOperationException" *************** *** 420,426 **** jboolean isCopy; bytes = (*env)->GetByteArrayElements (env, b, &isCopy); ! ret = read ((int)sd, bytes, (size_t)length); (*env)->ReleaseByteArrayElements (env, b, bytes, 0); return (ret); } --- 421,427 ---- jboolean isCopy; bytes = (*env)->GetByteArrayElements (env, b, &isCopy); ! ret = read ((int)sd, bytes + offset, (size_t)length); (*env)->ReleaseByteArrayElements (env, b, bytes, 0); return (ret); } *************** *** 438,444 **** jboolean isCopy; bytes = (*env)->GetByteArrayElements (env, b, &isCopy); ! ret = write ((int)sd, bytes, (size_t)length); tcdrain ((int)sd); (*env)->ReleaseByteArrayElements (env, b, bytes, 0); return (ret); --- 439,445 ---- jboolean isCopy; bytes = (*env)->GetByteArrayElements (env, b, &isCopy); ! ret = write ((int)sd, bytes + offset, (size_t)length); tcdrain ((int)sd); (*env)->ReleaseByteArrayElements (env, b, bytes, 0); return (ret); *************** *** 579,586 **** { int state,old_state; int fd; ! fd_set rfds; ! struct timeval sleep; int size; int ret; --- 580,586 ---- { int state,old_state; int fd; ! struct pollfd pollfds; int size; int ret; *************** *** 595,605 **** jthread = (*env)->FindClass( env, "java/lang/Thread" ); interrupt = (*env)->GetStaticMethodID( env, jthread, "interrupted", "()Z" ); ! FD_ZERO( &rfds ); ! FD_SET( fd, &rfds ); ! sleep.tv_sec = 1; /* Check every 1 second, or on receive data */ ! sleep.tv_usec = 0; ! /* Initialization of the current tty state */ ioctl( fd, TIOCMGET, &old_state); --- 595,604 ---- jthread = (*env)->FindClass( env, "java/lang/Thread" ); interrupt = (*env)->GetStaticMethodID( env, jthread, "interrupted", "()Z" ); ! pollfds.fd = fd; ! pollfds.events = POLLIN; ! pollfds.revents = 0; ! /* Initialization of the current tty state */ ioctl( fd, TIOCMGET, &old_state); *************** *** 607,613 **** { do { ! ret=select( fd + 1, &rfds, NULL, NULL, &sleep ); } while ( (ret < 0) && (errno==EINTR)); --- 606,612 ---- { do { ! ret=poll(&pollfds, 1, 1000); } while ( (ret < 0) && (errno==EINTR)); --- src/org/freebsd/io/comm/FreebsdSerial.java.org Tue Oct 22 19:16:52 2002 +++ src/org/freebsd/io/comm/FreebsdSerial.java Tue Oct 22 19:17:15 2002 @@ -47,7 +47,7 @@ private int parity = SerialPort.PARITY_NONE; private int flowcontrol = SerialPort.FLOWCONTROL_NONE; private int sd = -1; - private String name = null; + //private String name = null; private int ibs = 1024; private int obs = 1024; private int framing = -1; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 22 9:30:46 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D55937B401; Tue, 22 Oct 2002 09:30:44 -0700 (PDT) Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 451F343E6A; Tue, 22 Oct 2002 09:30:43 -0700 (PDT) (envelope-from Ranjith.Mandala@Sun.COM) Received: from ha2sca-mail1.SFBay.Sun.COM ([129.145.155.62]) by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA17157; Tue, 22 Oct 2002 10:30:37 -0600 (MDT) Received: from antmonster (d-usca14-133-206 [129.145.133.206]) by ha2sca-mail1.SFBay.Sun.COM (8.11.6+Sun/8.10.2/ENSMAIL,v2.1p1) with ESMTP id g9MGUag05855; Tue, 22 Oct 2002 09:30:36 -0700 (PDT) Date: Tue, 22 Oct 2002 09:30:36 -0700 (PDT) Message-ID: <13618464.1035304277792.JavaMail.Administrator@ha2sca-mail1.sfbay.sun.com> From: Ranjith Mandala To: freebsd-java@freebsd.org Subject: Re: (Review ID: 166063) Tried to unjar a file and it core dumped Cc: java-port@freebsd.org, Ranjith.Mandala@Sun.COM Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: postEmail @(#) PostEmail.java 1.16 02/05/23 17:14:37 X-IM-Review-ID: 166063 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, This Bug Report was submitted from http://java.sun.com/cgi-bin/bugreport.cgi and is being forwarded to you on behalf of rscuss@omniti.com. If you would like to respond. Please send an e-mail to the address listed at the end of this report. Regards, RM. ----------------- Original Bug Report------------------- category : java release : 1.4 subcategory : native_interface type : bug synopsis : Tried to unjar a file and it core dumped description : FULL PRODUCT VERSION : j2sdk1.4.0_02 FULL OPERATING SYSTEM VERSION :FreeBSD 4.6 A DESCRIPTION OF THE PROBLEM : Tried to run java, it core dumps STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : 1.install j2sdk-1_4_0_02-linux-i586.bin 2.run java -version, jar, whatever 3. EXPECTED VERSUS ACTUAL BEHAVIOR : should print version, unjar file, etc. ERROR MESSAGES/STACK TRACES THAT OCCUR : # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Java VM: Java HotSpot(TM) Client VM (1.4.0_02-b02 mixed mode) # # Error ID: 4F533F4C494E55580E43505002AB # REPRODUCIBILITY : This bug can be reproduced always. workaround : suggested_val : cust_name : Robert Scussel cust_email : rscuss@omniti.com jdcid : keyword : webbug company : OmnITI, Inc. hardware : x86 OSversion : Linux bugtraqID : 0 dateCreated : 2002-10-21 19:17:05.5 dateEvaluated : 2002-10-22 10:29:07.224 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 22 20: 2:47 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F34CA37B401 for ; Tue, 22 Oct 2002 20:02:43 -0700 (PDT) Received: from ns.gddsn.org.cn (ns.gddsn.org.cn [210.21.6.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49A9E43E77 for ; Tue, 22 Oct 2002 20:02:43 -0700 (PDT) (envelope-from hwh@ns.gddsn.org.cn) Received: from mail.gddsn.org.cn (gw [210.21.6.34]) by ns.gddsn.org.cn (Postfix) with ESMTP id 3A6FE38CBD4 for ; Wed, 23 Oct 2002 11:02:30 +0800 (CST) Message-ID: <3DB61145.8050207@mail.gddsn.org.cn> Date: Wed, 23 Oct 2002 11:02:29 +0800 From: Huang wen hui User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; zh-CN; rv:1.0.0) Gecko/20020614 X-Accept-Language: zh-cn, zh-tw, en-us MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: awt app always abort when exit using hotspot vm under STABLE Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hi, I use jdk1.3.1 hosspot vm under STABLE( including libc_r patch), Hotspot vm was compiled by gcc31-20020502 from ports. Any awt app will abort when exit. Does gcc31 too old? Should I use gcc32 from ports? --hwh #gdb521 -core java_g.core /usr/local/jdk1.3.1/bin/i386/native_threads/java_g GNU gdb 5.2 (FreeBSD) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-portbld-freebsd4.7"... Core was generated by `java_g'. Program terminated with signal 6, Aborted. Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/native_threads/libhpi_g.so...done. Loaded symbols for /usr/local/jdk1.3.1/jre/lib/i386/native_threads/libhpi_g.so Reading symbols from /usr/lib/libc_r.so.4...done. Loaded symbols for /usr/lib/libc_r.so.4 Reading symbols from /usr/lib/libm.so.2...done. Loaded symbols for /usr/lib/libm.so.2 Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/client/libjvm_g.so...done. Loaded symbols for /usr/local/jdk1.3.1/jre/lib/i386/client/libjvm_g.so Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/libverify_g.so...done. Loaded symbols for /usr/local/jdk1.3.1/jre/lib/i386/libverify_g.so Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/libjava_g.so...done. Loaded symbols for /usr/local/jdk1.3.1/jre/lib/i386/libjava_g.so Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/libzip_g.so...done. Loaded symbols for /usr/local/jdk1.3.1/jre/lib/i386/libzip_g.so Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/libawt_g.so...done. Loaded symbols for /usr/local/jdk1.3.1/jre/lib/i386/libawt_g.so Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/libmlib_image_g.so...done. Loaded symbols for /usr/local/jdk1.3.1/jre/lib/i386/libmlib_image_g.so Reading symbols from /usr/X11R6/lib/libXm.so.2...done. Loaded symbols for /usr/X11R6/lib/libXm.so.2 Reading symbols from /usr/X11R6/lib/libXp.so.6...done. Loaded symbols for /usr/X11R6/lib/libXp.so.6 Reading symbols from /usr/X11R6/lib/libXt.so.6...done. Loaded symbols for /usr/X11R6/lib/libXt.so.6 Reading symbols from /usr/X11R6/lib/libXext.so.6...done. Loaded symbols for /usr/X11R6/lib/libXext.so.6 Reading symbols from /usr/X11R6/lib/libSM.so.6...done. Loaded symbols for /usr/X11R6/lib/libSM.so.6 Reading symbols from /usr/X11R6/lib/libICE.so.6...done. Loaded symbols for /usr/X11R6/lib/libICE.so.6 Reading symbols from /usr/X11R6/lib/libXtst.so.6...done. Loaded symbols for /usr/X11R6/lib/libXtst.so.6 Reading symbols from /usr/X11R6/lib/libX11.so.6...done. Loaded symbols for /usr/X11R6/lib/libX11.so.6 Reading symbols from /usr/X11R6/lib/libXThrStub.so.6...done. Loaded symbols for /usr/X11R6/lib/libXThrStub.so.6 Reading symbols from /usr/local/jdk1.3.1/jre/lib/i386/libfontmanager_g.so...done. Loaded symbols for /usr/local/jdk1.3.1/jre/lib/i386/libfontmanager_g.so Reading symbols from /usr/lib/libstdc++.so.3...done. Loaded symbols for /usr/lib/libstdc++.so.3 Reading symbols from /usr/X11R6/lib/X11/locale/common/xlocale.so.2...done. Loaded symbols for /usr/X11R6/lib/X11/locale/common/xlocale.so.2 Reading symbols from /usr/lib/libc.so.4...done. Loaded symbols for /usr/lib/libc.so.4 Reading symbols from /usr/X11R6/lib/X11/locale/common/xlibi18n.so.2...done. Loaded symbols for /usr/X11R6/lib/X11/locale/common/xlibi18n.so.2 Reading symbols from /usr/X11R6/lib/X11/locale/common/xomGeneric.so.2...done. Loaded symbols for /usr/X11R6/lib/X11/locale/common/xomGeneric.so.2 Reading symbols from /usr/X11R6/lib/X11/locale/common/ximcp.so.2...done. Loaded symbols for /usr/X11R6/lib/X11/locale/common/ximcp.so.2 Reading symbols from /usr/libexec/ld-elf.so.1...done. Loaded symbols for /usr/libexec/ld-elf.so.1 #0 0x180b15a8 in kill () from /usr/lib/libc_r.so.4 (gdb) bt #0 0x180b15a8 in kill () from /usr/lib/libc_r.so.4 #1 0x180ff0ae in abort () from /usr/lib/libc_r.so.4 #2 0x19d6b6b5 in __deregister_frame_info () from /usr/lib/libstdc++.so.3 #3 0x197e2f49 in __do_global_dtors_aux () from /usr/local/jdk1.3.1/jre/lib/i386/libawt_g.so #4 0x1993d055 in _fini () from /usr/local/jdk1.3.1/jre/lib/i386/libawt_g.so #5 0x1804fe59 in find_symdef () from /usr/libexec/ld-elf.so.1 #6 0x180ff500 in exit () from /usr/lib/libc_r.so.4 #7 0x183b60dc in os::exit(int) (code=0) at /usr/ports/java/jdk13/work/hotspot1.3.1/src/os/linux/vm/os_linux.cpp:1065 #8 0x182e087a in vm_exit(int) (code=0) at /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/runtime/java.cpp:338 #9 0x1831eac1 in JVM_Halt () from /usr/local/jdk1.3.1/jre/lib/i386/client/libjvm_g.so #10 0x18784bf2 in Java_java_lang_Shutdown_halt (env=0x81d0eb0, ignored=0x8564a18, code=0) at ../../../src/share/native/java/lang/Shutdown.c:21 #11 0x080da1ac in ?? () #12 0x080d6519 in ?? () #13 0x080d6519 in ?? () #14 0x080d6519 in ?? () #15 0x080d6519 in ?? () #16 0x080d65eb in ?? () #17 0x080d6519 in ?? () #18 0x080d6519 in ?? () #19 0x080d6519 in ?? () #20 0x080d6519 in ?? () #21 0x080d6519 in ?? () #22 0x080d6519 in ?? () #23 0x080d6519 in ?? () #24 0x080d6519 in ?? () #25 0x080d656d in ?? () #26 0x080d6519 in ?? () #27 0x080d6519 in ?? () #28 0x1861a3fd in StubRoutines::_code1 () from /usr/local/jdk1.3.1/jre/lib/i386/client/libjvm_g.so #29 0x182e2979 in JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) (result=0x8564ec4, m=0x8564dc8, args=0x8564e44, __the_thread__=0x81d0e18) at /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/runtime/javaCalls.cpp:378 #30 0x182e2514 in JavaCalls::call(JavaValue*, methodHandle, JavaCallArguments*, Thread*) (result=0x8564ec4, method={ = {_handle = 0x82d6848}, }, args=0x8564e44, __the_thread__=0x81d0e18) at /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/runtime/javaCalls.cpp:287 #31 0x182e1e98 in JavaCalls::call_virtual(JavaValue*, KlassHandle, symbolHandle, symbolHandle, JavaCallArguments*, Thread*) (result=0x8564ec4, spec_klass= { = {_handle = 0x82d6828}, }, name={ = {_handle = 0x186624b0}, }, signature={ = {_handle = 0x18662524}, }, args=0x8564e44, __the_thread__=0x81d0e18) at /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/runtime/javaCalls.cpp:180 #32 0x182e1ef2 in JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, symbolHandle, symbolHandle, Thread*) (result=0x8564ec4, receiver={_handle = 0x82d6824}, spec_klass= { = {_handle = 0x82d6828}, }, name={ = {_handle = 0x186624b0}, }, signature={ = {_handle = 0x18662524}, }, __the_thread__=0x81d0e18) at /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/runtime/javaCalls.cpp:186 #33 0x18330a6c in thread_entry(JavaThread*, Thread*) () from /usr/local/jdk1.3.1/jre/lib/i386/client/libjvm_g.so #34 0x1840797c in JavaThread::thread_main_inner() (this=0x81d0e18) at /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/runtime/thread.cpp:1168 #35 0x18407864 in JavaThread::run() (this=0x81d0e18) at /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/runtime/thread.cpp:1152 #36 0x183b4e4b in _start (data=0x81d0e18) at /usr/ports/java/jdk13/work/hotspot1.3.1/src/os/linux/vm/os_linux.cpp:514 #37 0x1808be20 in _thread_start () from /usr/lib/libc_r.so.4 (gdb) quit To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 22 20:16:41 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C908737B401 for ; Tue, 22 Oct 2002 20:16:39 -0700 (PDT) Received: from titan.seed.net.tw (titan.seed.net.tw [139.175.54.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EBE643E42 for ; Tue, 22 Oct 2002 20:16:34 -0700 (PDT) (envelope-from leafy@leafy.idv.tw) Received: from [61.59.152.177] (helo=leafy.idv.tw) by titan.seed.net.tw with esmtp (Seednet MTA build 20010831) id 184C0W-0001bz-00 for freebsd-java@freebsd.org; Wed, 23 Oct 2002 11:16:32 +0800 Received: from leafy.idv.tw (localhost [127.0.0.1]) by leafy.idv.tw (8.12.6/8.12.6) with ESMTP id g9N3GTNX003909 for ; Wed, 23 Oct 2002 11:16:30 +0800 (CST) (envelope-from leafy@leafy.idv.tw) Received: (from leafy@localhost) by leafy.idv.tw (8.12.6/8.12.6/Submit) id g9N3GTAU003908 for freebsd-java@freebsd.org; Wed, 23 Oct 2002 11:16:29 +0800 (CST) Date: Wed, 23 Oct 2002 11:16:28 +0800 From: JY To: freebsd-java@freebsd.org Subject: Fail to build native thread JDK1.3 after MFC in uthread Message-ID: <20021023031628.GA3860@leafy.idv.tw> Mail-Followup-To: freebsd-java@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline User-Agent: Mutt/1.5.1i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org After MFC in uthread, I can no longer compile JDK1.3.1 with native thread, error as follows: ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:287: warning: `enum pthread_susp' declared inside parameter list ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:287: warning: its s cope is only this definition or declaration, which is probably not what you want . ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:288: parameter `sus pendState' has incomplete type ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c: In function `getSu spendStateString': ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:293: warning: contr ol reaches end of non-void function ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c: At top level: ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:321: warning: initi alizer-string for array of chars is too long ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:321: warning: (near initialization for `SignalList[21]') ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:323: warning: exces s elements in array initializer ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:323: warning: (near initialization for `SignalList') ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c: In function `recor d_gc_registers_of': ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:530: structure has no member named `ctxtype' ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:532: `CTX_JB_NOSIG' undeclared (first use in this function) ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:532: (Each undeclar ed identifier is reported only once ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:532: for each funct ion it appears in.) ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:533: `CTX_JB' undec lared (first use in this function) ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:534: `CTX_SJB' unde clared (first use in this function) ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:540: `CTX_UC' undec lared (first use in this function) ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:535: warning: unrea chable code at beginning of switch statement gmake[4]: *** [../../../../build/bsd-i386/tmp/java/hpi/native_threads/obj/thread s_bsd.o] Error 1 gmake[4]: Leaving directory `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi /native' gmake[3]: *** [optimized] Error 2 gmake[3]: Leaving directory `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi /native' gmake[2]: *** [all] Error 1 gmake[2]: Leaving directory `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi ' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java' gmake: *** [all] Error 1 *** Error code 2 Stop in /usr/ports/java/jdk13. JY To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 22 21: 5:52 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A0B537B401 for ; Tue, 22 Oct 2002 21:05:52 -0700 (PDT) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8E5143E42 for ; Tue, 22 Oct 2002 21:05:51 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 184Clq-0005Bd-00; Tue, 22 Oct 2002 21:05:26 -0700 Date: Tue, 22 Oct 2002 21:05:26 -0700 To: JY Cc: freebsd-java@freebsd.org, "Bill Huey (Hui)" Subject: Re: Fail to build native thread JDK1.3 after MFC in uthread Message-ID: <20021023040526.GA19934@gnuppy.monkey.org> References: <20021023031628.GA3860@leafy.idv.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021023031628.GA3860@leafy.idv.tw> User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Oct 23, 2002 at 11:16:28AM +0800, JY wrote: > After MFC in uthread, I can no longer compile JDK1.3.1 with native thread, error as follows: Comment out problematic code and recompile. It's only going to effect a native threaded -classic which isn't really suppose to work without a signal fix. This should make it good enough for HotSpot to run. bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 22 22:35:54 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 475D237B401 for ; Tue, 22 Oct 2002 22:35:53 -0700 (PDT) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8E2C43E4A for ; Tue, 22 Oct 2002 22:35:52 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 184EBC-0005FM-00; Tue, 22 Oct 2002 22:35:42 -0700 Date: Tue, 22 Oct 2002 22:35:42 -0700 To: Huang wen hui Cc: freebsd-java@freebsd.org, "Bill Huey (Hui)" Subject: Re: awt app always abort when exit using hotspot vm under STABLE Message-ID: <20021023053542.GA20151@gnuppy.monkey.org> References: <3DB61145.8050207@mail.gddsn.org.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DB61145.8050207@mail.gddsn.org.cn> User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Oct 23, 2002 at 11:02:29AM +0800, Huang wen hui wrote: > hi, > I use jdk1.3.1 hosspot vm under STABLE( including libc_r patch), Hotspot > vm was compiled by gcc31-20020502 from ports. > Any awt app will abort when exit. Does gcc31 too old? Should I use gcc32 > from ports? You can try, but I doubt it'll affect anything. Did you rebuild from a completely clean build directory ? It looks like it's failing in the C++/C glue layer that binds both HotSpot and the support JVM. The JVM itself is used as a supporting first-class type library for HotSpot VM. It's possibly throwing an exception of some sort repeatedly... Not sure until I get a recent -stable machine up an going... > /usr/local/jdk1.3.1/jre/lib/i386/client/libjvm_g.so > #10 0x18784bf2 in Java_java_lang_Shutdown_halt (env=0x81d0eb0, > ignored=0x8564a18, code=0) at > ../../../src/share/native/java/lang/Shutdown.c:21 > #11 0x080da1ac in ?? () > #12 0x080d6519 in ?? () > #13 0x080d6519 in ?? () > #14 0x080d6519 in ?? () > #15 0x080d6519 in ?? () > #16 0x080d65eb in ?? () > #17 0x080d6519 in ?? () > #18 0x080d6519 in ?? () > #19 0x080d6519 in ?? () > #20 0x080d6519 in ?? () > #21 0x080d6519 in ?? () > #22 0x080d6519 in ?? () > #23 0x080d6519 in ?? () > #24 0x080d6519 in ?? () > #25 0x080d656d in ?? () > #26 0x080d6519 in ?? () > #27 0x080d6519 in ?? () > #28 0x1861a3fd in StubRoutines::_code1 () from > /usr/local/jdk1.3.1/jre/lib/i386/client/libjvm_g.so > #29 0x182e2979 in JavaCalls::call_helper(JavaValue*, methodHandle*, > JavaCallArguments*, Thread*) (result=0x8564ec4, m=0x8564dc8, > args=0x8564e44, __the_thread__=0x81d0e18) > at > /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/runtime/javaCalls.cpp:378 bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Oct 23 5:34:48 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1743137B401 for ; Wed, 23 Oct 2002 05:34:47 -0700 (PDT) Received: from titan.seed.net.tw (titan.seed.net.tw [139.175.54.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 666A643E8A for ; Wed, 23 Oct 2002 05:34:36 -0700 (PDT) (envelope-from leafy@leafy.idv.tw) Received: from [61.59.152.177] (helo=leafy.idv.tw) by titan.seed.net.tw with esmtp (Seednet MTA build 20010831) id 184KiZ-000206-00 for freebsd-java@freebsd.org; Wed, 23 Oct 2002 20:34:35 +0800 Received: from leafy.idv.tw (localhost [127.0.0.1]) by leafy.idv.tw (8.12.6/8.12.6) with ESMTP id g9NCYUNX083443 for ; Wed, 23 Oct 2002 20:34:34 +0800 (CST) (envelope-from leafy@leafy.idv.tw) Received: (from leafy@localhost) by leafy.idv.tw (8.12.6/8.12.6/Submit) id g9NCYU2e083442 for freebsd-java@freebsd.org; Wed, 23 Oct 2002 20:34:30 +0800 (CST) Date: Wed, 23 Oct 2002 20:34:29 +0800 From: JY To: freebsd-java@freebsd.org Subject: Re: Fail to build native thread JDK1.3 after MFC in uthread Message-ID: <20021023123429.GA83417@leafy.idv.tw> Mail-Followup-To: freebsd-java@freebsd.org References: <20021023031628.GA3860@leafy.idv.tw> <20021023040526.GA19934@gnuppy.monkey.org> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline In-Reply-To: <20021023040526.GA19934@gnuppy.monkey.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Oct 22, 2002 at 09:05:26PM -0700, Bill Huey wrote: > On Wed, Oct 23, 2002 at 11:16:28AM +0800, JY wrote: > > After MFC in uthread, I can no longer compile JDK1.3.1 with native thread, error as follows: > > Comment out problematic code and recompile. It's only going to effect > a native threaded -classic which isn't really suppose to work without > a signal fix. This should make it good enough for HotSpot to run. > > bill > Hi, I used Huang's patch and now Hotspot core JVM runs fine on my -stable. Even filechooser dialogs are without a glitch. Thank you for all who gave me pointers. JY PS. How do I switch to other Hotspot VMs? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Oct 24 4:50: 6 2002 Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9593037B401 for ; Thu, 24 Oct 2002 04:50:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58D9243E6E for ; Thu, 24 Oct 2002 04:50:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9OBo3x3073058 for ; Thu, 24 Oct 2002 04:50:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9OBo3aK073057; Thu, 24 Oct 2002 04:50:03 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2ADA037B401 for ; Thu, 24 Oct 2002 04:49:05 -0700 (PDT) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FD9D43E4A for ; Thu, 24 Oct 2002 04:49:04 -0700 (PDT) (envelope-from ernst@zaphod.euronet.nl) Received: from zaphod.euronet.nl (localhost [127.0.0.1]) by zaphod.euronet.nl (8.12.5/8.12.5) with ESMTP id g9OBn8vK051758 for ; Thu, 24 Oct 2002 13:49:08 +0200 (CEST) (envelope-from ernst@zaphod.euronet.nl) Received: (from ernst@localhost) by zaphod.euronet.nl (8.12.5/8.12.5/Submit) id g9OBn8vc051757; Thu, 24 Oct 2002 13:49:08 +0200 (CEST) Message-Id: <200210241149.g9OBn8vc051757@zaphod.euronet.nl> Date: Thu, 24 Oct 2002 13:49:08 +0200 (CEST) From: Ernst de Haan Reply-To: Ernst de Haan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: java/44432: Ant-based port installs should use Jikes if available Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 44432 >Category: java >Synopsis: Ant-based port installs should use Jikes if available >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-java >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Oct 24 04:50:03 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Ernst de Haan >Release: FreeBSD 4.6-STABLE i386 >Organization: FreeBSD Project >Environment: System: FreeBSD zaphod.euronet.nl 4.6-STABLE FreeBSD 4.6-STABLE #11: Mon Sep 2 10:15:56 CEST 2002 root@zaphod.euronet.nl:/usr/obj/usr/src/sys/ZAPHOD i386 >Description: It should be possible for ports that use an Ant-based build to use Jikes if it installed. Port that do this include textproc/ant-xinclude-task and java/jump. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Oct 24 8: 9:41 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6052A37B404 for ; Thu, 24 Oct 2002 08:09:38 -0700 (PDT) Received: from t-mta7.odn.ne.jp (mfep7.odn.ne.jp [143.90.131.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4253143E6A for ; Thu, 24 Oct 2002 08:09:37 -0700 (PDT) (envelope-from shige@FreeBSD.org) Received: from artemis.emerald.priv.net ([211.121.220.23]) by t-mta7.odn.ne.jp with ESMTP id <20021024150935696.SRYO.2063.t-mta7.odn.ne.jp@mta7.odn.ne.jp> for ; Fri, 25 Oct 2002 00:09:35 +0900 Date: Fri, 25 Oct 2002 00:09:34 +0900 (JST) Message-Id: <20021025.000934.46208515.shige@FreeBSD.org> To: freebsd-java@freebsd.org Subject: FYI: sablecc ports From: Shigeyuki Fukushima X-Mailer: Mew version 2.0 on Emacs 21.2 / Mule 5.0 (SAKAKI) X-Prom-Mew: Prom-Mew 2.00 (procmail reader for Mew) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org For your information: I made sablecc new ports. Please add it to java category. Thanks, --- Shigeyuki Fukushima # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # sablecc # sablecc/files # sablecc/files/sablecc.in # sablecc/distinfo # sablecc/pkg-descr # sablecc/pkg-plist # sablecc/pkg-comment # sablecc/Makefile # echo c - sablecc mkdir -p sablecc > /dev/null 2>&1 echo c - sablecc/files mkdir -p sablecc/files > /dev/null 2>&1 echo x - sablecc/files/sablecc.in sed 's/^X//' >sablecc/files/sablecc.in << 'END-of-sablecc/files/sablecc.in' X#!/bin/sh XCLASSDIR=%%PREFIX%%/share/java/classes Xexec javavm -jar ${CLASSDIR}/sablecc.jar $* END-of-sablecc/files/sablecc.in echo x - sablecc/distinfo sed 's/^X//' >sablecc/distinfo << 'END-of-sablecc/distinfo' XMD5 (sablecc-2.17.2.tar.gz) = 5fe1195f511c75ce8b2bbb6422b13c7b END-of-sablecc/distinfo echo x - sablecc/pkg-descr sed 's/^X//' >sablecc/pkg-descr << 'END-of-sablecc/pkg-descr' XSableCC, an object-oriented compiler framework. X XWWW: http://www.sablecc.org/ END-of-sablecc/pkg-descr echo x - sablecc/pkg-plist sed 's/^X//' >sablecc/pkg-plist << 'END-of-sablecc/pkg-plist' Xbin/sablecc Xshare/java/classes/sablecc.jar END-of-sablecc/pkg-plist echo x - sablecc/pkg-comment sed 's/^X//' >sablecc/pkg-comment << 'END-of-sablecc/pkg-comment' XSableCC, an object-oriented compiler framework END-of-sablecc/pkg-comment echo x - sablecc/Makefile sed 's/^X//' >sablecc/Makefile << 'END-of-sablecc/Makefile' X# New ports collection makefile for: sablecc X# Date created: 17 October 2002 X# Whom: shige@FreeBSD.org X# X# $FreeBSD$ X# X XPORTNAME= sablecc XPORTVERSION= 2.17.2 XCATEGORIES= java textproc XMASTER_SITES= http://download.sourceforge.net/sablecc/ X XMAINTAINER= java@FreeBSD.org X X#BUILD_DEPENDS= ant:${PORTSDIR}/devel/jakarta-ant XUSE_JAVA= 1.2+ X X# X# We'd love to build Xalan rather than install a binary release, but X# the doc build doesn't seem to work... :( X# XNO_BUILD= YES X Xdo-configure: X ${SED} 's|%%PREFIX%%|${PREFIX}|g' \ X ${FILESDIR}/sablecc.in > ${WRKDIR}/sablecc X Xdo-build: X (cd ${WRKSRC} && ant jar) X Xdo-install: X ${INSTALL_DATA} ${WRKSRC}/lib/sablecc.jar \ X ${PREFIX}/share/java/classes X ${INSTALL_SCRIPT} ${WRKDIR}/sablecc ${PREFIX}/bin X X.include END-of-sablecc/Makefile exit To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Oct 24 18:11:54 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E37037B401 for ; Thu, 24 Oct 2002 18:11:54 -0700 (PDT) Received: from ns.gddsn.org.cn (ns.gddsn.org.cn [210.21.6.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5A2C43E6A for ; Thu, 24 Oct 2002 18:11:53 -0700 (PDT) (envelope-from hwh@ns.gddsn.org.cn) Received: from mail.gddsn.org.cn (gw [210.21.6.34]) by ns.gddsn.org.cn (Postfix) with ESMTP id BB4B838CBD3; Fri, 25 Oct 2002 09:11:41 +0800 (CST) Message-ID: <3DB89A4C.4080305@mail.gddsn.org.cn> Date: Fri, 25 Oct 2002 09:11:40 +0800 From: Huang wen hui User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; zh-CN; rv:1.0.0) Gecko/20020728 X-Accept-Language: zh-cn, zh-tw, en-us MIME-Version: 1.0 To: billh@gnuppy.monkey.org, freebsd-java@freebsd.org Subject: Re: awt app always abort when exit using hotspot vm under STABLE Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > You can try, but I doubt it'll affect anything. yes, did not affect anything. > Did you rebuild from a completely clean build directory ? I totally recompile system and all ports includedjdk13, but I got same problem. thanks, --hwh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Oct 24 18:15:30 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F22F337B401 for ; Thu, 24 Oct 2002 18:15:29 -0700 (PDT) Received: from titan.seed.net.tw (titan.seed.net.tw [139.175.54.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5223443E3B for ; Thu, 24 Oct 2002 18:15:24 -0700 (PDT) (envelope-from leafy@leafy.idv.tw) Received: from [61.59.151.5] (helo=leafy.idv.tw) by titan.seed.net.tw with esmtp (Seednet MTA build 20010831) id 184t4N-0003tE-00 for freebsd-java@FreeBSD.ORG; Fri, 25 Oct 2002 09:15:23 +0800 Received: from leafy.idv.tw (localhost [127.0.0.1]) by leafy.idv.tw (8.12.6/8.12.6) with ESMTP id g9P1FL41098591 for ; Fri, 25 Oct 2002 09:15:22 +0800 (CST) (envelope-from leafy@leafy.idv.tw) Received: (from leafy@localhost) by leafy.idv.tw (8.12.6/8.12.6/Submit) id g9P1FLbM098590 for freebsd-java@FreeBSD.ORG; Fri, 25 Oct 2002 09:15:21 +0800 (CST) Date: Fri, 25 Oct 2002 09:15:21 +0800 From: JY To: freebsd-java@FreeBSD.ORG Subject: Re: awt app always abort when exit using hotspot vm under STABLE Message-ID: <20021025011521.GA98575@leafy.idv.tw> Mail-Followup-To: freebsd-java@FreeBSD.ORG References: <3DB89A4C.4080305@mail.gddsn.org.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline In-Reply-To: <3DB89A4C.4080305@mail.gddsn.org.cn> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Oct 25, 2002 at 09:11:40AM +0800, Huang wen hui wrote: > > Did you rebuild from a completely clean build directory ? > I totally recompile system and all ports includedjdk13, but I got > same problem. > thanks, > > > --hwh Same here. SwingSet2 and JEdit both core dump on Hotspot exit. Which VM does not matter. JY To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Oct 24 21:48:37 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2535437B401 for ; Thu, 24 Oct 2002 21:48:37 -0700 (PDT) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A57043E77 for ; Thu, 24 Oct 2002 21:48:36 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 184wOO-0001Ef-00; Thu, 24 Oct 2002 21:48:16 -0700 Date: Thu, 24 Oct 2002 21:48:16 -0700 To: JY Cc: freebsd-java@FreeBSD.ORG, "Bill Huey (Hui)" Subject: Re: awt app always abort when exit using hotspot vm under STABLE Message-ID: <20021025044816.GA4746@gnuppy.monkey.org> References: <3DB89A4C.4080305@mail.gddsn.org.cn> <20021025011521.GA98575@leafy.idv.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021025011521.GA98575@leafy.idv.tw> User-Agent: Mutt/1.4i From: Bill Huey (Hui) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Oct 25, 2002 at 09:15:21AM +0800, JY wrote: > Same here. SwingSet2 and JEdit both core dump on Hotspot exit. Which VM does not matter. I'll sync/bring up my -stable machine and build this for testing. It's a bit disheartening that it's kind of breaking... Oh well, I guess I just have to hang in there, you folks too. :) bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Oct 25 15: 2:30 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1897737B404 for ; Fri, 25 Oct 2002 15:02:26 -0700 (PDT) Received: from ncsmtp02.ogw.rr.com (ncsmtp02.ogw.rr.com [24.93.67.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A9F143E3B for ; Fri, 25 Oct 2002 15:02:25 -0700 (PDT) (envelope-from mmercer@nc.rr.com) Received: from mail4.nc.rr.com (fe4 [24.93.67.51]) by ncsmtp02.ogw.rr.com (8.12.5/8.12.2) with ESMTP id g9PM2Our026940 for ; Fri, 25 Oct 2002 18:02:25 -0400 (EDT) Received: from nc.rr.com ([24.74.128.130]) by mail4.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Fri, 25 Oct 2002 18:02:34 -0400 Message-ID: <3DB9BF70.E257B15F@nc.rr.com> Date: Fri, 25 Oct 2002 18:02:24 -0400 From: Michael E Mercer Reply-To: mmercer@nc.rr.com X-Mailer: Mozilla 4.61 [en] (X11; U; FreeBSD 4.7-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: alrighty then... java and java_g dying quite regularly... Content-Type: multipart/mixed; boundary="------------74828789990473ABA24F9AF2" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------74828789990473ABA24F9AF2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello all, I am using LimeWire and before I was able to use it with java_g. However now that I rebuilt "world" that contained the libc_r changes and rebuilt jdk13. It continously crashes whether I use java or java_g to start it. What would you like (if any) for me to gather so that someone with the know-how can look into it? I have plenty of time to help out in whatever way I can. I can if needed attached the full output of the crash but it is pages long... Thanks Michael Mercer > java -version java version "1.3.1-p7" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-p7-mmercer-021023-16:14) Classic VM (build 1.3.1-p7-mmercer-021023-16:14, green threads, nojit) > java_g -version java version "1.3.1-p7" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-p7-mmercer-021023-16:14) Classic VM (build 1.3.1-p7-mmercer-021023-16:14, green threads, nojit) Error from LimeWire crash... SIGBUS 10* bus error Full thread dump Classic VM (1.3.1-p7-mmercer-021023-16:14, green threads): "Thread-619" (TID:0x28d78bc0, sys_thread_t:0x8bdc080, state:R) prio=5 at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) at java.net.Socket.(Socket.java:273) at java.net.Socket.(Socket.java:100) at com.limegroup.gnutella.util.SocketOpener$SocketOpenerThread.run(Unknown Source) "Thread-618" (TID:0x28d78d88, sys_thread_t:0x8c2ac80, state:R) prio=5 at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) at java.net.Socket.(Socket.java:273) at java.net.Socket.(Socket.java:100) --------------74828789990473ABA24F9AF2 Content-Type: text/plain; charset=us-ascii; name="dmesg.output" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dmesg.output" Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.7-STABLE #0: Mon Oct 21 22:34:19 EDT 2002 mmercer@dual.mmercer.com:/usr/obj/usr/src/sys/dualII_4_7 Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (451.02-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x652 Stepping = 2 Features=0x183fbff real memory = 536870912 (524288K bytes) avail memory = 517980160 (505840K bytes) Programming 24 pins in IOAPIC #0 IOAPIC #0 intpin 2 -> irq 0 FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 0, version: 0x00040011, at 0xfee00000 cpu1 (AP): apic id: 1, version: 0x00040011, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x00170011, at 0xfec00000 Preloaded elf kernel "kernel" at 0xc03d9000. ccd0-3: Concatenated disk drivers VESA: v3.0, 16384k memory, flags:0x1, mode table:0xc0355d37 (1000117) VESA: 3dfx Interactive, Inc. Pentium Pro MTRR support enabled md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard IOAPIC #0 intpin 19 -> irq 2 IOAPIC #0 intpin 16 -> irq 9 IOAPIC #0 intpin 17 -> irq 10 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: <3Dfx Voodoo 3 graphics accelerator> at 0.0 irq 9 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at 7.2 irq 2 Timecounter "PIIX" frequency 3579545 Hz chip1: port 0x440-0x44f at device 7.3 on pci0 pci0: (vendor=0x1105, dev=0x8300) at 16.0 irq 9 xl0: <3Com 3c900B-TPO Etherlink XL> port 0xec00-0xec7f mem 0xfeafff80-0xfeafffff irq 10 at device 17.0 on pci0 xl0: Ethernet address: 00:50:04:11:29:cd xl0: selecting 10baseT transceiver, half duplex isa0: too many dependant configs (8) isa0: unexpected small tag 14 orm0: