Displaying 20 results from an estimated 1233 matches for "getenv".
Did you mean:
getent
2013 May 23
4
[LLVMdev] Usage of getenv() inside LLVM and thread safety
Hello,
In Rubinius we're seeing an occasional crash inside LLVM that always happens inside getenv(), which is used for example when creating a MCContext (inside lib/MC/MCContext.cpp, it checks getenv("AS_SECURE_LOG_FILE")).
The problem is that getenv() and friends aren't thread safe and Rubinius provides a multithreaded system. We can relatively easily get locking setup around th...
2013 May 23
0
[LLVMdev] Usage of getenv() inside LLVM and thread safety
Right. glibc's amusing stance is that you setenv/putenv are not thread
safe, but getenv is. I assume Ruby exposes setenv and therefore simply not
calling setenv isn't an option.
Would it solve your problems if all getenv() calls happened at
cl::ParseCommandLineOptions() time?
On Thu, May 23, 2013 at 9:49 AM, Dirkjan Bussink <d.bussink at gmail.com>wrote:
> Hello,
>...
2023 Jan 31
2
Sys.getenv(): Error in substring(x, m + 1L) : invalid multibyte string at '<ff>' if an environment variable contains \xFF
Tomas,
I think you're not addressing the actual issue which is a clear regression in Sys.getenv() [because it used to work and still works for single env var, but not a list] and the cryptic error due to that regression (caused by changes in R-devel). So in either case, Sys.getenv needs fixing (i.e., this should really go to the bugzilla). Its behavior is currently inconsistent.
The quoted P...
2011 Jun 10
2
[LLVMdev] [VMKit] Bug in J3 User.Name detection
...Runtime environment for my student project.
While doing so I stumbled upon a bug in the implementation of
lib/J3/Classpath/ClasspathVMSystemProperties.inc
The current version first tries to get the username by checking the
LOGNAME environment variable. If this is NULL it then checks
tmp = getenv("USERNAME");
if (!tmp) tmp = getenv("LOGNAME");
else if (!tmp) tmp = getenv("NAME");
else if (!tmp) tmp = "";
setProperty(vm, prop, "user.
diff a/ClasspathVMSystemProperties.inc
b/ClasspathVMSystemProperties.inc
118,119c118,119
<...
2023 Jan 30
2
Sys.getenv(): Error in substring(x, m + 1L) : invalid multibyte string at '<ff>' if an environment variable contains \xFF
/Hello.
SUMMARY:
$ BOOM=$'\xFF' LC_ALL=en_US.UTF-8 Rscript --vanilla -e "Sys.getenv()"
Error in substring(x, m + 1L) : invalid multibyte string at '<ff>'
$ BOOM=$'\xFF' LC_ALL=en_US.UTF-8 Rscript --vanilla -e "Sys.getenv('BOOM')"
[1] "\xff"
BACKGROUND:
I launch R through an Son of Grid Engine (SGE) scheduler, where the R
pro...
2011 Jun 10
0
[LLVMdev] [VMKit] Bug in J3 User.Name detection
...etting a default username of "" fails, because the else paths are only
taken when there inside if condition is false anyways. The elses should
not be there but instead each method should be used until a username is
returned.
lib/J3/Classpath/ClasspathVMSystemProperties.inc
tmp = getenv("USERNAME");
if (!tmp) tmp = getenv("LOGNAME");
else if (!tmp) tmp = getenv("NAME");
else if (!tmp) tmp = "";
The proper way to do this would be
tmp = getenv("USERNAME");
if (!tmp) tmp = getenv("LOGNAME");
if (!tmp) tmp = getenv(&...
2009 Dec 01
1
LD_PRELOAD temporary patch
I've used that patch to close the hole. This patch is temporary and doesn't fix real trouble maker - problem in new version in getenv() (after 6.3 it got changed to something monstrous and non-working right if environment has only one variable), hope it will get fixed soon.
*** rtld.c.orig Tue Dec 1 16:55:13 2009
--- rtld.c Tue Dec 1 16:55:55 2009
***************
*** 357,374 ****
* is called. If any child process...
2023 Jan 31
1
Sys.getenv(): Error in substring(x, m + 1L) : invalid multibyte string at '<ff>' if an environment variable contains \xFF
...t;>
>> In general, what about behaving close to "old R" and replace all such
>> strings by NA_character_ (and typically raising one warning)?
>> This would keep the result a valid character vector, just with some NA entries.
>>
>> Specifically for Sys.getenv(), I still think Simon has a very
>> valid point of "requiring" (of our design) that
>> Sys.getenv()[["BOOM"]] {double `[[`} should be the same as
>> Sys.getenv("BOOM")
>>
>> Also, as typical R user, I'd definitely want to be able t...
1998 Nov 24
0
source/client/client.c : redundant calls to getenv()
Another small problem in 2.0.0beta2: around line 1968, getenv() is called
three times, with the same argument. The glibc manual says the memory zone
returned by getenv() may be clobbered on non-glibc systems by other calls
to getenv(), but there are no such calls in-between. I suggest to modify
this code as :
line 1924 : char *p, *user;
line 1968 :
if ((u...
2013 May 23
0
[LLVMdev] Usage of getenv() inside LLVM and thread safety
...oo detrimental to performance here, since MCContext objects shouldn't be
created too often.
On Thu, May 23, 2013 at 9:49 AM, Dirkjan Bussink <d.bussink at gmail.com>wrote:
> Hello,
>
> In Rubinius we're seeing an occasional crash inside LLVM that always
> happens inside getenv(), which is used for example when creating a
> MCContext (inside lib/MC/MCContext.cpp, it checks
> getenv("AS_SECURE_LOG_FILE")).
>
> The problem is that getenv() and friends aren't thread safe and Rubinius
> provides a multithreaded system. We can relatively easily get...
2011 Apr 30
1
Sys.getenv at startup is not working properly
Hello,
when using
Sys.getenv() during startup-phase (.First or .Rprofile)
to get the env-variables
COLUMNS as well as HOST I get empty strings.
After the startup is done, when asking via Sys.getenv()
by hand, COLUMNS is set (but HOST is not, even "hostname" on the shell gives me
a correct answer).
At the moment my...
2014 Apr 18
3
Can the output of Sys.getenv() be improved?
Within an R session, type Sys.getenv() will list all the environment variables, but each one of them occupies about a page, so scrolling to find one is difficult. Is this because I don't know how to use it or something could be improved? Usually I'm not sure the exact name of a variable but want to look it up. Recently I insta...
2001 Jul 12
1
Sys.getenv
I am running R-1.3.0 on Solaris 8:
Under Solaris I do
setenv dendro_us hoffmann
echo $dendro_us gives back:
hoffmann
which is correct.
When in R I do:
Sys.getenv("dendro_us") I get
dendro_us
""
which is NOT correct:
Inverse effect (taken from help of Sys.getenv)
Under R:
print(Sys.putenv("R_TEST"="testit", ABC=123))
[1] TRUE TRUE
Sys.getenv("R_TEST") gives back:
R_TEST
"testit"
wh...
2020 Nov 02
6
unusual use of getenv
Hi folks
I noticed something interesting when debugging a program that uses llvm
for JIT compilation.
Running `ltrace` surfaced a number of `getenv("bar")` calls coming from
llvm. It turns out these are not "real" `getenv` calls, but are an
optimization "do nothing" escape hatch which have been in
`llvm/include/llvm/LinkAllPasses.h` [for over 15years](1) - apparently
as a way to prevent the compiler eliminating sy...
2018 Sep 06
2
Environment variables
Ok, thanks! I'm not dealing with UTF-8 so I don't think Process::GetEnv
will work. I was looking for something that caches calls to getenv so
checks could be put into tight(-ish) loops without too much performance
impact.
Would such a utility be of interest to the community?
-David
Reid Kleckner via llvm-dev <llvm-dev at lists.llvm.org...
2011 Nov 15
3
getenv() in plugin not working
...>, mpid=4018, TLS
server dovecot: imap(<snip>: Error: DRAC: IP environment not given
I traced the "IP environment not given" to the drac.c plugin file, and the code is pretty simple:
void drac_init(void)
{
const char *ip_str;
struct ip_addr ip;
ip_str = getenv("IP");
if (ip_str == NULL)
i_error("DRAC: IP environment not given");
Is there anything special that needs to be done for getenv("IP") to report the login IP? I tried to put getenv("RIP") for remote ip and even getenv("USER&qu...
2000 Sep 09
0
2.2.0p1 PATCH: ssh/scp/slogin will invoke ssh-askpass
...ification for the authentication key. */
public = key_new(KEY_RSA);
@@ -244,7 +246,15 @@
snprintf(buf, sizeof buf, "Enter passphrase for RSA key '%.100s': ",
comment);
if (!options.batch_mode)
- passphrase = read_passphrase(buf, 0);
+ if (!interactive && getenv("DISPLAY")) {
+ if (getenv(SSH_ASKPASS_ENV))
+ askpass = getenv(SSH_ASKPASS_ENV);
+ else
+ askpass = SSH_ASKPASS_DEFAULT;
+ passphrase = ssh_askpass(askpass, buf);
+ } else {
+ passphrase = read_passphrase(buf, 0);
+ }
else {
debug("Will not query passp...
2012 Mar 08
2
Cannot change location of tempdir()
...eds to write to a temporary file, in the
directory given by tempdir(). I want to change this from the standard
one, as the file is too large for the drive. However, tempfile() doesnt
seem to respect the environment variables when I change them with
Sys.setenv(). In a fresh R-session:
> Sys.getenv("TMP")
[1] "C:\\Users\\skoiejo\\AppData\\Local\\Temp"
> Sys.setenv(TMP = "e:\\Temp\\Rtmp")
> Sys.getenv("TMP")
[1] "e:\\Temp\\Rtmp"
> tempfile()
[1] "C:\\Users\\skoiejo\\AppData\\Local\\Temp\\Rtmp2tvQ7U\\file499a5987"
# I hav...
1999 Sep 29
1
getenv() can't differentiate "defined but empty" and "undefined"
getenv(<varname>) currently returns ""
if the <varname> is undefined.
However, if <varname> is defined but empty,
getenv(<varname>) still only returns "".
I think this is quite unfortunate
but consistent with the prototype.
---
I'd propose to change t...
2017 Aug 25
2
getOption() versus Sys.getenv
Hi there,
I am trying to distinguish between getOption() and Sys.getenv(). My
understanding is that these are both used to set values for variables.
getOption is set something like this: option("var" = "A"). This can be
placed in an .Rprofile or at the top of script. They are called like this
getOption("var").
Environmental variables are...