pcloudcc-lneely/pclsync/debug
Levi Neely f8dc321286 Fix debug psql_trylock: missing strong override left lockctr unupdated
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>
2026-03-09 20:47:39 +01:00
..
pfs_debug.c Fix debug build: compile error, false-positive abort, and crash DB lock 2026-03-09 20:47:39 +01:00
pfstasks_debug.c Fix debug build segfault: add strong overrides for psql_lock/unlock functions (#177) 2026-03-03 07:59:30 +01:00
pnetlibs_debug.c Add memory accounting per subsystem (#371) 2026-03-08 21:47:22 +01:00
psock_debug.c Fix debug build segfault: add strong overrides for psql_lock/unlock functions (#177) 2026-03-03 07:59:30 +01:00
psql_debug.c Fix debug psql_trylock: missing strong override left lockctr unupdated 2026-03-09 20:47:39 +01:00
psys_debug.c Fix debug build segfault: add strong overrides for psql_lock/unlock functions (#177) 2026-03-03 07:59:30 +01:00