[Rd] Help: R seg faults
Tue, 11 Jul 2000 18:10:32 +0100 (BST)
that's it. Configuring --without-readline avoids the problem. Will now get
a new version of readline and see if I can make it work. Can't figure out
which version of readline I have, though I found two identical copies of
the readline dir, one in /usr/include and one in /usr/local/include.
My system was a long time ago SuSE linux 6.1, but I have made many
changes, such as glibc, gcc, kernel.
Thanks again, Jan.
On Tue, 11 Jul 2000, Prof Brian D Ripley wrote:
> On Tue, 11 Jul 2000, Jan Kreft wrote:
> > Dear list,
> > I hope this is the right forum to ask. I have just downloaded and compiled
> > R, but I get a segfault after I start R.
> That segfault is from readline, not R itself.
> > make, make test/check, went OK.
> > My system is
> > linux-2.2.13
> > glibc-2.1.3
> > gcc 2.95.2
> > R-1.1.0
> and where did you get readline from? (Is this some Linux distribution?)
> > Here is a backtrace from gdb:
> > (gdb) file /usr/local/lib/R/bin/R.bin
> > Reading symbols from /usr/local/lib/R/bin/R.bin...done.
> > (gdb) run
> > Starting program: /usr/local/lib/R/bin/R.bin
> > R : Copyright 2000, The R Development Core Team
> > Version 1.1.0 (June 15, 2000)
> > R is free software and comes with ABSOLUTELY NO WARRANTY.
> > You are welcome to redistribute it under certain conditions.
> > Type "?license" or "?licence" for distribution details.
> > R is a collaborative project with many contributors.
> > Type "?contributors" for a list.
> > Type "demo()" for some demos, "help()" for on-line help, or
> > "help.start()" for a HTML browser interface to help.
> > Type "q()" to quit R.
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x400da7bc in _IO_fflush (fp=0x819ecd8) at iofflush.c:41
> > 41 result = _IO_SYNC (fp) ? EOF : 0;
> > (gdb) bt
> > #0 0x400da7bc in _IO_fflush (fp=0x819ecd8) at iofflush.c:41
> > #1 0x8122165 in rl_prep_terminal (meta_flag=0) at rltty.c:555
> > #2 0x811cb08 in _rl_callback_newline () at callback.c:76
> > #3 0x811cb4a in rl_callback_handler_install (prompt=0x4093c210 "> ", linefunc=0x80e8798 <readline_handler>) at callback.c:95
> > #4 0x80e89b5 in Rstd_ReadConsole (prompt=0x4093c210 "> ", buf=0xbfffeedc "", len=1024, addtohistory=1) at ../../../R-1.1.0/src/unix/sys-std.c:357
> > #5 0x80e6b2e in R_ReadConsole (prompt=0x4093c210 "> ", buf=0xbfffeedc "", len=1024, addtohistory=1) at ../../../R-1.1.0/src/unix/system.c:66
> > #6 0x8097d78 in R_ReplConsole (rho=0x40296338, savestack=0, browselevel=0) at ../../../R-1.1.0/src/main/main.c:128
> > #7 0x80985e2 in run_Rmainloop () at ../../../R-1.1.0/src/main/main.c:454
> > #8 0x8098620 in Rf_mainloop () at ../../../R-1.1.0/src/main/main.c:468
> > #9 0x80e715a in main (ac=0, av=0xbffff7f4) at ../../../R-1.1.0/src/unix/system.c:222
> Thanks for the detail, which enables me to guess at how to solve this....
> (1) configure with --without-readline and see if that works (it
> should, since make check does). You `just' lose the command-line history.
> (2) Compile the current readline sources yourself and use that, building
> from scratch. In so far as your spec looks like RH6.2 with gcc-2.95.2 added
> (from memory), that has a good chance to work as it did for me. It might
> matter that readline is compiled with the same compiler as R. (I know it
> should not, but RH6.2 seems to have some problems making dynamic libraries
> with the supplied egcs.)
> Brian D. Ripley, email@example.com
> 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 272860 (secr)
> Oxford OX1 3TG, UK Fax: +44 1865 272595
> r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !) To: firstname.lastname@example.org
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: email@example.com