linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
To: Ramsay Jones <ramsay@ramsayjones.plus.com>
Cc: Sparse Mailing-list <linux-sparse@vger.kernel.org>,
	Christopher Li <sparse@chrisli.org>,
	Dibyendu Majumdar <mobile@majumdar.org.uk>
Subject: Re: sparse-next assertion failures on cygwin
Date: Tue, 7 Mar 2017 07:35:59 +0100	[thread overview]
Message-ID: <20170307063558.4itvt4mh327py6ls@macpro.local> (raw)
In-Reply-To: <5227848f-5c01-c250-84ec-27f5f6e2a67c@ramsayjones.plus.com>

On Mon, Mar 06, 2017 at 10:17:36PM +0000, Ramsay Jones wrote:
> Hi Luc, Christopher,

Hi,

> ...
> 
> So, this looks like a cygwin specific toolchain problem. I also assumed that
> the 'backend/loop.c' test had the same problem (but I admit to never having
> checked properly!).
> 
> ...
> 
> So, again, this seems like a cygwin specific llvm tool problem.
> 
> ...
>    
>         TEST     Loops (backend/loop.c)
>    error: actual error text does not match expected error text.
>    error: see backend/loop.c.error.* for further investigation.
>    --- backend/loop.c.error.expected	2017-03-06 21:57:27.695953300 +0000
>    +++ backend/loop.c.error.got	2017-03-06 21:57:30.636386100 +0000
>    @@ -0,0 +1,2 @@
>    +assertion "ctype" failed: file "sparse-llvm.c", line 312, function: val_to_value
>    +.././sparsec: line 35:  8900 Aborted                 (core dumped) $DIRNAME/sparse-llvm $SPARSEOPTS > $TMPLLVM

That's surprising as it appears that you have linearized code that is
different that what we have on Linux (one of the type/symbol is NULL).

It whould be very interesting to:
1) show the result of test-linearize on the file
2) replace the assert with a check followed with a dump of the
   offending pseudo (show_pseudo()) and ideally the corresponding
   instruction (show_instruction()).

> Note that 'backend/loop2.c' now also fails and, with the exception of
> the 'backend/hello.c' test, they now fail with an assert.

Odd.
 
> I don't have time to look into this further tonight (I'm guessing that
> you are not seeing this on linux), so I just wanted to let you know
> about it.
> 
> ATB,
> Ramsay Jones

No, nothing like that on Linux.
Dibyendu, are you seeing something like this on your environment?

Thanks to reporting this, alas as such I can't really do something
about it.


-- Luc Van Ooostenryck

  reply	other threads:[~2017-03-07  7:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-06 22:17 sparse-next assertion failures on cygwin Ramsay Jones
2017-03-07  6:35 ` Luc Van Oostenryck [this message]
2017-03-07  7:34   ` Dibyendu Majumdar
2017-03-08  1:38   ` Ramsay Jones
2017-03-08  2:23     ` Ramsay Jones
2017-03-08  7:07     ` Luc Van Oostenryck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170307063558.4itvt4mh327py6ls@macpro.local \
    --to=luc.vanoostenryck@gmail.com \
    --cc=linux-sparse@vger.kernel.org \
    --cc=mobile@majumdar.org.uk \
    --cc=ramsay@ramsayjones.plus.com \
    --cc=sparse@chrisli.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).