Re: rtld-elf, java + tya

2000-01-24 Thread John Polstra

In article [EMAIL PROTECTED],
Max Khon  [EMAIL PROTECTED] wrote:
 
 Seems that this patch fixed the problem for me.
 I can not reproduce it anymore.

That's good news.  Thanks for testing it!  I'll commit it later
today.

John


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: rtld-elf, java + tya

2000-01-23 Thread John Polstra

In article [EMAIL PROTECTED],
Max Khon  [EMAIL PROTECTED] wrote:
 
 applet_viewer bombs out with a lot of stuff in the output like this
 (until killed -9):
 
 ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/lockdflt.c:55

The last time this problem happened (I thought I fixed it!), it almost
always appeared very soon after starting a multithreaded program.  At
that time I was able to reproduce it with the script below.  Those of
you who have seen it might be able to modify the script so it runs
your failing application instead of cvsup.  It might help you to get a
stack trace for me (hint hint).

John

#! /bin/sh
#
#   for (i = 0;  i  $n;  i++) {
#   start $prog in background
#   sleep($t)
#   kill $prog
#   }

prog=$HOME/bin/cvsup
args="/dev/null"
t=0.5
n=100

if [ $# -ge 1 ]; then
n=$1
fi

go() {
$prog $args 
pid=$!
sleep $t
kill $pid
wait %1
status=$?
if [ $status -ne 143 ]; then
echo "Status = $status"
exit
fi
}

i=0
while [ $i -lt $n ]; do
go
i=$(($i + 1))
done


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: rtld-elf, java + tya

2000-01-23 Thread John Polstra

 ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/lockdflt.c:55

If any of you can reproduce this problem fairly reliably, please try
the appended patch for "src/libexec/rtld-elf/lockdflt.c" and let me
know if it solves the problem.

Thanks,
John

Index: lockdflt.c
===
RCS file: /home/ncvs/src/libexec/rtld-elf/lockdflt.c,v
retrieving revision 1.3
diff -u -r1.3 lockdflt.c
--- lockdflt.c  2000/01/09 21:13:48 1.3
+++ lockdflt.c  2000/01/23 19:03:26
@@ -28,10 +28,9 @@
 /*
  * Default thread locking implementation for the dynamic linker.  It
  * is used until the client registers a different implementation with
- * dllockinit().  The default implementation does mutual exclusion
- * by blocking the SIGVTALRM, SIGPROF, and SIGALRM signals.  This is
- * based on the observation that most userland thread packages use one
- * of these signals to support preemption.
+ * dllockinit().  The default implementation does mutual exclusion by
+ * blocking almost all signals.  This is based on the observation that
+ * most userland thread packages use signals to support preemption.
  */
 
 #include dlfcn.h
@@ -63,10 +62,13 @@
 
 l = NEW(LockDflt);
 l-depth = 0;
-sigemptyset(l-lock_mask);
-sigaddset(l-lock_mask, SIGVTALRM);
-sigaddset(l-lock_mask, SIGPROF);
-sigaddset(l-lock_mask, SIGALRM);
+sigfillset(l-lock_mask);
+sigdelset(l-lock_mask, SIGTRAP);
+sigdelset(l-lock_mask, SIGABRT);
+sigdelset(l-lock_mask, SIGBUS);
+sigdelset(l-lock_mask, SIGSEGV);
+sigdelset(l-lock_mask, SIGKILL);
+sigdelset(l-lock_mask, SIGSTOP);
 return l;
 }
 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: rtld-elf, java + tya

2000-01-23 Thread Max Khon

hi, there!

On Sun, 23 Jan 2000, John Polstra wrote:

  ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/lockdflt.c:55
 
 If any of you can reproduce this problem fairly reliably, please try
 the appended patch for "src/libexec/rtld-elf/lockdflt.c" and let me
 know if it solves the problem.

Seems that this patch fixed the problem for me.
I can not reproduce it anymore.

/fjoe



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: rtld-elf, java + tya

2000-01-21 Thread Pascal Hofstee

On Fri, Jan 21, 2000 at 06:42:51PM +0600, Max Khon wrote:
 hi, there!
 
 applet_viewer bombs out with a lot of stuff in the output like this
 (until killed -9):
 
 ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/lockdflt.c:55
 ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/lockdflt.c:55
 ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/lockdflt.c:55
 ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/lockdflt.c:55
 ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/lockdflt.c:55
 ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/lockdflt.c:55
 ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/lockdflt.c:55

I just today experienced the Exact same assertion failure when trying to
shutdown the GIMP.


-- 

  Pascal Hofstee - [EMAIL PROTECTED]

-BEGIN GEEK CODE BLOCK-
Version: 3.1
GCS d- s+: a-- C++ UB P+ L- E--- W- N+ o? K- w--- O? M V? PS+ PE Y-- PGP--
t+ 5 X-- R tv+ b+ DI D- G e* h+ r- y+
--END GEEK CODE BLOCK--


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: rtld-elf, java + tya

2000-01-21 Thread John Polstra

In article [EMAIL PROTECTED],
Max Khon  [EMAIL PROTECTED] wrote:
 hi, there!
 
 applet_viewer bombs out with a lot of stuff in the output like this
 (until killed -9):
 
 ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/lockdflt.c:55

Really?!  Augh.  Naturally this comes just hours after I have merged
the latest changes into -stable *sigh*.

Could you please make sure your src/libexec/rtld-elf is
up-to-date?  rtld.c should be at revision 1.41.

Then if you can give me a stack backtrace it would help a lot.

Thanks,
John
-- 
  John Polstra   [EMAIL PROTECTED]
  John D. Polstra  Co., Inc.Seattle, Washington USA
  "Disappointment is a good sign of basic intelligence."  -- Chögyam Trungpa



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: rtld-elf, java + tya

2000-01-21 Thread Russell L. Carter

I've seen it with yesterdays current and libc_r threads, and it's intermittent.

Russell


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: rtld-elf, java + tya

2000-01-21 Thread John Polstra

In article [EMAIL PROTECTED],
Russell L. Carter [EMAIL PROTECTED] wrote:
 I've seen it with yesterdays current and libc_r threads, and it's intermittent.

Did this problem just start, or has it been there for awhile?  I
haven't changed the dynamic linker in -current since January 9, and
I'm wondering if a more recent change in a different part of the
system is causing trouble.

John
-- 
  John Polstra   [EMAIL PROTECTED]
  John D. Polstra  Co., Inc.Seattle, Washington USA
  "Disappointment is a good sign of basic intelligence."  -- Chögyam Trungpa



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: rtld-elf, java + tya

2000-01-21 Thread Amancio Hasty

I am fairly certain that Java + TYA worked before Jan 7 -- haven't
upgraded my system since then.

-- 
 Amancio Hasty
 [EMAIL PROTECTED]




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: rtld-elf, java + tya

2000-01-21 Thread Russell L. Carter

|From [EMAIL PROTECTED] Fri Jan 21 11:23:14 2000
|
|In article [EMAIL PROTECTED],
|Russell L. Carter [EMAIL PROTECTED] wrote:
| I've seen it with yesterdays current and libc_r threads, and it's intermittent.
|
|Did this problem just start, or has it been there for awhile?  I
|haven't changed the dynamic linker in -current since January 9, and
|I'm wondering if a more recent change in a different part of the
|system is causing trouble.

I first saw it yesterday, and I've been building pretty regularly
on a tracking current box.  

This is a CORBA C++ application linking against ACE/TAO, i.e., not easy
to simplify.  I think I saw it maybe twice out of 50 builds.  I'm away
from that box right now, I'll pay more attention when I get back to
it tonight, and let you know if I can get any repeatability.

Russell

|
|John
|-- 
|  John Polstra   [EMAIL PROTECTED]
|  John D. Polstra  Co., Inc.Seattle, Washington USA
|  "Disappointment is a good sign of basic intelligence."  -- Chögyam Trungpa
|
|


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: rtld-elf, java + tya

2000-01-21 Thread John Polstra

In article [EMAIL PROTECTED],
Amancio Hasty  [EMAIL PROTECTED] wrote:
 I am fairly certain that Java + TYA worked before Jan 7 -- haven't
 upgraded my system since then.

Yes, that assert that failed wasn't in the dynamic linker on January
7.  What I need to know is: did it start failing soon after January
9, or only just in the past few days?

Also I really need a stack trace of a failure to analyze.

John
-- 
  John Polstra   [EMAIL PROTECTED]
  John D. Polstra  Co., Inc.Seattle, Washington USA
  "Disappointment is a good sign of basic intelligence."  -- Chögyam Trungpa



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: rtld-elf, java + tya

2000-01-21 Thread Max Khon

hi, there!

On Fri, 21 Jan 2000, John Polstra wrote:

 Really?!  Augh.  Naturally this comes just hours after I have merged
 the latest changes into -stable *sigh*.
 
 Could you please make sure your src/libexec/rtld-elf is
 up-to-date?  rtld.c should be at revision 1.41.

yes. my src/libexec/rtld-elf/rtld.c is 1.41
 
 Then if you can give me a stack backtrace it would help a lot.

I'll try to get backtrace on Monday (when I'll get to the office)

/fjoe



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message