sigsegv problem solved for printing tasklists