aracters. This is the case on any
> modern Unix system.
> -- cut here
That doesn't appear to be involved in the crash you cite. Whether
OpenBSD meets that requirement probably depends on what operations it
performs on wchar_t values.
Philip Guenther
So, just put some logic into your .profile to cd $HOME if the physical
directory is that of $HOME.
case $PWD in
$(cd $HOME && pwd -P) ) cd $HOME;;
esac
Philip Guenther
On Mon, Jan 12, 2009 at 2:35 PM, Rudi Ludwig wrote:
> On Monday 12 January 2009 20:38:03 Philip Guenther wrote:
>> When the shell is started by konsole, or xterm, or login, it's
>> working directory has already been set to $HOME. At that point, it
>> can only see the ph
atically when the loopback address is
initially assigned its address and brought up.
Since you didn't give any actual data, I'll guess that your update
procedure was broken such that your kernel and userland don't match,
probably giving you a -current kernel with -stable userland. Pick one
and use it for both.
Philip Guenther
at route: /etc/hostname.*, /etc/bridgename.*, and
/etc/rc*.local.
You don't happen to run bgpd or ospfd or some other routing daemon, do you?
Philip Guenther
set when starting a process from shell?
The command you're looking for is 'newgrp'...which OpenBSD doesn't
currently have. sudo is probably the most direct workaround for now.
Philip Guenther
On Fri, Jan 30, 2009 at 3:53 PM, Brian Keefer wrote:
> I'm probably ignorant, but I can't seem to find a way to increase the window
> scaling multiplier on an OpenBSD client. It's always zero.
"What problem are you trying to solve?"
The scale factor is *ONLY* a means to increase the maximum pos
.e., something like
grep 'sm-mta\[23903\]' /var/log/maillog.old
Philip Guenther
protocol version and cipher suite combos that
it supports for the root page. (In openssl, the cipher suites for TLS
are the same as for SSLv3, so that script only reports SSLv3 for
both.)
Philip Guenther
.
Since you don't actually provide any information about the device
(dmesg? full atactl identify output?) that would indicate a problem
with the device driver, the only suggestion anyone is likely to make
is that you should take it up with the disk manufacturer.
Philip Guenther
rtial or full), then the
cvs process will effectively convert itself to "cvs update -d". So,
if there have been files changed since the previous checkout then they
*will* be updated.
Philip Guenther
decides to tackle the compat issue, but someone
else will need to glue it together; the few Linux binaries I need work
just fine with the existing support and I have much more interesting
and (IMO) important things to work on than keeping up with Linux.
Philip Guenther
#x27;t know why; reading the cvs logs is probably the place to
start if you care.)
Philip Guenther
d to write to a tty from the background, or, well, some other
weird condition...)
Philip Guenther
kill 16632
[3] - Terminated sh -c "while :; do :; done"
: morgaine;
: morgaine; sh -c 'while :; do sleep 1; done' &
[3] 59539
: morgaine; kill 59539
: morgaine;
[3] - Terminated sh -c "while :; do sleep 1; done"
: morgaine;
sh itself doesn't ignore SIGTERM, but rather exits after receiving it.
Philip Guenther
hread function was disabled in this release?
> Is it security reason?
>
Upstream has it off by default, nothing so far has needed it, and it makes
things slower (or at least that's why upstream says). Why would we enable
it?
Philip Guenther
e syscalls leading up to signal were (and what extra info was
in the signal) tells a lot.
Philip Guenther
> but I have no idea what on earth could be causing it.
>
It requested a sleep of 1 second and 15 seconds passed. That's a kernel
timetracking issue, so the output of "sysctl kern.timecounter" would be a
good place to start. Is this is an MP kernel using the CPU TSC, but on a
VM where the virtual CPU's TSCs aren't in sync?
Philip Guenther
On Sun, Dec 2, 2018 at 7:51 PM Edgar Pettijohn
wrote:
> Sorry just saw it came with some examples. Testing with the `lookupdns'
> program
> ended with a Bus error (core dumped). Here is gdb output:
>
> Core was generated by `lookupdns'.
> Program terminated with signal SIGBUS, Bus error.
> #0 _l
www.openbsd.org/64.html
* Implemented MAP_STACK option for mmap(2). At pagefaults and
syscalls the kernel will check that the stack pointer points
to MAP_STACK memory, which mitigates against attacks using
stack pivots.
To confirm, if you check your dmesg(8) or /var/log/messages you should
find the kernel complaining something like
syscall [server]65554/### sp 13cd24a## not inside 0x7f7f###-0x7f7f###
Philip Guenther
tems that were
_clearly_ going to happen is completely believable.
Philip Guenther
ports?
>
Those are just UDP sockets on which connect() hasn't been called and that
aren't in the middle of a recvfrom() or recvmsg(), no?
And, perhaps more directly, how would I block this in pf.conf?
>
Excellent choice, blocking dhclient from receiving the leases that it
reque
ross
CPUs, real or virtual.
Philip Guenther
o
this wasn't source files updated in the middle of the builds.
Without know the exact sequence of operations on this tree it would be hard
to diagnose how this happened.
"When in doubt, rm -rf /usr/obj/* before building"
Philip Guenther
kets, but for SysV stuff it affects what
operations processes can perform.
Philip Guenther
>
> The easy fix is to change the format to '%llu', but this brakes FreeBSD
> and Linux. Am i missing something or should i be investigating the log
> implementation?
>
Option 1)
log(DEBUG, "Solo5: clock_init(): freq=%llu\n", (unsigned long
long)freq);
Option 2)
#include
log(DEBUG, "Solo5: clock_init(): freq=%"PRIu64"\n", freq);
Software native to OpenBSD uses option 1 when necessary.
Philip Guenther
CK when allocating memory for
thread stacks.
Philip Guenther
behavior. The use of the SGID bit on
directories to request BSD behavior was an addition in SystemV-based
systems when enough of their devs and users yelled at them to Not Be Stupid
And Provide the Better Behavior. I'm not sure who or when first added the
mount option. Linux certainly has both of those, but is not the only one.
Philip Guenther
ther processes
accessing the disk"? The word 'interrupt' is overloaded in computing and
what you saw may be a real problem with device support, or it may be
completely innocuous, something which you should be ignoring.
Philip Guenther
om an over-zealous optimization in the
logic handling subshells where the possibility that an inner redirection
could be blocking wasn't taken into account when it tries to avoid
unnecessary forks.
Sorry, I don't have a fix in my back pocket. Your workaround is good; I'll
note the intermediate set of parens can also be braces, which would let you
avoid the otherwise necessary whitespace between open-parens if that grates
on your soul like it does mine. :)
Philip Guenther
_SOURCE -- standardized: specifies a POSIX version
_XOPEN_SOURCE-- standardized: specifies a POSIX + XSI version
_ISOC11_SOURCE-- adds C2011 interfaces
_BSD_SOURCE -- adds all BSD and obsoleted interfaces
Make sense?
Philip Guenther
On Wed, Sep 7, 2016 at 9:19 AM, Simeon Benjamin wrote:
> hi mom! http://www.users.on.net/~blymn/veriexec/ Does OpenBSD has
> Verified Executables protection too? More detailed here:
> http://www.users.on.net/~blymn/veriexec/sexec.html Thanks!
No.
ly = AF_INET; before bind(...) the program works
> fine.
No specific maintainer on the port, so I suggest you send your diff to
po...@openbsd.org, so it can be included in ports and packages going
forward.
Philip Guenther
are encoded in either UTCTime or GeneralizedTime.
The notAfter time is before 2050, so it MUST be encoded as a UTCTIME,
but it isn't. You need to fix your CA software to generate
RFC-compliant certificates when signing them.
Philip Guenther
t'll do with other certs in file, but
a) I haven't tested it and
b) more importantly, reyk@ hasn't documented a behavior and thereby
decided it's supported, in some sense.
Philip Guenther
any "com" drivers that I
recognize, so it doesn't surprise me that nothing seems to work...and
thus the query about what 4.6 reported and what worked there.
Philip Guenther
hes it should leave a coredump in
/var/crash/snmpd/ ...but you would probably want to compile an snmpd
binary with debugging information so that gdb can provide useful backtrace
information from that corefile.
Philip Guenther
that provide privileged
access: even if a process closes all fds for its controlling tty, it
remains the process's controlling tty and can still be reopened via
/dev/tty. Similarly, simply being in the same session gives a process
additional rights that it wouldn't have otherwise, such as being able
to use tcsetpgrp() and see your login name via getlogin()...
Philip Guenther
of the direct map
really need to be made variable, based on the number of physical
address bits supported by the CPU (as found by CPUID), preferably then
clamped by the range of the actual memory installed, and then set up
in locore.S and pmap.c
Philip Guenther
On Sun, Nov 6, 2016 at 6:11 PM, STeve Andre' wrote:
> On 11/06/16 20:35, Philip Guenther wrote:
>>
>> On Sun, Nov 6, 2016 at 4:42 PM, Friedrich Locke
>> wrote:
>> ...
>>>
>>> Does OBSD "see" all the 96*128G memory available ?
>&g
On Mon, Nov 14, 2016 at 2:52 PM, Alan Corey wrote:
> This sounds like heel-dragging to me, or they're trying to do it under
> Windows or something:
> https://www.washingtonpost.com/news/post-nation/wp/2016/05/17/more-than-30-states-offer-online-voting-but-experts-warn-it-isnt-secure/
>
> It seems
:53
> MST 2017).
You caught a build during the a2k17 hackathon where I had a bug in
ld.so's DT_RUNPATH support. Update to a newer snapshot, or just build
and install an up-to-date ld.so (from /usr/src/libexec/ld.so)
Philip Guenther
-i pkg_add -u
then kdump | less and look for a failed connect call. Should be able to
search for "connect -1 errno" and then go backwards to see the connect()
call and the sockaddr passed to it.
Philip Guenther
On Sat, 4 Feb 2017, jungle boogie wrote:
> On 02/04/2017 05:45 PM, Philip Guenther wrote:
> > On Sat, 4 Feb 2017, jungle boogie wrote:
> > > What's happening here?
> > >
> > > $ doas pkg_add -u
> > > Error from http://ftp.openbsd.org/pub/Op
that _that_ code could only leave n set to zero or
one!
If your code triggers the memcpy() log+abort, then the code only works
elsewhere because the compiler isn't smart enough. Yet.
Philip Guenther
t what cost in
complexity and security holes, and there *have* a been a bunch! A google
search for "security hole in 32bit compat" immediately turned up this
article:
https://lwn.net/Articles/406466/
Adding "FreeBSD" or "NetBSD" to the search turns up hits for them too.
This stuff is *hard* and the benefit is...?
Nope, don't want it.
Philip Guenther
de each other, so the behavior when they are used
together is simply undefined by the standard...which makes any
behavior, including using the last, legal.
Philip Guenther
B)
> avail mem = 2026835968 (1932MB)
In the interest of helping you get work done, it sounds like you're
running a task that has a (much?) larger resident set requirement than
this box has physical memory available to userspace, resulting in constant
paging that drags it into the bowels o
usr/libexec/ld.so, or build static executables with -static.
$ ld exit.o -o exit -static
$ ./exit
$
Note that by default OpenBSD marks executables as PIE (position
independent executable) which places constraints on how code generates and
uses addresses. You'll need to link with the -nopie option if you can't
meet that requirement.
Philip Guenther
rge to explain
here. If you search the web for "amd64 ELF ABI" you'll find the doc that
describes how arguments are passed and how syscalls are performed. The
short version is "not on the stack, and using syscall instead of int$80"
Or look at the libc source code or disassemble libc.a and see how it does
it.
Philip Guenther
m then I would suggest remounting as many filesytem
read-only as possible before triggering the panic to minimize the possible
filesystem damage.
Philip Guenther
this a problem?
That's part of the glory of the X client libraries. c.f.
http://www.tedunangst.com/flak/post/mplayer-ktracing
for another example of this. Not the cause of your problem.
Philip Guenther
ch or the commit message of the
patch. Lacking that, go look at the ports' sources and see what might
indicate that.
Philip Guenther
eaches the end of the changelist or has no space in the
eventlist to report an error. In the last case (no space to report a
change error) it'll stop processing changelist entries and report the
error by returning -1 with the error in errno.
Philip Guenther
space".
(If that's the case, I think the solution depends on which the string
is there for, but why guess when you can just show a (possibly
redacted) version?)
And if *that's* not the case, then how about you run /etc/netstart
with sh -x and debug it?
Philip Guenther
.conf.local is no longer a shell script. Variables (notably
pkg_scripts) must now be on single lines.
Philip Guenther
** or your /etc/rc.conf, if you ignored the comments and edited it
to use the entire disk:
> # fdisk -i wd0
>
> And change the disklabel:
>
> disklabel -E sd0
...
To make it easier to analyze and reproduce this, can you provide the
output of fdisk and disklabel both before changing anything and then
again afterwards?
Hmm, and how about the output of
dumpfs /dev/rsd0a | head -23
before and after too?
Philip Guenther
have problem with authentication.
What crypt(3) format was used for the passwords?
In OpenBSD 5.6, support for MD5-style passwords where the hashed
password starts with $1$ has been removed.
Philip Guenther
On Mon, Nov 17, 2014 at 12:22 PM, giacomo wrote:
> On 16.11.14, 20:25, Philip Guenther wrote:
>> On Sat, Nov 15, 2014 at 7:00 AM, giacomo wrote:
>> > Recently I have upgrade my system from OpenBSD 5.4 to 5.5 and 5.6.
>> > In old system I installed the port of Postfix
That's an odd place to crash, having nothing to do with the filesystem
itself; that's just where it hooks in the code to support FFS filesystems
at all. Being not directly related makes me wonder if growfs is
corrupting your kernel by its relocating of blocks from the first cylinder
group...
Philip Guenther
On Monday, November 24, 2014, Nikos Skalkotos wrote:
>
> On 23/11/14 06:27, Philip Guenther wrote:
> ...
> > Note the cssize (cylinder summary size) has grown but csaddr hasn't
> > changed. That means it probably had to relocate allocated blocks. This
> > b
t that c*l*mel site?
> Sometimes i386 will run faster than 64 bit (see
> http://www.openbsd.org/amd64.html).
I see nothing on that page to suggest that.
Philip Guenther
t was linked incorrectly. On OpenBSD,
shared objects should be linked using cc -shared and *not* by directly
invoking ld, so that they get the necessary begin and end objects.
If you hit this when using the port or after building the package then you
should report this to the port maintainer and/o
f8a7adde8, count: -2
> 0x182fbc0e1cba:
> ddb{1}>
Gah, this is almost certainly my fault, trying to set the close-on-exec
flag even when the fd allocation failed. Can you reproduce it with this
diff applied?
Philip Guenther
Index: uipc_syscalls.c
On Mon, Dec 1, 2014 at 1:52 PM, Carlin Bingham wrote:
> Yes this seems to work, can not reproduce it with this applied.
Thanks for the report; committed!
Philip Guenther
ke depend
make PIPE='-ggdb'
sudo make install NOMAN=1
then reproduce the problem in the bzip2 port to get a fresh core file
with that binary, then finally run gdb against the _uninstalled_
binary (/usr/src/bin/ln/obj/ln) but with the new core file and see
what the backtrace shows.
Philip Guenther
ogram makes you fsck your disks?
That seems like an overreaction to me. As far as we know, you're
just invoking it with the wrong arguments...
Philip Guenther
code, IMO.
> R620 bios settings
...
> Monitor/Mwait - Disabled
I would suggest leaving that on. We ain't using it *right now*, but,
well, the source tree on my laptop is, and more than ever. :-)
Philip Guenther
hods available to set CPU affinity.
>>
>
> No, it should affect all cores.
c.f. mp_setperf_init(), as called from the mainbus_attach() routine
after attaching bios (and thus acpi) and the cpus.
Philip Guenther
On Wed, Jan 14, 2015 at 3:10 PM, Stefan Berger
wrote:
> at [1], I read something about 'Sigtramp separation' within
> the W^X transition. I only know that this sigtramp-page (?) is
> used to jump back into the kernel when a signal arrives.
>
> My question is, what exactly is this signal trampoli
home
You'll need to compare that output with the output of "disklabel sd0",
without the -h option, to figure out whether there's unallocated space
after some partition(s), or if it's a math error in the -h display.
Philip Guenther
boption to pax to match tar's -P is probably in order.
Let me know if you find I've missed anything.
Errata for 5.5/5.6 will occur when travel interruptions permit.
Philip Guenther
t column?
>
> 0x0 stream 0 0 0x0 0x0 0x0 0x0 /tmp/aucat/aucat0
Yes. They're UNIX domain sockets that bind() wasn't called on,
leaving them nameless. For UNIX stream sockets, there's no benefit to
binding the client-side, so they almost always nameless.
Philip Guenther
what "UMASK"
values are supported and how they are interpreted.
For Intel CPUs, this is in volume 3b "System Programming Guide, Part
2", chapters 18 and 19, for example.
Philip Guenther
pass The packet is passed; state is created unless the no state option
is specified.
and it can be reached in the syntax via the filteropt non-terminal:
filteropt =
...
( "no" | "keep" | "modulate" | "synproxy" ) "state"
Philip Guenther
amp; M_RECENT], time( 0
), Pid, ++MaildirCount, Hostname, s ? s : "" );
Whole port should be built with -Wformat to catch all such issues.
Philip Guenther
.pm line 80.
> : Use of uninitialized value $error in concatenation (.) or string at
> /usr/libdata/perl5/OpenBSD/PackageRepository.pm line 723.
I believe this is reported when $PKG_TMPDIR isn't writable.
Philip Guenther
ion denied
What IP will that Mac be using as its source address?
>From that Mac, what's "showmount -e 192.168.1.1" show?
What version of NFS does the Mac documentation say it'll use in this case?
Philip Guenther
that...) there will be
a wider round of testing...
Philip Guenther
that strategy would find the same device entries that it would
otherwise have found.
Philip Guenther
ee the exact commands? Then run it by hand and see
which commands are failing? Crank up the verbosity level on some of
the commands? Capture intermediate output? ktrace the failing
command?
Philip Guenther
could place multiple signal contexts on the
> stack before invoking any handlers, and then userland will process
> them in LIFO order.
OpenBSD doesn't support signal queuing; a signal sent to a process
while that signal is already pending for the process will be ignored.
Philip Guenther
an have a test for this going
forward...
Philip Guenther
r filesystems and, if that doesn't
find anything, do a read check by dd'ing the raw partitions to
/dev/null and see what that turns up.
Philip Guenther
On Wed, Oct 24, 2012 at 12:57 AM, Michael Sideris wrote:
> I am using the NFS defaults which means, according to the man page at
> least, that it should go over TCP.
Hmm, I don't believe that to be the case. What man page text are you
seeing says the default is TCP?
Philip Guenther
n mountd yourself with the -d option and snag
the *complete* output from start, making changes to /etc/exports and
HUP'ing it, etc.
Philip Guenther
r about 8 years, so how exactly
have you been installing OpenBSD without them? Furthermore, you
should be using packages and ports, which handle dependencies and
compilation paths for you.
Philip Guenther
checkout to the
branch instead of the trunk.
Philip Guenther
be checked
mechanically, those mostly have to be checked *and balanced* by a
brain.
I recommend the book "The Practice of Programming", by Brian W.
Kernighan and Rob Pike, for those interested in these sorts of
considerations.
Philip Guenther
urity(7) and xauth(1) manpages.
Philip Guenther
*ever* caught a problem in code that you then fixed? Or have you
always just followed modern best practices by only putting extern
function declarations in just one header file?
Philip Guenther
** some developers have much harsher language for this...
ne can say other than
"try again; good luck!"
Philip Guenther
:111: unknown option 'blackhole'
...
> Is it missing in OpenBSD implementation? Is there any way out of this? Like
> adding "anyone else" to allow-query structure?
No, it's not missing:
# grep blackhole named.conf
blackhole { clients; };
# named-checkconf ./named.conf
#
Philip Guenther
to have any effect on a non-login shell started by a terminal
emulator, the ENV variable has to be set in the environment of the
terminal emulator.
Philip Guenther
rom the conversion, didn't make you say "wow, converting them would
be a fucking waste of time!"? Really?
Philip Guenther
On Sat, Dec 22, 2012 at 4:57 PM, Friedrich Locke
wrote:
> Does OBSD support NFS 4 ? If not, is there plans to do so ?
It does not currently. I don't think anyone is working on it.
Philip Guenther
ug nasty low-level stuff using qemu or blochs to run the
kernel in emulation where they can stop it and dump memory and
register when it blows up.
Philip Guenther
*did
not* exhibit this behavior? e.g., did the machine last overnight when
running 5.1? 5.2-release? An October snapshot?
Philip Guenther
>
> sudo sync
> sudo mount -u -r /data
> sudo halt -p
Does the hang in sync happen if you're not running any processes as
you? Only happens if certain filesystems are mounted? What are the
prerequisites on it hanging?
Since this doesn't seem to affect developers, you're going to have to
do the science.
Philip Guenther
: compression not supported
>
> # tar -jcvf archive.bz2 something
> tar: could not exec bzip2: No such file or directory
>
> Is this intentional?
Yes.
Philip Guenther
201 - 300 of 986 matches
Mail list logo