[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while
From: |
dezperado |
Subject: |
[Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb" |
Date: |
Mon, 17 Oct 2022 11:16:57 -0400 (EDT) |
Follow-up Comment #17, bug #61393 (project octave):
WRT setenv & putenv.
In librsb: since librsb-1.3.0.2, if setenv() is absent, putenv shall do the
job;
without it, librsb shall build and work, too.
A note on the putenv example https://hg.octave.org/mxe-octave/rev/86edd6018826
linked from https://savannah.gnu.org/bugs/index.php?61393#comment8 : at least
on my Linux'
`man putenv`, it says the strings one passes will be used also *after* the
call.
So using a local temporary (buf) like in that snip is not good; instead
using `setenv(strdup(..))` would introduce a small innocent leak which is fine
in this context
at least until librsb-1.3.0.2 (which is almost ready).
Alternatively, your purposes of MXE-Octave for librsb-1.3.0.1 (current) and
earlier, is perfectly
fine to `#define setenv(X) 0` -- setenv is not used in the library: just from
some arcane
tests. So in short, maybe don't do anything more than you did on this :-)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61393>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", (continued)
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/14
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/14
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/15
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/15
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/15
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/16
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/16
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/17
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/17
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/17
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb",
dezperado <=
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/17
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/17
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/17
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/17
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/17
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/17
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/18
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/18
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", Markus Mützel, 2022/10/18
- [Octave-bug-tracker] [bug #61393] [octave forge] (sparsersb) Crash while "pkg test sparsersb", dezperado, 2022/10/18