From p.dalgaard at biostat.ku.dk  Sun Nov 20 23:02:35 2005
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: 20 Nov 2005 23:02:35 +0100
Subject: [Rd] mapply() gives seg fault (PR#8332)
In-Reply-To: <20051120210142.E3A62223A5@slim.kubism.ku.dk>
References: <20051120210142.E3A62223A5@slim.kubism.ku.dk>
Message-ID: <x2ek5bou4k.fsf@turmalin.kubism.ku.dk>

pinard at iro.umontreal.ca writes:

> --KsGdsel6WgEHnImy
> Content-Type: text/plain; charset=iso-8859-1; format=flowed
> Content-Disposition: inline
> Content-Transfer-Encoding: 8bit
> 
> Hi, people.  Wandering in R archives, and seeing the message attached 
> below, I noticed that:
> 
>    mapply(rep,times=1:4, MoreArgs=42)
> 
> still segfaults on R 2.2.0, and thought I should be a good citizen and 
> report it, even if I do not have an actual problem with this. :-)

Looks like Brian already fixed it in r-patched. Seems like this was
after your message, so I'd better skip the snide remark about how to
be an even better citizen.... ;-)

 
> > version
>          _                
> platform i686-pc-linux-gnu
> arch     i686             
> os       linux-gnu        
> system   i686, linux-gnu  
> status                    
> major    2                
> minor    2.0              
> year     2005             
> month    10               
> day      06               
> svn rev  35749            
> language R                
> 
> (By the way, in the output of "R.version", should all the spurious 
> whitespace be kept at end of lines?)
> 
> -- 
> Fran?ois Pinard   http://pinard.progiciels-bpi.ca
> 
> --KsGdsel6WgEHnImy
> Content-Type: message/rfc822
> Content-Disposition: inline
> 
> From: rpeng at jhsph.edu (Roger D. Peng)
> Date: Tue Oct 14 18:10:52 2003
> Subject: [R] mapply() gives seg fault
> In-Reply-To: <a06002007bbb1c91c2d44@[139.166.242.29]>
> References: <a06002007bbb1c91c2d44@[139.166.242.29]>
> Message-ID: <3F8C1E93.7030903 at jhsph.edu>
> 
> I get this too on the released version.  I guess the problem is that the 
> value passed to MoreArgs is not a list.  Maybe,
> 
> mapply(rep, times = 1:4, MoreArgs = list(42))
> 
> produces what you want?  At any rate, R shouldn't segfault so it looks 
> like bug somewhere.
> 
> -roger
> 
> Robin Hankin wrote:
> 
> > Hello everybody.
> >
> > I've been experimenting with mapply().  Does anyone else have problems 
> > with:
> >
> > R> mapply(rep,times=1:4, MoreArgs=42)
> >
> > (I get a seg fault).
> >
> > robin
> >
> >
> >
> > R> R.version
> >          _
> > platform powerpc-apple-darwin6.6
> > arch     powerpc
> > os       darwin6.6
> > system   powerpc, darwin6.6
> > status   beta
> > major    1
> > minor    8.0
> > year     2003
> > month    10
> > day      02
> > language R
> >
> >>
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> >
> 
> --KsGdsel6WgEHnImy--
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 

-- 
   O__  ---- Peter Dalgaard             ?ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



[Rd] mapply() gives seg fault (PR#8332)
Peter Dalgaard