Writing to mmaped region cause segfault

2010-11-03 Thread Alexey Suslikov
Hello t...@. On OpenBSD/amd64, doing something like char *buf = mmap(NULL, len + 1, PROT_READ | PROT_WRITE, MAP_PRIVATE, some.fd, 0); buf[len] = '\0'; causes segfault on buf[len] = '\0' assignment if len = 16384. However doing char *buf = mmap(NULL, len + 1, PROT_READ | PROT_WRITE,

Re: Writing to mmaped region cause segfault

2010-11-03 Thread Otto Moerbeek
On Wed, Nov 03, 2010 at 01:18:51PM +0200, Alexey Suslikov wrote: Hello t...@. On OpenBSD/amd64, doing something like char *buf = mmap(NULL, len + 1, PROT_READ | PROT_WRITE, MAP_PRIVATE, some.fd, 0); buf[len] = '\0'; causes segfault on buf[len] = '\0' assignment if len = 16384.

Re: Writing to mmaped region cause segfault

2010-11-03 Thread Otto Moerbeek
On Wed, Nov 03, 2010 at 01:12:20PM +0100, Otto Moerbeek wrote: On Wed, Nov 03, 2010 at 01:18:51PM +0200, Alexey Suslikov wrote: Hello t...@. On OpenBSD/amd64, doing something like char *buf = mmap(NULL, len + 1, PROT_READ | PROT_WRITE, MAP_PRIVATE, some.fd, 0); buf[len] =

Small fix for games/cribbage

2010-11-03 Thread David Coppa
Ok? Index: support.c === RCS file: /cvs/src/games/cribbage/support.c,v retrieving revision 1.11 diff -u -p -r1.11 support.c --- support.c 27 Oct 2009 23:59:24 - 1.11 +++ support.c 2 Nov 2010 19:31:12 - @@ -31,6 +31,7

Re: Writing to mmaped region cause segfault

2010-11-03 Thread Alexey Suslikov
This is somewhat ports related, but I decided to ask here before going further with diff. Well, we have Asterisk 1.6.2.14-rc1 going segfault: #0 generic_http_callback (format=FORMAT_XML, remote_address=0x4001, uri=0x4001 Address 0x4001 out of bounds, method=205216842,

Re: Writing to mmaped region cause segfault

2010-11-03 Thread Otto Moerbeek
On Wed, Nov 03, 2010 at 02:33:12PM +0200, Alexey Suslikov wrote: This is somewhat ports related, but I decided to ask here before going further with diff. Well, we have Asterisk 1.6.2.14-rc1 going segfault: #0 generic_http_callback (format=FORMAT_XML, remote_address=0x4001,

Re: Writing to mmaped region cause segfault

2010-11-03 Thread Ariane van der Steldt
On Wed, Nov 03, 2010 at 02:33:12PM +0200, Alexey Suslikov wrote: This is somewhat ports related, but I decided to ask here before going further with diff. Well, we have Asterisk 1.6.2.14-rc1 going segfault: #0 generic_http_callback (format=FORMAT_XML, remote_address=0x4001,

pool_sethardlimit should not imply pool_sethiwat

2010-11-03 Thread Mike Belopuhov
Hi, looking into the pool code we realized that pool_sethardlimit does some extra work that it's not supposed to do. essentially pool_sethardlimit is there so that we can set a maximum number of entries pool_get can give away. though currently it doesn't do only that. it also sets a limit on

Re: Writing to mmaped region cause segfault

2010-11-03 Thread Ted Unangst
On Wed, Nov 3, 2010 at 8:33 AM, Alexey Suslikov alexey.susli...@gmail.com wrote: This is somewhat ports related, but I decided to ask here before going further with diff. Well, we have Asterisk 1.6.2.14-rc1 going segfault: #0 generic_http_callback (format=FORMAT_XML, remote_address=0x4001,

Re: pool_sethardlimit should not imply pool_sethiwat

2010-11-03 Thread Ted Unangst
On Wed, Nov 3, 2010 at 11:22 AM, Mike Belopuhov m...@crypt.org.ru wrote: there are situations when you need to keep around more pages than the default (which is 8 btw), but surely this isn't the same as a possible maximum of entries pool can give away. these pools can call pool_sethiwat

WIP: Support Synaptics touchpad

2010-11-03 Thread Alexandr Shadchin
Hi! Add support Synaptics touchpad (includes rework pms) Build: cd /tmp ftp http://koba.devio.us/distfiles/synaptics.diff cd /usr/src/sys patch -p0 /tmp/synaptics.diff ... (build and install kernel, reboot) ... cd /tmp ftp http://koba.devio.us/distfiles/xf86-input-synaptics.tgz cd /usr/src make

document ldapd schema files

2010-11-03 Thread Martin Hedenfalk
On Wed, Nov 03, 2010 at 01:19:26PM -0400, Ted Unangst wrote: Am I missing something, or is there no documentation for the schema files? man ldapd.conf tells me I can include additional schema files via the schema keyword, but nothing tells me what to put in those files. Following diff

Meet Phil the Pharisee

2010-11-03 Thread Godthoughts Wired
GodThoughtsWired!Wednesday, November 3, 2010 An Inspiration for Today...A Resource for a Lifetime! meet phil the pharisee To the weak I became weak, that I might win the weak; I have become all things to all men, so that I may by all means save some. 1 Corinthians 9:22 Yesterday's