Displaying 20 results from an estimated 4000 matches similar to: ".C(..., DUP=FALSE) memory costs depending on input size?"
2001 Mar 22
1
lazy evaluation and DUP=F
I am having some difficulty understanding the implication of lazy evaluation mixed
with DUP=F in a .Fortran call. In qr.qty from base DUP is not used as an argument so
defaults to T. I am calling qr.qty with a very large array and would like to set
DUP=F in the .Fortran call so that qr.qty would be defined as copied below. Is there
some risk that a variable used as the argument in the original
1998 Nov 26
1
Saving memory usage -- .C(....., DUP = FALSE) danger?
Just found out [R 0.63, standard -v -n] :
> rm(list=ls())
> gc()
free total
Ncells 96538 200000
Vcells 214008 250000
> hist(runif(50000))
Error: heap memory (1953 Kb) exhausted [needed 390 Kb more]
which is a bit astonishing given that I still have room for 214000 double's
> u1 <- runif(50000)
> u2 <- runif(50000)
> gc()
2017 Oct 09
5
Why dup()?
Hello all,
My scripts, which read stdout from ssh, weren't seeing EOF from the
remote session.? It was being sent, but lost.? I tracked it down to the
following code, in ssh.c, at ssh_session2_open:
??????? if (stdin_null_flag) {
??????????????? in = open(_PATH_DEVNULL, O_RDONLY);
??????? } else {
??????????????? in = dup(STDIN_FILENO);
??????? }
??????? out = dup(STDOUT_FILENO);
2017 Oct 20
3
Why dup()?
I've been using ssh without it duping stdout and stderr, and had no
problems.? I think this change should be made to the master source.
WHAT IS THE PROBLEM WITH SSH RIGHT NOW?
It duplicates FILENO_STDOUT and FILENO_STDERR, thus there are two
descriptors for each of these files.? When the remote program closes its
stdout or stderr, the remote sshd sends the appropriate message to the
local
2000 Sep 07
1
.C and DUP=TRUE versus .Call
Hi Everyone,
I have a piece of C code that uses R_alloc, and so I set DUP=TRUE in the
call using ".C". As I understand it this takes a copy of each object
passed to my function. If these objects are large then this could be
expensive. My question is, if I rewrote the code to use .Call, would I
avoid this duplication by using the objects themselves (they are not
modified in the code)
2006 Aug 08
2
win32 eventlog dup
That''s weird. Line 296 is just a call to FormatMessage().
Folks on the mailing list - could this be a wide character issue? Buffer
too small maybe?
Regards,
Dan
Pe?a wrote:
> forgot:
>
> it segfaults on the win2k3 server (domain controller).
>
> it has _not_ segfault on my winxp pro though.
>
>
>
> # -----Original Message-----
> # From: Pe?a, Botp
2014 Jun 19
1
[PATCH] nouveau: dup fd before passing it to device
nouveau screens are reused for the same device node. However in the
scenario where we create screen 1, screen 2, and then delete screen 1,
the surrounding code might also close the original device node. To
protect against this, dup the fd and use the dup'd fd in the
nouveau_device. Also tell the nouveau_device that it is the owner of the
fd so that it will be closed on destruction.
Also make
2009 Jul 20
2
Hitting unknown error with "can't dup NilClass"
Hi,
My system has been encounter this problem, and I couldn''t find
solution after debugging. My scenario is stated below:
class user
has_many :posts
has_many :comments
end
class post
belongs_to :user
has_many :comments, :as => :commentable
end
class comment
belongs_to :post
belongs_to :user
end
For this case, I am trying to retrieve each post''s comment
2001 Nov 06
4
Failed to dup/close : The descriptor is a file, not a socket
I am getting this error on a Win98SE pc, but not on WinNT4 or Linux Redhat
7.1 or 7.2.
Failed to dup/close : The descriptor is a file, not a socket
The command I used was
rsync -e ssh gas.exe 10.105.50.180:src/
It works like I said on NT4 and from my Linux pc. I have cygwin installed
on the win98 and NT. Rsync is version 2.4.6 Is it just because Win9x
SU**s?
Also where can I get a list of
2017 Oct 13
2
Why dup()?
On 13/10/17 16:22, Damien Miller wrote:
> At a minimum, I think we'd have to dup2 a fd to /dev/null to
> STDOUT_FILENO so writes to stdout (e.g. from ill-behaved
> libraries) have somewhere to go.
Would that really be useful?? Output from Ill-behaved libraries,
written fd 1, already go to the same place.? Don't forget, dup does
not create a new file, it creates a duplicate
2005 Aug 08
1
modifying argument of a .C call (DUP=FALSE)
I have a huge matrix on which I need to do a simple (elementwise)
transformation. Two of these matrices cannot fit in the memory, so I cannot
do this in R.
I thought of writing some C code to do this and calling it using .C with
DUP=FALSE. All I need is a simple for loop that replaces elements with
their new value, something like
void transform(double *a, int *lengtha) {
int i;
for (i=0;
2009 Aug 19
1
[PATCH] Correct checks for dup failure in guestfs_launch
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
-------------- next part --------------
>From 8f1b06f64807239d4b4c923af4db8626a866ff6f Mon Sep 17
2012 May 21
2
Error : can't dup NilClass, in Heroku
Hi,
The application is deployed on Heroku, is based on Ruby 3.2.1 and Rails
1.9.2. Sometimes a function of my props starts throwing this error "
StringUtils:dateTimeFromString, str , *can''t dup NilClass*" and I don''t
understand the cause. it''s my function:
require ''time''
module StringUtils
2006 Mar 13
2
panic: ffs_valloc: dup alloc
I get the above panic after nfs clients attach to this nfs server and
being read/write ops on it after an unclean shutdown. I've fsck'ed the
fs, and it marks it as clean, but I get this every time. It's an NFS
share of a GEOM stripe (about 2TB).
mode = 0100600, inum = 58456203, fs = /mnt
panic: ffs_valloc: dup alloc
I do have dumps from two crashes so far.
This is
2002 Apr 29
1
SSH client, dup, pty.
Hey,
I am hoping that some one on this list may be able to help me.
I started investigate the possibility of forking a process, the child then
attach to a pty, dup std[in|out] to the pty, then exec the ssh client.
For some reason, the ssh client still prompted straight to stdin and
stdout rather than through the pty that I created.
There seem to be a few issues with this. Can someone tell
2005 Jun 16
1
MeetMe ERROR "Unable to dup channel"
I would us Meetme for conferance SIP-->SIP fist.
my Meetme.conf:
[rooms]
conf => 9999
my extensions.conf:
exten => 9999,1,MeetMe(9999)
But :
== Parsing '/etc/asterisk/meetme.conf': Found
Jun 16 10:33:22 WARNING[12100]: chan_zap.c:916 zt_open: Unable to open
'/dev/zap/pseudo': No such file or directory
Jun 16 10:33:22 ERROR[12100]: chan_zap.c:6969 chandup: Unable
2006 Apr 08
1
DUP! on ping reply
Hello List,
I'm running a ping command to monitor our connection to the Internet.
Around yesterday, I was getting a lot of (DUP!) text on the replies.
Would anyone know what that means?
--
Stand before it and there is no beginning.
Follow it and there is no end.
Stay with the ancient Tao,
Move with the present.
2010 Jul 31
4
Exception: can't dup Symbol
Hey everybody,
I''m trying to test a little piece of code I wrote, and I get the
following error:
Exception: can''t dup Symbol
It happens in the following line: try_to_login @valid_user, :remember_me
=> "1",
where the function try_to_login is:
def try_to_login(user, options = {})
user_hash = {:screen_name => user.screen_name, :password =>
user.password}
2017 Oct 14
2
Why dup()?
On 14/10/17 07:44, Damien Miller wrote:
> On Fri, 13 Oct 2017, David Newall wrote:
>> On 13/10/17 16:22, Damien Miller wrote:
>> > At a minimum, I think we'd have to dup2 a fd to /dev/null to
>> > STDOUT_FILENO so writes to stdout (e.g. from ill-behaved
>> > libraries) have somewhere to go.
>>
>> Would that really be useful?? Output from
2009 Jun 15
4
applying a patch (select-dup.diff) to wine to fix TF2
I really feel like a n00b posting this, but I can't for the life of me find how to apply this patch. http://bugs.winehq.org/attachment.cgi?id=21763&action=edit
One of the Steam updates broke TF2, and according to the comments in the bug tracker this should fix it. I just have idea what to do with the file. Also, my wine setup isn't like most peoples. I compile wine from source and