Re: fd_getfile with 0xdeadbeef in rax

2017-01-24 Thread Ted Unangst
Martin Pieuchot wrote:
> Sure I can do that, I still want to add a comment since it might bite us
> later.
> 
> So a counter diff is like an ok?

sure. 



Re: dig(1) crashes when retrying with tcp.

2017-01-24 Thread Stuart Henderson
On 2017/01/24 11:42, Janne Johansson wrote:
> It was pointed out to me that if you run
> 
> dig @h.gtld-servers.net ubuntu.com. se-east-1.clouds.archive.ubuntu.com +trace
> 
> a few times, it sooner or later gets a reply too large for udp,

> switches to tcp and then dies with this output:
> 
> /usr/src/usr.sbin/bind/lib/dns/name.c:571: REQUIREname2) !=
> ((void *)0)) && (((const isc__magic_t *)(name2))->magic == ((('D')
>  << 24 | ('N') << 16 | ('S') << 8 | ('n')) failed.

Repeatable here with 9.4.2-P2 in base, not seen with the version in ports,
though I don't get any "truncated; retrying" messages either there.



Re: Possible typo in manpage http://man.openbsd.org/OpenBSD-current/man3p/Getopt::Std.3p

2017-01-24 Thread Jason McIntyre
On Mon, Jan 23, 2017 at 04:57:12PM +0100, Harald Hellmuth wrote:
> Dear Team,
> 
> i wonder if this in Getopt::Std(3p) is a typo:
> 
> Use of "getopts()" is not recommended.
>   ^
> 
> Because the same manpage at perldoc.perl.org states:
> 
>  Use of getopt() is not recommended.
> 
> Sincerly
> 
> Harald Hellmuth
> 

it does look like an error. the perl docs are 3rd party: you should
check whether the latest version has an issue and report it to them.

jmc



Possible typo in manpage http://man.openbsd.org/OpenBSD-current/man3p/Getopt::Std.3p

2017-01-24 Thread Harald Hellmuth
Dear Team,

i wonder if this in Getopt::Std(3p) is a typo:

Use of "getopts()" is not recommended.
  ^

Because the same manpage at perldoc.perl.org states:

 Use of getopt() is not recommended.

Sincerly

Harald Hellmuth



dig(1) crashes when retrying with tcp.

2017-01-24 Thread Janne Johansson
It was pointed out to me that if you run

dig @h.gtld-servers.net ubuntu.com. se-east-1.clouds.archive.ubuntu.com
+trace

a few times, it sooner or later gets a reply too large for udp, switches to
tcp and then
dies with this output:

/usr/src/usr.sbin/bind/lib/dns/name.c:571: REQUIREname2) !=
((void *)0)) && (((const isc__magic_t *)(name2))->magic == ((('D')
 << 24 | ('N') << 16 | ('S') << 8 | ('n')) failed.

Tested on various am64 snaps from 2017, this particular run was:

OpenBSD 6.0-current (GENERIC.MP) #129: Wed Jan 11 14:22:26 MST 2017
bu...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

Core file says:

gdb $(which dig) --core dig.core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-unknown-openbsd6.0"...
(no debugging symbols found)

Core was generated by `dig'.
Program terminated with signal 6, Aborted.
(no debugging symbols found)
Loaded symbols for /usr/sbin/dig
Reading symbols from /usr/lib/libcrypto.so.41.0...done.
Loaded symbols for /usr/lib/libcrypto.so.41.0
Reading symbols from /usr/lib/libc.so.89.2...done.
Loaded symbols for /usr/lib/libc.so.89.2
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
#0  0x0745e3121c8a in thrkill () at :2
2   : No such file or directory.
in 
(gdb) bt full
#0  0x0745e3121c8a in thrkill () at :2
No locals.
#1  0x0745e31364a9 in *_libc_abort ()
at /usr/src/lib/libc/stdlib/abort.c:52
mask = 4294967263
sa = {__sigaction_u = {
__sa_handler = 0x745e312da7a <_thread_sys_write+10>,
__sa_sigaction = 0x745e312da7a <_thread_sys_write+10>}, sa_mask = 0,
  sa_flags = 0}
#2  0x0743918f0581 in dns_rbtdb64_create () from /usr/sbin/dig
No symbol table info available.
#3  0x07439181cdb4 in onrun_callback () from /usr/sbin/dig
No symbol table info available.
#4  0x0743918068ae in ?? () from /usr/sbin/dig
No symbol table info available.
#5  0x07439180ac8b in onrun_callback () from /usr/sbin/dig
No symbol table info available.
#6  0x07439190693a in dns_rbtdb64_create () from /usr/sbin/dig
No symbol table info available.
#7  0x074391909860 in dns_rbtdb64_create () from /usr/sbin/dig
No symbol table info available.
#8  0x074391909b46 in dns_rbtdb64_create () from /usr/sbin/dig
No symbol table info available.
#9  0x074391803dc8 in ?? () from /usr/sbin/dig
No symbol table info available.
#10 0x074391800fb2 in ?? () from /usr/sbin/dig
No symbol table info available.
#11 0x in ?? ()
No symbol table info available.
Current language:  auto; currently asm


-- 
May the most significant bit of your life be positive.