[PATCH 3/3] tests: add new torture test for timer infrastructure

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Hans Peter Freyther holger at freyther.de
Mon Oct 17 13:01:34 UTC 2011


On 09/26/2011 01:35 PM, pablo at gnumonks.org wrote:

> The list-based implementation crashes or it seems loop forever with
> this test (I guess due to some memory corruption).

Yes, the list somehow becomes corrupted. Even when restarting the iteration it
is better to use llist_for_each_entry_safe and del timer before calling the
callback. Somehow a NULL element ends in the list (with llist_del it would
still be poisoned), i will take a deeper look (just out of curiosity)

holger





More information about the OpenBSC mailing list