The weak psql_trylock() stub in psql.c called plocks_trywrlock() directly without updating lockctr. In the debug build, psql_unlock() asserts lockctr > 0, so when trylock succeeded (lock acquired, lockctr still 0) the assert fired with SIGABRT on write ops via pfs_inc_writeid_locked. Add a strong psql_trylock() override in psql_debug.c that delegates to psql_do_trylock(), which properly acquires the rwlock and updates lockctr. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| pfs_debug.c | ||
| pfstasks_debug.c | ||
| pnetlibs_debug.c | ||
| psock_debug.c | ||
| psql_debug.c | ||
| psys_debug.c | ||