Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jul 2024 15:56:49 +0200
From:      Michal Meloun <meloun.michal@gmail.com>
To:        Konstantin Belousov <kib@freebsd.org>
Cc:        Mark Millard <marklmi@yahoo.com>, mmel@freebsd.org, FreeBSD Current <freebsd-current@freebsd.org>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: armv7-on-aarch64 stuck at urdlck
Message-ID:  <31690db8-e563-491f-ae91-f235aec8c24c@gmail.com>
In-Reply-To: <Zp95qtxK0CeDdp-d@kib.kiev.ua>
References:  <724db42b-5550-4381-8277-2971e6b3e8f1@freebsd.org> <B5E2275D-21F0-43C8-AF06-A45DB7448D66@yahoo.com> <86185657-e521-466b-89e2-f291aaac10a6@freebsd.org> <0EF18174-8735-46A4-BD71-FFA3472B319F@yahoo.com> <a1b978fe-ff54-4112-860c-b09500d89d0b@freebsd.org> <C0B42CBB-8F12-4597-A04B-26F2107E176E@yahoo.com> <33251aa3-681f-4d17-afe9-953490afeaf0@gmail.com> <0DD19771-3AAB-469E-981B-1203F1C28233@yahoo.com> <be023545-2b25-49ec-b6f1-9e05cd402646@gmail.com> <Zp95qtxK0CeDdp-d@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help


On 23.07.2024 11:36, Konstantin Belousov wrote:
> On Tue, Jul 23, 2024 at 09:53:41AM +0200, Michal Meloun wrote:
>> The good news is that I'm finally able to generate a working/locking
>> test case.  The culprit (at least for me) is if "-mcpu" is used when
>> compiling libthr (e.g. indirectly injected via CPUTYPE in /etc/make.conf).
>> If it is not used, libthr is broken (regardless of -O level or debug/normal
>> build), but -mcpu=cortex-a15 will always produce a working libthr.
> 
> I think this is very significant progress.
> 
> Do you plan to drill down more to see what is going on?

Sure. Fortunately, I have some free time now. I've just almost finished 
a two-years project (unrelated to FBSD or computers) that took up all my 
time.


Another symptom is that:

Breakpoint 2.2, _umtx_op_err (obj=0x20135cc0, op=UMTX_OP_RW_RDLOCK,
  val=0, uaddr=0x0,  uaddr2=0x0) at /usr/src/lib/libsys/_umtx_op_err.c:36
where  obj=0x20135cc0 --->
  {rw_state = URWLOCK_WRITE_OWNER , rw_flags = 2,
   rw_blocked_readers = 0, rw_blocked_writers = 0,
   rw_spare = {0, 0, 0, 0}}


always return EINTR.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31690db8-e563-491f-ae91-f235aec8c24c>