Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-22 Thread Duncan Murdoch
On 21/09/2015 10:20 PM, Vinh Nguyen wrote: > On Mon, Sep 21, 2015 at 2:48 PM, Duncan Murdoch > wrote: >> On 21/09/2015 4:50 PM, Hervé Pagès wrote: >>> Hi, >>> >>> Note that one significant change to read.dcf() that happened since R >>> 3.0.2 is the addition of support

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-22 Thread Vinh Nguyen
On Tue, Sep 22, 2015 at 1:46 AM, Duncan Murdoch wrote: > However, Herve's second example does illustrate a bug I can reproduce: > one character out of 1 was read incorrectly. Could you please try > his final patch and see if it fixes your AIX problems? Just tried

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-22 Thread Duncan Murdoch
On 22/09/2015 9:22 AM, Vinh Nguyen wrote: > On Tue, Sep 22, 2015 at 1:46 AM, Duncan Murdoch > wrote: >> However, Herve's second example does illustrate a bug I can reproduce: >> one character out of 1 was read incorrectly. Could you please try >> his final patch and

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-22 Thread Duncan Murdoch
On 21/09/2015 4:50 PM, Hervé Pagès wrote: > Hi, > > Note that one significant change to read.dcf() that happened since R > 3.0.2 is the addition of support for arbitrary long lines (commit > 63281), which never worked: > >dcf <- paste(c("aa: ", rep(letters, length.out=1)), collapse="") >

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-21 Thread Vinh Nguyen
On Mon, Sep 21, 2015 at 2:48 PM, Duncan Murdoch wrote: > On 21/09/2015 4:50 PM, Hervé Pagès wrote: >> Hi, >> >> Note that one significant change to read.dcf() that happened since R >> 3.0.2 is the addition of support for arbitrary long lines (commit >> 63281), which

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-21 Thread Hervé Pagès
On 09/21/2015 02:48 PM, Duncan Murdoch wrote: On 21/09/2015 4:50 PM, Hervé Pagès wrote: Hi,at Note that one significant change to read.dcf() that happened since R 3.0.2 is the addition of support for arbitrary long lines (commit 63281), which never worked: dcf <- paste(c("aa: ",

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-21 Thread Vinh Nguyen
Here's an update: I checked the ChangeLog for R, and it seems like readDCF was changed in 3.0.2. I went on a whim and copied src/main/dcf.c from R 2.15.3 over to 3.2.2, and R compiled fine and install.packages now work for me. This is probably not ideal, but it at least makes R usable on AIX

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-21 Thread Duncan Murdoch
On 21/09/2015 1:49 PM, Vinh Nguyen wrote: > Here's an update: > > I checked the ChangeLog for R, and it seems like readDCF was changed > in 3.0.2. I went on a whim and copied src/main/dcf.c from R 2.15.3 > over to 3.2.2, and R compiled fine and install.packages now work for > me. > > This is

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-21 Thread Vinh Nguyen
Hi there, I just wanted to follow up on this readDCF issue with install.packages on AIX on R 3.*. I'm happy to help try potential solutions or debug if anyone could point me in the right direction. To re-cap, it appears readDCF is segfault'ing since R 3.* on AIX. This was not the case up until

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-21 Thread Hervé Pagès
Hi, Note that one significant change to read.dcf() that happened since R 3.0.2 is the addition of support for arbitrary long lines (commit 63281), which never worked: dcf <- paste(c("aa: ", rep(letters, length.out=1)), collapse="") writeLines(dcf, "test.dcf")

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-21 Thread Hervé Pagès
On 09/21/2015 01:50 PM, Hervé Pagès wrote: Hi, Note that one significant change to read.dcf() that happened since R 3.0.2 is the addition of support for arbitrary long lines (commit 63281), which never worked: dcf <- paste(c("aa: ", rep(letters, length.out=1)), collapse="")

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-21 Thread Duncan Murdoch
On 21/09/2015 4:50 PM, Hervé Pagès wrote: > Hi, > > Note that one significant change to read.dcf() that happened since R > 3.0.2 is the addition of support for arbitrary long lines (commit > 63281), which never worked: > >dcf <- paste(c("aa: ", rep(letters, length.out=1)), collapse="") >

[Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2014-11-11 Thread Vinh Nguyen
Dear list (re-posting from r-help as r-devel is probably more appropriate), I was able to successfully compile R on our AIX box at work using the GNU compilers following the instructions on the R Administration guide. The output can be seen at here