abort() in vtc_log_VAS_Fail not reached

Poul-Henning Kamp phk at phk.freebsd.dk
Mon Jun 23 20:27:14 CEST 2014


In message <53A84EB0.1080006 at schokola.de>, Nils Goroll writes:
>I've just stumbled over this code in vtc_log.c:vtc_log()
>
>	if (lvl > 0)
>		return;
>	if (lvl == 0)
>		vtc_error = 1;
>	if (pthread_self() != vtc_thread)
>		pthread_exit(NULL);
>
>Opinions on adding an option to varnishtest to always abort() for assertion
>failures?

Good idea, send patch...

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-dev mailing list