<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/coan2/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/coan2/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 08 Sep 2025 15:31:14 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/coan2/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>Malformed macro parameter list </title><link>https://sourceforge.net/p/coan2/bugs/97/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have a case where in the source file:&lt;/p&gt;
&lt;h1 id="h-if-some_macro8-1"&gt;if !SOME_MACRO(8, 1)&lt;/h1&gt;
&lt;h1 id="h-endif"&gt;endif&lt;/h1&gt;
&lt;p&gt;When I attempt to execute:&lt;br/&gt;
coan.exe source - DSOME_MACRO(8,1)=1 file.c&lt;/p&gt;
&lt;p&gt;The tool reports:&lt;br/&gt;
coan.exe: while parsing options: error 0x00811: Malformed macro parameter list for symbol " SOME_MACRO "&lt;br/&gt;
coan.exe: while parsing options: progress 0x02101: Completed with errors, exit code 0x04&lt;/p&gt;
&lt;p&gt;When I attempt to execute:&lt;br/&gt;
coan.exe source - DSOME_MACRO=1 file.c&lt;/p&gt;
&lt;p&gt;The tool reports:&lt;br/&gt;
error 0x00812: "SOME_MACRO" takes 0 arguments; 2 provided&lt;br/&gt;
coan.exe: progress 0x02101: Completed with errors, exit code 0x04&lt;br/&gt;
coan.exe: info 0x02201: 1 out of 1 input files were reached; 0 files were not reached&lt;br/&gt;
coan.exe: info 0x02202: 0 out of 1 files reached were valid; 1 were abandoned due to parse errors&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Winestock</dc:creator><pubDate>Mon, 08 Sep 2025 15:31:14 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net6f0be6c3605915eac848283d325be18c1863a6db</guid></item><item><title>cannot compile with gcc8 on a pi.</title><link>https://sourceforge.net/p/coan2/bugs/96/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;On a PI, using &lt;br/&gt;
    gcc (Raspbian 8.3.0-6+rpi1) 8.3.0&lt;br/&gt;
I cannot compile because of an error:&lt;br/&gt;
    citable.cpp:71:14: error: call to member function 'atoff' is ambiguous&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">david collier</dc:creator><pubDate>Tue, 25 Jul 2023 14:24:24 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netc37032fa38a14df44a02b8831f1074f9768ae51b</guid></item><item><title>#95 configure.ac conaints a not C99 compliant check. </title><link>https://sourceforge.net/p/coan2/bugs/95/?limit=25#32a2</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Bug opened as part of this effort:&lt;br/&gt;
&lt;a href="https://fedoraproject.org/wiki/Toolchain/PortingToModernC" rel="nofollow"&gt;https://fedoraproject.org/wiki/Toolchain/PortingToModernC&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pete Fordham</dc:creator><pubDate>Sun, 18 Dec 2022 07:14:18 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net12c4d684388902cededcb3025df9c691f85f157f</guid></item><item><title>configure.ac conaints a not C99 compliant check. </title><link>https://sourceforge.net/p/coan2/bugs/95/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;configure.ac conaints a not C99 compliant check. It relies on implicit int return type and implicit function declaration of exit. Easily fixed with the attached patch.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pete Fordham</dc:creator><pubDate>Sun, 18 Dec 2022 07:07:15 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net154233827388a6d55ded5bb5996407a12213d02f</guid></item><item><title>#94 #if 0 does not evaluate to false</title><link>https://sourceforge.net/p/coan2/bugs/94/?limit=25#7fe1</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="if-0"&gt;if 0&lt;/h1&gt;
&lt;p&gt;Remove this line&lt;/p&gt;
&lt;h1 id="endif"&gt;endif&lt;/h1&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Muir Rolfe</dc:creator><pubDate>Sun, 20 Jun 2021 02:14:29 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netfafe922123d88968f44d180c5750d46187240c73</guid></item><item><title>#if 0 does not evaluate to false</title><link>https://sourceforge.net/p/coan2/bugs/94/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="if-0-does-not-evaluate-to-false-and-so-the-lines-following-it-are-not-removed-it-is-not-possible-to-undefine-0"&gt;if 0 does not evaluate to false and so the lines following it are not removed. It is not possible to undefine '0'.&lt;/h1&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Muir Rolfe</dc:creator><pubDate>Sun, 20 Jun 2021 02:13:13 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net5614fc3ad24073c2e9771fb371a1b8b39a88a0f4</guid></item><item><title>please migrate tests from python2 to python3</title><link>https://sourceforge.net/p/coan2/bugs/93/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;due python2 end-of-life, can you please migrate all tests from python2 to python3 style?&lt;br/&gt;
thanks!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Filipe Rosset</dc:creator><pubDate>Sun, 24 Jan 2021 20:26:24 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net2091311f4771be9feec23a8cd16343551e21ffb2</guid></item><item><title>#61 `spin` command broken on OS X</title><link>https://sourceforge.net/p/coan2/bugs/61/?limit=25#1023</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;hi Mike,&lt;/p&gt;
&lt;p&gt;is this issue related to "can't create directory " followed by "The data is invalid"?&lt;br/&gt;
while using spin command.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Janani</dc:creator><pubDate>Mon, 15 Apr 2019 08:44:06 -0000</pubDate><guid isPermaLink="false">https://sourceforge.nete6ed48fc59dce27663f20284e5e20205c79a514e</guid></item><item><title>#92 Out of bounds error in expression parser</title><link>https://sourceforge.net/p/coan2/bugs/92/?limit=25#e2a5</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I can confirm this patch is working fine on Fedora. &lt;a href="https://bugzilla.redhat.com/show_bug.cgi?id=1626440" rel="nofollow"&gt;https://bugzilla.redhat.com/show_bug.cgi?id=1626440&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;today, coan looks almost dead upstream, maybe it's time to migrate to github and try to engage more people to this project?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Filipe Rosset</dc:creator><pubDate>Wed, 19 Sep 2018 15:30:21 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net58fd5d513cf10261eff3b9a59b794f7e957e0365</guid></item><item><title>Out of bounds error in expression parser</title><link>https://sourceforge.net/p/coan2/bugs/92/</link><description>&lt;div class="markdown_content"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&amp;gt; src/coan --version
coan, version 6.0.1 for 64 bit Unix/Linux(built Aug 27 2018,14:03:43)
coan: while parsing options: progress 0x02101: Completed, exit code 0x00
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;test0035.c fails on Fedora 28 because of an out of bounds error in the expression_parser. This error was discovered because Fedora 28 has added -D_GLIBCXX_ASSERTIONS flag (see &lt;a href="https://fedoraproject.org/wiki/Changes/HardeningFlags28" rel="nofollow"&gt;https://fedoraproject.org/wiki/Changes/HardeningFlags28&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Output from manually running the test case:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&amp;gt; src/coan source -DFOO1 -UFOO2 --verbose test_coan/test_cases/test0035.c
coan: progress 0x00105: Args: source -DFOO1 -UFOO2 --verbose test_coan/test_cases/test0035.c 
coan: progress 0x00102: Building input tree
coan: progress 0x00103: To do (1) "/home/nils/projekt/coan-6.0.1/test_coan/test_cases/test0035.c"
coan: progress 0x00104: 1 files to process
coan: progress 0x00101: Processing file (1) "/home/nils/projekt/coan-6.0.1/test_coan/test_cases/test0035.c"
/**ARGS: source -DFOO1 -UFOO2 */
/**SYSCODE: = 1 | 32 */
/usr/include/c++/8/bits/stl_vector.h:950: std::vector&amp;lt;_Tp, _Alloc&amp;gt;::const_reference std::vector&amp;lt;_Tp, _Alloc&amp;gt;::operator[](std::vector&amp;lt;_Tp, _Alloc&amp;gt;::size_type) const [with _Tp = expression_parser&amp;lt;parse_buffer&amp;gt;::deletion_code; _Alloc = std::allocator&amp;lt;expression_parser&amp;lt;parse_buffer&amp;gt;::deletion_code&amp;gt;; std::vector&amp;lt;_Tp, _Alloc&amp;gt;::const_reference = const expression_parser&amp;lt;parse_buffer&amp;gt;::deletion_code&amp;amp;; std::vector&amp;lt;_Tp, _Alloc&amp;gt;::size_type = long unsigned int]: Assertion '__builtin_expect(__n &amp;lt; this-&amp;gt;size(), true)' failed.
Aborted (core dumped)
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Backtrace:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff70fa5c1 in __GI_abort () at abort.c:79
#2  0x0000000000405d83 in std::__replacement_assert (
    __file=0x4876e0 "/usr/include/c++/8/bits/stl_vector.h", __line=950, 
    __function=0x488560 &amp;lt;std::vector&amp;lt;expression_parser&amp;lt;parse_buffer&amp;gt;::deletion_code, std::allocator&amp;lt;expression_parser&amp;lt;parse_buffer&amp;gt;::deletion_code&amp;gt; &amp;gt;::operator[](unsigned long) const::__PRETTY_FUNCTION__&amp;gt; "std::vector&amp;lt;_Tp, _Alloc&amp;gt;::const_reference std::vector&amp;lt;_Tp, _Alloc&amp;gt;::operator[](std::vector&amp;lt;_Tp, _Alloc&amp;gt;::size_type) const [with _Tp = expression_parser&amp;lt;parse_buffer&amp;gt;::deletion_code; _Alloc = std::allo"..., __condition=0x4876b0 "__builtin_expect(__n &amp;lt; this-&amp;gt;size(), true)")
    at /usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2389
#3  0x000000000042a971 in std::vector&amp;lt;expression_parser&amp;lt;parse_buffer&amp;gt;::deletion_code, std::allocator&amp;lt;expression_parser&amp;lt;parse_buffer&amp;gt;::deletion_code&amp;gt; &amp;gt;::operator[] (this=0x7fffffffc938, __n=39) at /usr/include/c++/8/bits/stl_vector.h:950
#4  0x00000000004295df in expression_parser&amp;lt;parse_buffer&amp;gt;::simplified[abi:cxx11]() const (this=0x7fffffffc8f0) at expression_parser.cpp:804
...
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The index i is outside the _deletions vector.&lt;/p&gt;
&lt;p&gt;The issue seems to be in the expression_parser::cut() member function. It sets _last_deletion to end, but end points one past the cut part. _last_deletion should be set to the index of rightmost cut character.&lt;/p&gt;
&lt;p&gt;Attaching patch which seems to fix the issue. make check passes after applying the patch.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nils Björklund</dc:creator><pubDate>Mon, 27 Aug 2018 13:52:02 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net0b46ffd1d4a6d93ddda0a2f35ceb0d4cf003e3bd</guid></item></channel></rss>