This repository was archived by the owner on Jun 13, 2018. It is now read-only.
Description I have an expression causing crash in gsl.
Example project
<main name = "name" service = "1">Name
<install type = "systemd-tmpfiles" />
<install type = "config" name = "name.cfg.example" />
</main>
diff --git a/zproject.gsl b/zproject.gsl
index cb9206f..13c07fe 100644
--- a/zproject.gsl
+++ b/zproject.gsl
@@ -69,6 +69,8 @@ project->license. ?= "Copyright (c) the Authors"
project.has_main = (count (main) > 0)
project.exports_classes = (count (class, !defined (class.private)) > 0)
+project.has_install = (count (main, (count (main.install) > 0)) > 0)
+echo "project.has_install=$(project.has_install)"
project.generated_warning_header ?= "\
################################################################################
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
Then running gsl file.xml
Clean-memory assertion failed - <Unknown> (0)
Details are in memtrace.xml
Aborted (core dumped)
(gdb) bt
#0 0x00007fec0bafb8d7 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#1 0x00007fec0bafccaa in __GI_abort () at abort.c:78
#2 0x000000000044b4a3 in mem_assert_ ()
#3 0x0000000000404227 in main ()
cat memtrace.xml
<?xml version="1.0"?>
<transaction>
<block index="0" size="136" file="<Unknown>" line="0" pointer="0x1a1e180" />
</transaction>
Reactions are currently unavailable
I have an expression causing crash in gsl.
Example project
Then running gsl file.xml