(ITS#5958) Segfault in test039