Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Apr 2003 19:37:08 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Daniel Eischen <eischen@pcnet1.pcnet.com>
Cc:        threads@freebsd.org
Subject:   Re: Question about rtld-elf. Anyone?.. Anyone?
Message-ID:  <3EB08854.67A7BDA@mindspring.com>
References:  <Pine.GSO.4.10.10304302227370.21688-100000@pcnet1.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Daniel Eischen wrote:
> And in answer to your other question.  If I hack the threads
> library to always resume a thread that has an expired quantum,
> mozilla seems to work just fine -- I can't get it to fail.


Thanks.

I now claim authoritatively that according to POSIX, this is
a coding error in Mozilla.

I also claim that "fixing" dlopen is insufficient, and that
the error will pop up in some other interface, such as mmap()
or shmat(), etc., which will have exactly the same issues.


For bonus points, it should be possible to save the preempted
thread's ID, and, when an involuntary switch would have occurred,
print out the program counter of the thread that gets preempted
without this patch, but doesn't get preempted with it.

That will tell you exactly what code is failing, every time. I
submit the theory that it's not going to be dl*() every time.

-- Terry



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EB08854.67A7BDA>