iverilog: fix crash in lxt2 dump.

This commit is contained in:
Johannes 2020-05-12 22:02:13 +02:00 committed by Johannes
parent 959f0a1aa4
commit bc516ca0ee
2 changed files with 17 additions and 2 deletions

View file

@ -0,0 +1,15 @@
vcd_work_terminate() calls pthread_join() on a static thread.
Do not call vcd_work_terminate() in close_dumpfile() because it was already
called before, leading to a second call to pthread_join() on the same pthread,
which is undefined behaviour.
--- vpi/sys_lxt2.c.orig 2020-05-13 00:25:45.070186668 +0200
+++ vpi/sys_lxt2.c 2020-05-13 00:26:09.721185704 +0200
@@ -472,7 +472,6 @@
static void *close_dumpfile(void)
{
- vcd_work_terminate();
lxt2_wr_close(dump_file);
dump_file = NULL;
return NULL;

View file

@ -1,13 +1,13 @@
# Template file for 'iverilog'
pkgname=iverilog
version=10.3
revision=1
revision=2
wrksrc="${pkgname}-${version/./_}"
build_style=gnu-configure
hostmakedepends="automake flex gperf"
makedepends="readline-devel zlib-devel"
short_desc="Verilog simulation and synthesis tool"
maintainer="Orphaned <orphan@voidlinux.org>"
maintainer="Johannes <johannes.brechtmann@gmail.com>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="http://iverilog.icarus.com/"
distfiles="https://github.com/steveicarus/iverilog/archive/v${version/./_}.tar.gz"