search for: r_popen

Displaying 4 results from an estimated 4 matches for "r_popen".

Did you mean: r_fopen
2009 Oct 15
0
R segfault in fgets from do_system under high memory use (PR#14008)
...9;d" message there, which I think means that do_system is passing a 0 address to fgets, which is then causing the segfault. Looking at the fgets all in src/unix/sys-unix.c, the buf argument is statically allocated so I don't see how it could be 0. fp, the 3rd argument to fgets, is set by R_popen(). So, I think the system popen() call is failing to fork or allocate memory or whatever it's trying to do, and is returning a NULL. gdb and Valgrind output from the failure follow: ------------------------------------------------------------ Program received signal SIGSEGV, Segmentation fau...
2004 Feb 28
1
Line splitting in system() (PR#6624)
...If the Index: unix/sys-unix.c =================================================================== RCS file: /cvs/R/src/unix/sys-unix.c,v retrieving revision 1.39 diff -u -r1.39 sys-unix.c --- unix/sys-unix.c 2003/09/10 11:45:29 1.39 +++ unix/sys-unix.c 2004/02/28 15:20:15 @@ -215,7 +215,8 @@ fp = R_popen(CHAR(STRING_ELT(CAR(args), 0)), x); for (i = 0; fgets(buf, INTERN_BUFSIZE, fp); i++) { read = strlen(buf); - if (read < INTERN_BUFSIZE) buf[read - 1] = '\0'; /* chop final CR */ + if (read>0 && buf[read-1] == '\n') + buf[read - 1] = '\0'; /* c...
2003 Oct 08
1
R-1.8.0 is released
...n. o Internal support for executing byte compiled code has been added. A compiler for producing byte compiled code will be made available separately and should become part of a future R release. o On Unix-like systems calls to the popen() and system() C library functions now go through R_popen and R_system. On Mac OS X these suspend SIGALRM interrupts around the library call. (Related to PR#1140.) UTILITIES o R CMD check accepts "ORPHANED" as package maintainer. Package maintainers can now officially orphan a package, i.e., resign from maintaining a package. o...
2003 Oct 08
1
R-1.8.0 is released
...n. o Internal support for executing byte compiled code has been added. A compiler for producing byte compiled code will be made available separately and should become part of a future R release. o On Unix-like systems calls to the popen() and system() C library functions now go through R_popen and R_system. On Mac OS X these suspend SIGALRM interrupts around the library call. (Related to PR#1140.) UTILITIES o R CMD check accepts "ORPHANED" as package maintainer. Package maintainers can now officially orphan a package, i.e., resign from maintaining a package. o...