tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Commit 0c6adcb (tccgen: multi-dimensional vla: bug fixes)


From: Brian Callahan
Subject: [Tinycc-devel] Commit 0c6adcb (tccgen: multi-dimensional vla: bug fixes) causes segfaults on OpenBSD
Date: Wed, 16 Mar 2022 20:51:47 +0000

Hello TinyCC developers --

One of the three commits from today, 0c6adcb (tccgen: multi-dimensional
vla: bug fixes), causes tcc to segfault on OpenBSD.

Here is the test log:
```
------------ hello-exe ------------
Hello World
------------ hello-run ------------
Hello World
------------ libtest ------------
Hello World!
fib(32) = 2178309
add(32, 64) = 96
------------ libtest_mt ------------
running fib with mixed calls
  1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 10946
 (55 ms)
running fib in threads
  1 55 144 3 13 6765 377 21 34 5 2584 1597 10946 233 8 2 987 89 4181 610
 (49 ms)
running tcc.c in threads to run fib
 gmake[2]: *** [Makefile:95: libtest_mt] Segmentation fault (core dumped)
gmake[1]: *** [Makefile:83: all] Error 2
```

Commit ec5d942 (tccgen: accept array-size expressions in function
paramters) works OK. Also, applying commit 719d966 (tccgen: Allow struct
init from struct) directly on top of commit ec5d942 also works OK. It is
just commit 0c6adcb that is causing issues.

Please let me know if anything else is needed to help fix the issue.

Thanks.

~Brian



reply via email to

[Prev in Thread] Current Thread [Next in Thread]