Re: [Rd] malloc error in tab-completion: OS X

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sun, 07 Oct 2012 20:00:12 +0100

I would check the version of libreadline you compiled against. Tab completion involves that library.

It works correctly for all my local builds, and nothing in that area in the R sources has changed for a long time. I believe I am using http://r.research.att.com/libs/readline-5.2-12-darwin8-bin4.tar.gz . And this is on Lion whereas Simon is building on Leopard (AFAIK).

On 07/10/2012 16:34, R. Michael Weylandt wrote:
> I've just built R-devel (r60889) from source on my Mac OS X 10.6.8
> using gcc from Xcode and gfortran from Simon. I didn't use all the
> recommended configuration flags only
>
> ./configure && make
>
> Still, I seem to pass "make check" and
> "make test-Segfault" in the tests directory with no problem, but the
> following leads
> to a persistent error + instant abort.
>
> 1) Start R
> 2) Type "tools::"
> 3) Tab to attempt to auto-complete
>
> resulting in some variation on
>
> mweylandt-laptop:~ michaelweylandt$ rDEVEL/bin/R --vanilla -q
>> tools::R(44436) malloc: *** error for object 0x1006d8700: incorrect checksum for freed object - object was probably modified after being freed.
> *** set a breakpoint in malloc_error_break to debug
> Abort trap
>
> at which point hitting <RET> drops me back into bash. This seems to
> only occur with tools and no other packages (that I've found). It also
> occurs whether tools has been library()'d or not, but sometimes it
> takes two tabbings.
>
> My compiler info follows
>
> mweylandt-laptop:~ michaelweylandt$ gcc --version
> i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
> Copyright (C) 2007 Free Software Foundation, Inc.
>
> mweylandt-laptop:~ michaelweylandt$ gfortran --version
> GNU Fortran (GCC) 4.2.1 (Apple Inc. build 5664)
> Copyright (C) 2007 Free Software Foundation, Inc.
>
> I do think that it's only a problem with my local build, as I can't
> replicate with Simon's nightly builds (
http://r.research.att.com/),
> which are at r60887 currently. Is there anything else I should check
> with my setup? I don't see any advice on this particular issue in the
> R installation manual, but I easily could have overlooked it.
>
> Thanks,
> Michael
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sun 07 Oct 2012 - 19:01:27 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 08 Oct 2012 - 13:30:46 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive