> From: Peter Dalgaard > > "Liaw, Andy" <[EMAIL PROTECTED]> writes: > > > > From: Peter Dalgaard > > > > > > "Liaw, Andy" <[EMAIL PROTECTED]> writes: > > > > > > > ** data > > > > ** moving datasets to lazyload DB > > > > ** inst > > > > ** preparing package for lazy loading > > > > /SFS/user/ry/liawand/R/Rbuild/bin/INSTALL[325]: 5677292 Illegal > > > > instruction(coredump) > > > > > > Illegal instruction? Sound like it is either a compiler error or a > > > stray pointer overwriting code or stack. Can you get a > handle on this > > > with a debugger? > > > > Thanks, Peter, but how do I do that? I know how to do that > to run R, but > > not how to run R CMD INSTALL under a debugger... > > Inside the INSTALL script, there's > > message " moving datasets to lazyload DB" > ## it is possible that data in a package will make use of the > ## code in the package, so ensure the package we have just > ## installed is on the library path. > echo "invisible(.libPaths(c(\"${lib}\", .libPaths()))); > tools:::data2LazyLoadDB(\"${R_PACKAGE_NAME}\", \"${lib}\")" | \ > R_DEFAULT_PACKAGES=NULL LANG=C "${R_EXE}" --vanilla > > /dev/null > > You could try replacing the --vanilla with -d gdb (or whichever > debugger is relevant). I suppose you'd have to send the commands to a > temp file rather than piping them and then within the debugger use > > run --vanilla < yourtempfile
OK, after re-building R with the debug flags, I don't think I'm getting anything useful. GDB gives me: gdb) run --vanilla < /ltmp/try.R Starting program: /SFS/user/ry/liawand/R/Rbuild/bin/exec/R --vanilla < /ltmp/try.R Error: [tcsetpgrp failed in terminal_inferior: Not owner] aix-thread resume: unknown pthread 19 aix-thread: fetch_registers: pthdb_pthread_context returned CALLBACK (gdb) bt Error: aix-thread: fetch_registers: pthdb_pthread_context returned CALLBACK and: Unable to Read Instructions at 0x90000000018c6d4 Anyone know what these means? Best, Andy > -- > O__ ---- Peter Dalgaard Blegdamsvej 3 > c/ /'_ --- Dept. of Biostatistics 2200 Cph. N > (*) \(*) -- University of Copenhagen Denmark Ph: > (+45) 35327918 > ~~~~~~~~~~ - ([EMAIL PROTECTED]) FAX: > (+45) 35327907 > > > ______________________________________________ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel