Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion IO ops with non PIO PMCs [was: Re: Parrot Segfault]

Newsgroups: perl.perl6.internals
Path: g2news1.google.com!news3.google.com!newsfeed.stanford.edu!nntp.perl.org
Return-Path: <par...@jensbeimsurfen.de>
Mailing-List: contact perl6-internals-h...@perl.org; run by ezmlm
Delivered-To: mailing list perl6-intern...@perl.org
Received: (qmail 12989 invoked from network); 29 Jun 2005 14:56:05 -0000
Received: from x1a.develooper.com (HELO x1.develooper.com) (216.52.237.111)
  by lists.develooper.com with SMTP; 29 Jun 2005 14:56:05 -0000
Received: (qmail 27651 invoked by uid 225); 29 Jun 2005 14:56:05 -0000
Delivered-To: perl6-intern...@perl.org
Received: (qmail 27646 invoked by alias); 29 Jun 2005 14:56:05 -0000
X-Spam-Status: No, hits=-2.6 required=8.0
	tests=BAYES_00
X-Spam-Check-By: la.mx.develooper.com
Received-SPF: pass (x1.develooper.com: domain of par...@jensbeimsurfen.de designates 217.160.214.17 as permitted sender)
Received: from blao.de (HELO mail.blao.de) (217.160.214.17)
    by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Wed, 29 Jun 2005 07:56:02 -0700
Received: from vpn-137-11.vpn.uni-wuppertal.de (blao.de [217.160.214.17])
	by mail.blao.de (Postfix) with ESMTP id BA3393880BB;
	Wed, 29 Jun 2005 16:56:22 +0200 (CEST)
To: Matt Fowles <uberm...@gmail.com>
Subject: IO ops with non PIO PMCs [was: Re: Parrot Segfault]
Date: Wed, 29 Jun 2005 16:56:00 +0200
User-Agent: KMail/1.7.2
References: <f2601a7f05062812506b7683f3@mail.gmail.com> <200506291354.19610.parrot@jensbeimsurfen.de> <f2601a7f0506290624f3e30f2@mail.gmail.com>
In-Reply-To: <f2601a7f0506290624f3e30f2@mail.gmail.com>
Cc: perl6-intern...@perl.org
MIME-Version: 1.0
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-ID: <200506291656.00436.parrot@jensbeimsurfen.de>
Approved: n...@nntp.perl.org
From: par...@jensbeimsurfen.de (Jens Rieks)

On Wednesday 29 June 2005 15:24, Matt Fowles wrote:
> t/pmc/io_1.pir
Ah, yes. This is a failing todo test. The useage of IO ops on non IO-PMCs is 
not specced yet.

jens


#6  0x08128193 in PIO_putps (interpreter=0x826e050, pmc=0x82a93e8,
s=0x843c7d8) at io/io.c:1011

1006    INTVAL
1007    PIO_putps(theINTERP, PMC *pmc, STRING *s)
1008    {

PMC_struct_val is not a valid ParrotIOLayer for non PIO-PMCs:

1009        ParrotIOLayer *l = PMC_struct_val(pmc);
1010        ParrotIO *io = PMC_data0(pmc);

The next assertion fails in most (but not all) cases:
1011        assert((unsigned int)l != 0xdeadbeefU);
1012        assert(io != 0);
1013        return PIO_write_down(interpreter, l, io, s);
1014    }