Re: svn commit: r320156 - in head: cddl/contrib/opensolaris/cmd/zdb cddl/contrib/opensolaris/cmd/ztest cddl/contrib/opensolaris/lib/libzfs/common sys/cddl/contrib/opensolaris/common/zfs sys/cddl/contr

2017-06-21 Thread O. Hartmann
puid = 14; apic id = 22
> fault virtual address   = 0x4
> fault code  = supervisor read data, page not present
> instruction pointer = 0x20:0x81d92a2d
> stack pointer   = 0x0:0xfe08b36e0710
> frame pointer   = 0x0:0xfe08b36e0730
> code segment= base 0x0, limit 0xf, type 0x1b
> 
> 
> Fatal trap 12: page fault while in kernel mode
> cpuid = 11; apic id = 0b
> fault virtual address   = 0x4
> Fatal trap 12: page fault while in kernel mode
> cpuid = 8; apic id = 08
> = DPL 0, pres 1, long 1, def32 0, gran 1
> processor eflags= interrupt enabled, resume, IOPL = 0
> current process = 0 (zio_free_issue_4_1)
> [ thread pid 0 tid 100799 ]
> Stopped at  0x81d92a2d = abd_verify+0xd:movl0x4(%r14),%eax
> db> bt  
> Tracing pid 0 tid 100799 td 0xf801931b8560
> abd_verify() at 0x81d92a2d = abd_verify+0xd/frame 0xfe08b36e0730
> abd_put() at 0x81d92eff = abd_put+0xf/frame 0xfe08b36e0750
> vdev_raidz_map_free() at 0x81e26312 = vdev_raidz_map_free+0x82/frame
> 0xfe08b36e0780 zio_vdev_io_assess() at 0x81e48646 =
> zio_vdev_io_assess+0x116/frame 0xfe08b36e07b0 zio_execute() at 
> 0x81e4312c =
> zio_execute+0x36c/frame 0xfe08b36e0800 zio_vdev_io_start() at 
> 0x81e48184 =
> zio_vdev_io_start+0x454/frame 0xfe08b36e0860 zio_execute() at 
> 0x81e4312c =
> zio_execute+0x36c/frame 0xfe08b36e08b0 zio_nowait() at 0x81e422b8 
> =
> zio_nowait+0xb8/frame 0xfe08b36e08e0 vdev_mirror_io_start() at 
> 0x81e224fc =
> vdev_mirror_io_start+0x38c/frame 0xfe08b36e0930 zio_vdev_io_start() at
> 0x81e48030 = zio_vdev_io_start+0x300/frame 0xfe08b36e0990 
> zio_execute() at
> 0x81e4312c = zio_execute+0x36c/frame 0xfe08b36e09e0 
> taskqueue_run_locked()
> at 0x809a9d6d = taskqueue_run_locked+0x13d/frame 0xfe08b36e0a40
> taskqueue_thread_loop() at 0x809aab28 = 
> taskqueue_thread_loop+0x88/frame
> 0xfe08b36e0a70 fork_exit() at 0x8091e3e4 = fork_exit+0x84/frame
> 0xfe08b36e0ab0 fork_trampoline() at 0x80d930fe = 
> fork_trampoline+0xe/frame
> 0xfe08b36e0ab0 --- trap 0, rip = 0, rsp = 0, rbp = 0 ---
> db>   
> 
> (kgdb) list *(abd_verify+0xd)
> 
> 0x24a2d is in abd_verify
> (/usr/home/kenm/perforce4/kenm/FreeBSD-test/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/abd.c:231).
> 226 } 227
> 228 static inline void
> 229 abd_verify(abd_t *abd)
> 230 {
> 231 ASSERT3U(abd->abd_size, >, 0);
> 232 ASSERT3U(abd->abd_size, <=, SPA_MAXBLOCKSIZE);
> 233 ASSERT3U(abd->abd_flags, ==, abd->abd_flags & 
> (ABD_FLAG_LINEAR |
> 234 ABD_FLAG_OWNER | ABD_FLAG_META));
> 235 IMPLY(abd->abd_parent != NULL, !(abd->abd_flags & 
> ABD_FLAG_OWNER));
> (kgdb) list *(abd_put+0xf)
> 0x24eff is in abd_put
> (/usr/home/kenm/perforce4/kenm/FreeBSD-test/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/abd.c:514).
> 509  */ 510 void
> 511 abd_put(abd_t *abd)
> 512 {
> 513 abd_verify(abd);
> 514 ASSERT(!(abd->abd_flags & ABD_FLAG_OWNER));
> 515
> 516 if (abd->abd_parent != NULL) {
> 517 (void) 
> refcount_remove_many(&abd->abd_parent->abd_children,
> 518 abd->abd_size, abd);
> (kgdb) list *(vdev_raidz_map_free+0x82)
> 0xb8312 is in vdev_raidz_map_free
> (/usr/home/kenm/perforce4/kenm/FreeBSD-test/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_raidz.c:281).
> 276 zio_buf_free(rm->rm_col[c].rc_gdata,
> 277 rm->rm_col[c].rc_size); 278     }
> 279
> 280 size = 0;
> 281 for (c = rm->rm_firstdatacol; c < rm->rm_cols; c++) {
> 282 abd_put(rm->rm_col[c].rc_abd);
> 283 size += rm->rm_col[c].rc_size;
> 284 }
> 285
> (kgdb) list *(zio_vdev_io_assess+0x116)
> 0xda646 is in zio_vdev_io_assess
> (/usr/home/kenm/perforce4/kenm/FreeBSD-test/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c:3315).
> 3310if (vd == NULL && !(zio->io_flags & ZIO_FLAG_CONFIG_WRITER))
> 3311spa_config_exit(zio->io_spa, SCL_ZIO, zio); 3312
> 3313if (zio->io_vsd != NULL) {
> 3314zio->io_vsd_ops->vsd_free(zio);
> 3315zio->io_vsd = NULL;
> 3316}
> 3317
> 3318if (zio_injection_enabled && zio->io_error == 0)
> 3319zio->io_error = zio_handle_fault_injection(zio, EIO);
> (kgdb) 
> 
> So, I disabled trim by setting vfs.zfs.trim.enabled=0 in the loader, and I
> can boot now.
> 
> Ken



-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).


pgpzXtjMXQmy7.pgp
Description: OpenPGP digital signature


Re: svn commit: r320153 - in head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2017-06-20 Thread O. Hartmann
Am Tue, 20 Jun 2017 20:55:02 +0200
"O. Hartmann"  schrieb:

> Am Tue, 20 Jun 2017 16:55:30 + (UTC)
> Andriy Gapon  schrieb:
> 
> > Author: avg
> > Date: Tue Jun 20 16:55:30 2017
> > New Revision: 320153
> > URL: https://svnweb.freebsd.org/changeset/base/320153
> > 
> > Log:
> >   revert r315852 which introduced zio_buf_alloc_nowait for use in 
> > vdev_queue_aggregate
> >   
> >   I think that the change is still good, but reconciling it with a planned
> >   merge of the ARC buf data scatter-ization is a bit more tedious
> >   than I can handle.
> >   
> >   MFC after:17 days
> > 
> > Modified:
> >   head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio.h
> >   head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c
> >   head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c
> > 
> > Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio.h
> > ==
> > --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio.h   Tue Jun 
> > 20
> > 16:45:48 2017   (r320152) +++
> > head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio.h   Tue Jun 
> > 20
> > 16:55:30 2017   (r320153) @@ -555,7 +555,6 @@ extern zio_t
> > *zio_unique_parent(zio_t *cio); extern void zio_add_child(zio_t *pio, zio_t 
> > *cio); 
> >  extern void *zio_buf_alloc(size_t size);
> > -extern void *zio_buf_alloc_nowait(size_t size);
> >  extern void zio_buf_free(void *buf, size_t size);
> >  extern void *zio_data_buf_alloc(size_t size);
> >  extern void zio_data_buf_free(void *buf, size_t size);
> > 
> > Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c
> > ==
> > --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c
> > Tue Jun 20
> > 16:45:48 2017   (r320152) +++
> > head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.cTue Jun 
> > 20
> > 16:55:30 2017   (r320153) @@ -647,7 +647,6 @@ static zio_t *
> > vdev_queue_aggregate(vdev_queue_t *vq, zio_t *zio) {
> > zio_t *first, *last, *aio, *dio, *mandatory, *nio;
> > -   void *abuf;
> > uint64_t maxgap = 0;
> > uint64_t size;
> > boolean_t stretch;
> > @@ -766,12 +765,8 @@ vdev_queue_aggregate(vdev_queue_t *vq, zio_t *zio)
> > size = IO_SPAN(first, last);
> > ASSERT3U(size, <=, SPA_MAXBLOCKSIZE);
> >  
> > -   abuf = zio_buf_alloc_nowait(size);
> > -   if (abuf == NULL)
> > -   return (NULL);
> > -
> > aio = zio_vdev_delegated_io(first->io_vd, first->io_offset,
> > -   abuf, size, first->io_type, zio->io_priority,
> > +   zio_buf_alloc(size), size, first->io_type, zio->io_priority,
> > flags | ZIO_FLAG_DONT_CACHE | ZIO_FLAG_DONT_QUEUE,
> > vdev_queue_agg_io_done, NULL);
> > aio->io_timestamp = first->io_timestamp;
> > 
> > Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c
> > ==
> > --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c   Tue Jun 
> > 20
> > 16:45:48 2017   (r320152) +++
> > head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c   Tue Jun 20 
> > 16:55:30
> > 2017(r320153) @@ -272,33 +272,18 @@ zio_fini(void)
> >   * useful to inspect ZFS metadata, but if possible, we should avoid keeping
> >   * excess / transient data in-core during a crashdump.
> >   */
> > -static void *
> > -zio_buf_alloc_impl(size_t size, boolean_t canwait)
> > +void *
> > +zio_buf_alloc(size_t size)
> >  {
> > size_t c = (size - 1) >> SPA_MINBLOCKSHIFT;
> > int flags = zio_exclude_metadata ? KM_NODEBUG : 0;
> >  
> > VERIFY3U(c, <, SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT);
> >  
> > -   if (zio_use_uma) {
> > -   return (kmem_cache_alloc(zio_buf_cache[c],
> > -   canwait ? KM_PUSHPAGE : KM_NOSLEEP));
> > -   } else {
> > -   return (kmem_alloc(size,
> > -   (canwait ? KM_SLEEP : KM_NOSLEEP) | flags));
> > -   }
> > -}
> > -
> > -void *
> > -zio_buf_alloc(size_t size)
> > -{
> > -   return (zio_buf_alloc_impl(size, B_TRUE));
> > -}
> > -
> > -void *
> > -zio_buf_alloc_nowait(size_t size)
> > -{
> > -   return (zio_buf_a

Re: svn commit: r320153 - in head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2017-06-20 Thread O. Hartmann
Am Tue, 20 Jun 2017 16:55:30 + (UTC)
Andriy Gapon  schrieb:

> Author: avg
> Date: Tue Jun 20 16:55:30 2017
> New Revision: 320153
> URL: https://svnweb.freebsd.org/changeset/base/320153
> 
> Log:
>   revert r315852 which introduced zio_buf_alloc_nowait for use in 
> vdev_queue_aggregate
>   
>   I think that the change is still good, but reconciling it with a planned
>   merge of the ARC buf data scatter-ization is a bit more tedious
>   than I can handle.
>   
>   MFC after:  17 days
> 
> Modified:
>   head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio.h
>   head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c
>   head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c
> 
> Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio.h
> ==
> --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio.h Tue Jun 
> 20
> 16:45:48 2017 (r320152) +++
> head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio.h Tue Jun 20
> 16:55:30 2017 (r320153) @@ -555,7 +555,6 @@ extern zio_t
> *zio_unique_parent(zio_t *cio); extern void zio_add_child(zio_t *pio, zio_t 
> *cio); 
>  extern void *zio_buf_alloc(size_t size);
> -extern void *zio_buf_alloc_nowait(size_t size);
>  extern void zio_buf_free(void *buf, size_t size);
>  extern void *zio_data_buf_alloc(size_t size);
>  extern void zio_data_buf_free(void *buf, size_t size);
> 
> Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c
> ==
> --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c  Tue Jun 
> 20
> 16:45:48 2017 (r320152) +++
> head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c  Tue Jun 
> 20
> 16:55:30 2017 (r320153) @@ -647,7 +647,6 @@ static zio_t *
> vdev_queue_aggregate(vdev_queue_t *vq, zio_t *zio) {
>   zio_t *first, *last, *aio, *dio, *mandatory, *nio;
> - void *abuf;
>   uint64_t maxgap = 0;
>   uint64_t size;
>   boolean_t stretch;
> @@ -766,12 +765,8 @@ vdev_queue_aggregate(vdev_queue_t *vq, zio_t *zio)
>   size = IO_SPAN(first, last);
>   ASSERT3U(size, <=, SPA_MAXBLOCKSIZE);
>  
> - abuf = zio_buf_alloc_nowait(size);
> - if (abuf == NULL)
> - return (NULL);
> -
>   aio = zio_vdev_delegated_io(first->io_vd, first->io_offset,
> - abuf, size, first->io_type, zio->io_priority,
> + zio_buf_alloc(size), size, first->io_type, zio->io_priority,
>   flags | ZIO_FLAG_DONT_CACHE | ZIO_FLAG_DONT_QUEUE,
>   vdev_queue_agg_io_done, NULL);
>   aio->io_timestamp = first->io_timestamp;
> 
> Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c
> ==
> --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c Tue Jun 20
> 16:45:48 2017 (r320152) +++
> head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c Tue Jun 20 
> 16:55:30
> 2017  (r320153) @@ -272,33 +272,18 @@ zio_fini(void)
>   * useful to inspect ZFS metadata, but if possible, we should avoid keeping
>   * excess / transient data in-core during a crashdump.
>   */
> -static void *
> -zio_buf_alloc_impl(size_t size, boolean_t canwait)
> +void *
> +zio_buf_alloc(size_t size)
>  {
>   size_t c = (size - 1) >> SPA_MINBLOCKSHIFT;
>   int flags = zio_exclude_metadata ? KM_NODEBUG : 0;
>  
>   VERIFY3U(c, <, SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT);
>  
> - if (zio_use_uma) {
> - return (kmem_cache_alloc(zio_buf_cache[c],
> - canwait ? KM_PUSHPAGE : KM_NOSLEEP));
> - } else {
> - return (kmem_alloc(size,
> - (canwait ? KM_SLEEP : KM_NOSLEEP) | flags));
> - }
> -}
> -
> -void *
> -zio_buf_alloc(size_t size)
> -{
> - return (zio_buf_alloc_impl(size, B_TRUE));
> -}
> -
> -void *
> -zio_buf_alloc_nowait(size_t size)
> -{
> - return (zio_buf_alloc_impl(size, B_FALSE));
> + if (zio_use_uma)
> + return (kmem_cache_alloc(zio_buf_cache[c], KM_PUSHPAGE));
> + else
> + return (kmem_alloc(size, KM_SLEEP|flags));
>  }
>  
>  /*
> ___
> svn-src-h...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Running r320138, which is stable for me, My systems crash immediately when 
booting with
r320158. Since I use ZFS compiled into the kernel and

Re: svn commit: r319971 - in head: contrib/jemalloc contrib/jemalloc/doc contrib/jemalloc/include/jemalloc contrib/jemalloc/include/jemalloc/internal contrib/jemalloc/src include lib/libc/stdlib/jemal

2017-06-17 Thread O. Hartmann
Am Thu, 15 Jun 2017 13:11:52 -0700
Jason Evans  schrieb:

> On Thu, 15 Jun 2017 08:04:57 -0700
> Jason Evans  wrote:
> 
> > On Thu, 15 Jun 2017 10:31:57 +0200
> > "O. Hartmann"  wrote:
> >   
> > > On Thu, 15 Jun 2017 07:15:06 + (UTC)
> > > Jason Evans  wrote:
> > >   
> > > > Author: jasone
> > > > Date: Thu Jun 15 07:15:05 2017
> > > > New Revision: 319971
> > > > URL: https://svnweb.freebsd.org/changeset/base/319971
> > > > 
> > > > Log:
> > > >   Update jemalloc to 5.0.0.  
> > > 
> > > On all hosts (running CURRENT:  FreeBSD 12.0-CURRENT #15 r319965: Thu Jun 
> > > 15
> > > 05:56:12 CEST 2017 amd64 AND FreeBSD 12.0-CURRENT #20 r319934: Wed Jun 14
> > > 06:18:46 CEST 2017 amd64)
> > > 
> > > buildworld fails on
> > > 
> > > [...]
> > > Building /usr/obj/usr/src/lib/libgcc_s/_libinstall
> > > --- secure/lib/libcrypto__L ---
> > > --- all_subdir_secure/lib/libcrypto/engines/libaep ---
> > > /usr/obj/usr/src/tmp/usr/bin/ld: error: unable to find library -lgcc_s
> > > /usr/obj/usr/src/tmp/usr/bin/ld: error: unable to find library -lgcc_s
> > > cc: error: linker command failed with exit code 1 (use -v to see 
> > > invocation)
> > > *** [libaep.so] Error code 1
> > > 
> > > make[6]: stopped in /usr/src/secure/lib/libcrypto/engines/libaep
> > > .ERROR_TARGET='libaep.so'  
> > 
> > I tested this commit based on r319490.  I'm in the process of updating to 
> > r319971,
> > and will see if the issue reproduces.  
> 
> I updated from r319490 (with jemalloc update integrated) to r319971, then 
> rebuilt
> r319971 without issues.  Is it possible that the issue you hit isn't directly 
> related
> to r319971?
> 
> Thanks,
> Jason
> ___
> svn-src-h...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Sorry for the late response.

The problem vanished after removing /usr/obj and restarting the buildworld 
process.

I did so consequently on all systems after this incident and had no problems so 
far.

And: yes, it (the initial problem reported) could probably be related to 
something else,
but it occured immediately after the update of this SVN index has been 
committed. But I
think that doesn't matter anymore.

Kind regards,

Oliver

-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).


pgp6oaaPIAx83.pgp
Description: OpenPGP digital signature


Re: svn commit: r319971 - in head: contrib/jemalloc contrib/jemalloc/doc contrib/jemalloc/include/jemalloc contrib/jemalloc/include/jemalloc/internal contrib/jemalloc/src include lib/libc/stdlib/jemal

2017-06-15 Thread O. Hartmann
On Thu, 15 Jun 2017 07:15:06 + (UTC)
Jason Evans  wrote:

> Author: jasone
> Date: Thu Jun 15 07:15:05 2017
> New Revision: 319971
> URL: https://svnweb.freebsd.org/changeset/base/319971
> 
> Log:
>   Update jemalloc to 5.0.0.
> 
> Added:
>   head/contrib/jemalloc/include/jemalloc/internal/arena_externs.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/arena_inlines_a.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/arena_inlines_b.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/arena_structs_a.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/arena_structs_b.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/arena_types.h   (contents,
> props changed) head/contrib/jemalloc/include/jemalloc/internal/atomic_c11.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/atomic_gcc_atomic.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/atomic_gcc_sync.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/background_thread_externs.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/background_thread_inlines.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/background_thread_structs.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/base_externs.h   (contents,
> props changed)
> head/contrib/jemalloc/include/jemalloc/internal/base_inlines.h   (contents,
> props changed)
> head/contrib/jemalloc/include/jemalloc/internal/base_structs.h   (contents,
> props changed) head/contrib/jemalloc/include/jemalloc/internal/base_types.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/bit_util.h   (contents, props
> changed) head/contrib/jemalloc/include/jemalloc/internal/extent_dss.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/extent_externs.h   (contents,
> props changed)
> head/contrib/jemalloc/include/jemalloc/internal/extent_inlines.h   (contents,
> props changed)
> head/contrib/jemalloc/include/jemalloc/internal/extent_mmap.h   (contents,
> props changed)
> head/contrib/jemalloc/include/jemalloc/internal/extent_structs.h   (contents,
> props changed)
> head/contrib/jemalloc/include/jemalloc/internal/extent_types.h   (contents,
> props changed) head/contrib/jemalloc/include/jemalloc/internal/hooks.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_externs.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_includes.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_a.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_b.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/jemalloc_preamble.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/large_externs.h   (contents,
> props changed) head/contrib/jemalloc/include/jemalloc/internal/malloc_io.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/mutex_pool.h   (contents,
> props changed) head/contrib/jemalloc/include/jemalloc/internal/mutex_prof.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/prof_externs.h   (contents,
> props changed)
> head/contrib/jemalloc/include/jemalloc/internal/prof_inlines_a.h   (contents,
> props changed)
> head/contrib/jemalloc/include/jemalloc/internal/prof_inlines_b.h   (contents,
> props changed)
> head/contrib/jemalloc/include/jemalloc/internal/prof_structs.h   (contents,
> props changed) head/contrib/jemalloc/include/jemalloc/internal/prof_types.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/rtree_tsd.h   (contents,
> props changed) head/contrib/jemalloc/include/jemalloc/internal/stats_tsd.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/sz.h   (contents, props
> changed) head/contrib/jemalloc/include/jemalloc/internal/tcache_externs.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemalloc/internal/tcache_inlines.h   (contents,
> props changed)
> head/contrib/jemalloc/include/jemalloc/internal/tcache_structs.h   (contents,
> props changed)
> head/contrib/jemalloc/include/jemalloc/internal/tcache_types.h   (contents,
> props changed)
> head/contrib/jemalloc/include/jemalloc/internal/tsd_generic.h   (contents,
> props changed)
> head/contrib/jemalloc/include/jemalloc/internal/tsd_malloc_thread_cleanup.h
> (contents, props changed)
> head/contrib/jemalloc/include/jemall

Re: svn commit: r318757 - head

2017-05-24 Thread O. Hartmann
Am Wed, 24 May 2017 12:11:06 -0700
"Ngie Cooper (yaneurabeya)"  schrieb:

> > On May 24, 2017, at 11:10, O. Hartmann  wrote:
> > 
> > Am Wed, 24 May 2017 13:04:30 -0500
> > Larry Rosenman  schrieb:  
> 
> …
> 
> > I use the traditional "make" way (via portmaster)  
> 
>   There were some reports about needing to do “make clean” before “make 
> install”.
> Memory serves me correctly there are ways in portmaster to bypass “make 
> clean” before
> running “make install”. Could you please provide your portmasterrc file? 
> Thanks, -Ngie


attached, but there is nothing unusual from my point of view. make clean is 
also done
prior to the make all.

-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).


portmaster.rc
Description: Binary data


pgpHAxcqzGcy2.pgp
Description: OpenPGP digital signature


Re: svn commit: r318757 - head

2017-05-24 Thread O. Hartmann
Am Wed, 24 May 2017 13:04:30 -0500
Larry Rosenman  schrieb:

> On 5/24/17, 1:01 PM, "O. Hartmann"  wrote:
> 
> Am Wed, 24 May 2017 19:40:46 +0200
> "O. Hartmann"  schrieb:
> 
> > Am Wed, 24 May 2017 12:28:51 -0500
> > Larry Rosenman  schrieb:
> >   
> > > I fixed my issues by force-rebuilding perl and all installed p5-* 
> ports. 
> > > 
> > > 
> > 
> > 
> > This isn't possible in my case :-(
> > 
> > lang/perl rebuilds all right, but every p5-* ports fails with
> > 
> > [...]
> > Checking if your kit is complete...
> > ListUtil.c: loadable library and perl binaries are mismatched (got 
> handshake key
> > 0xd200080, needed 0xdf00080) 
> > *** Error code 1
> > 
> > I tried to rebuild also via portmaster -f, no success. Now, I growing 
> bunch of
> > ports showing up with this mysterious error.
> > 
> > To which port "ListUtil.c" might belong to?
> > 
> > Rebuilding autotools (which I suspected first) also fails ...
> > 
> >   
> 
> ... it seems, as K. belousov mentioned prior regarding different ABI, all 
> p5-*
> ports need to be deleted by force ... They rebuild properly afterwards.
> 
> Which is essentially what I did re: Poudriere (poudriere bulk –C –j  -p
>  -f )

I use the traditional "make" way (via portmaster)

-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).


pgpSmvpZkypL7.pgp
Description: OpenPGP digital signature


Re: svn commit: r318757 - head

2017-05-24 Thread O. Hartmann
Am Wed, 24 May 2017 19:40:46 +0200
"O. Hartmann"  schrieb:

> Am Wed, 24 May 2017 12:28:51 -0500
> Larry Rosenman  schrieb:
> 
> > I fixed my issues by force-rebuilding perl and all installed p5-* ports. 
> > 
> >   
> 
> 
> This isn't possible in my case :-(
> 
> lang/perl rebuilds all right, but every p5-* ports fails with
> 
> [...]
> Checking if your kit is complete...
> ListUtil.c: loadable library and perl binaries are mismatched (got handshake 
> key
> 0xd200080, needed 0xdf00080) 
> *** Error code 1
> 
> I tried to rebuild also via portmaster -f, no success. Now, I growing bunch 
> of ports
> showing up with this mysterious error.
> 
> To which port "ListUtil.c" might belong to?
> 
> Rebuilding autotools (which I suspected first) also fails ...
> 
> 

... it seems, as K. belousov mentioned prior regarding different ABI, all p5-* 
ports need
to be deleted by force ... They rebuild properly afterwards.

-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).


pgpnp94lOuNvx.pgp
Description: OpenPGP digital signature


Re: svn commit: r318757 - head

2017-05-24 Thread O. Hartmann
Am Wed, 24 May 2017 12:28:51 -0500
Larry Rosenman  schrieb:

> I fixed my issues by force-rebuilding perl and all installed p5-* ports. 
> 
> 


This isn't possible in my case :-(

lang/perl rebuilds all right, but every p5-* ports fails with

[...]
Checking if your kit is complete...
ListUtil.c: loadable library and perl binaries are mismatched (got handshake key
0xd200080, needed 0xdf00080) 
*** Error code 1

I tried to rebuild also via portmaster -f, no success. Now, I growing bunch of 
ports
showing up with this mysterious error.

To which port "ListUtil.c" might belong to?

Rebuilding autotools (which I suspected first) also fails ...


-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).


pgpPktTvGRFUj.pgp
Description: OpenPGP digital signature


Re: svn commit: r318757 - head

2017-05-24 Thread O. Hartmann
Am Wed, 24 May 2017 08:06:34 -0500
Larry Rosenman  schrieb:

> The initial failure:
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=peripatus&dt=2017-05-23%2019%3A17%3A42
> 
> I then recompiled perl, and got:
> borg.lerctr.org /home/pgbuildfarm $ cd /home/pgbuildfarm/bin/latest
> && ./run_branches.pl --run-all --config=/home/pgbuildfarm/conf/build-farm.conf
> Socket.c: loadable library and perl binaries are mismatched (got handshake key
> 0xd200080, needed 0xdf00080) borg.lerctr.org /home/pgbuildfarm/bin/latest $
> 
> force rebuilding and installing perl and all p5-* ports fixed that. 
> 
> 
> 

I ran into a similar problem, several ports do not build due to a mysterious 
error from
perl:

ListUtil.c: loadable library and perl binaries are mismatched (got handshake key
0xd200080, needed 0xdf00080)

lang/perl5.24 can be rebuild, but almost every p5* port bails out with that 
error shown
above. Rebuilding p5-* ports is impossible.

Running   FreeBSD 12.0-CURRENT #3 r318789: Wed May 24 18:03:48 CEST 2017 amd64 
with
WITH_LLD_IS_LD=yes.

-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).


pgpvK19nw_6co.pgp
Description: OpenPGP digital signature


Re: svn commit: r318750 - in head/contrib: binutils/bfd binutils/ld binutils/ld/emulparams gcc gcc/config/s390

2017-05-23 Thread O. Hartmann
Am Tue, 23 May 2017 12:52:35 -0500
Pedro Giffuni  schrieb:

> On 23/05/2017 12:12, O. Hartmann wrote:
> > Am Tue, 23 May 2017 16:38:10 + (UTC)
> > "Pedro F. Giffuni"  schrieb:
> >  
> >> Author: pfg
> >> Date: Tue May 23 16:38:10 2017
> >> New Revision: 318750
> >> URL: https://svnweb.freebsd.org/changeset/base/318750
> >>
> >> Log:
> >>Bring some rough support for FreeBSD S/390 to the GNU toolchain.
> >>
> >>This is no-op and only for reference: the S/390 port seems to be elusive
> >>in the BSDs so it is convenient to keep some trace from past efforts.
> >>It is likely newer attempts will focus on a newer toolchain using clang
> >>instead.
> >>
> >>Obtained from:  Perforce depot/projects/s390
> >>
> >> Added:
> >>head/contrib/binutils/ld/emulparams/elf64_s390_fbsd.sh   (contents, 
> >> props changed)
> >>head/contrib/binutils/ld/emulparams/elf_s390_fbsd.sh   (contents, props 
> >> changed)
> >>head/contrib/gcc/config/s390/freebsd.h
> >>   - copied, changed from r318546, head/contrib/gcc/config/s390/linux.h
> >> Modified:
> >>head/contrib/binutils/bfd/config.bfd
> >>head/contrib/binutils/ld/configure.tgt
> >>head/contrib/gcc/config.gcc  
> ...
> >> Buildworld fails on r318751 with a "Segmentation fault" error as shown 
> >> below:
> >>
> >> Building /usr/obj/usr/src/lib/libkiconv/_libinstall
> >> --- lib/libmd__L ---
> >> --- skein_block_asm.o ---
> >> Segmentation fault
> >> *** [skein_block_asm.o] Error code 139
> >>
> >> make[4]: stopped in /usr/src/lib/libmd
> >> .ERROR_TARGET='skein_block_asm.o'
> >> .ERROR_META_FILE='/usr/obj/usr/src/lib/libmd/skein_block_asm.o.meta'
> >> .MAKE.LEVEL='4'
> >> MAKEFILE=''
> >>
> >>
> >> Host is running recent CURRENT: FreeBSD 12.0-CURRENT #124 r318748: Tue May 
> >> 23
> >> 18:52:59 CEST 2017 amd64  
> 
> It shouldn't be related to this change:
> 
> 1) This only affects s390 configuration which is never activated
> 2) I did run a tinderbox build to make sure nothing was affected (the 
> only thing failing was an unrelated powerpc warning that was fixed).
> 
> Pedro.

Hello,

the problem could be resolved by deleting the /usr/obj folder and start a clean 
build
again.

Regards,
Oliver


-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).


pgpZl_TwM8eQC.pgp
Description: OpenPGP digital signature


Re: svn commit: r318750 - in head/contrib: binutils/bfd binutils/ld binutils/ld/emulparams gcc gcc/config/s390

2017-05-23 Thread O. Hartmann
t;   extra_headers=
>   ;;
> +s390-*-freebsd*)
> + tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} s390/freebsd.h"
> + ;;
>  s390-*-linux*)
>   tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h"
>   tmake_file="${tmake_file} t-dfprules s390/t-crtstuff s390/t-linux"
>   ;;
> +s390x-*-freebsd*)
> + tm_file="s390/s390.h s390/s390x.h dbxelf.h elfos.h ${fbsd_tm_file}
> s390/freebsd.h"
> + tm_p_file=s390/s390-protos.h
> + md_file=s390/s390.md
> + out_file=s390/s390.c
> + ;;
>  s390x-*-linux*)
>   tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h 
> s390/linux.h"
>   tm_p_file=s390/s390-protos.h
> 
> Copied and modified: head/contrib/gcc/config/s390/freebsd.h (from r318546,
> head/contrib/gcc/config/s390/linux.h)
> ==
>  ---
> head/contrib/gcc/config/s390/linux.h  Fri May 19 17:14:29 2017
> (r318546,
> copy source) +++ head/contrib/gcc/config/s390/freebsd.h   Tue May 23 
> 16:38:10
> 2017  (r318750) @@ -1,4 +1,4 @@ -/* Definitions for Linux for S/390.
> +/* Definitions for FreeBSD for S/390.
> Copyright (C) 1999, 2000, 2001, 2002, 2004, 2005, 2006
> Free Software Foundation, Inc.
> Contributed by Hartmut Penner (hpen...@de.ibm.com) and
> @@ -21,25 +21,26 @@ along with GCC; see the file COPYING.  I
>  Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
>  02110-1301, USA.  */
>  
> -#ifndef _LINUX_H
> -#define _LINUX_H
> +#ifndef _CONFIG_S390_FREEBSD_H
> +#define _CONFIG_S390_FREEBSD_H
>  
>  /* Target specific version string.  */
>  
>  #ifdef DEFAULT_TARGET_64BIT
>  #undef  TARGET_VERSION
> -#define TARGET_VERSION fprintf (stderr, " (Linux for zSeries)");
> +#define TARGET_VERSION fprintf (stderr, " (FreeBSD for zSeries)");
>  #else
>  #undef  TARGET_VERSION
> -#define TARGET_VERSION fprintf (stderr, " (Linux for S/390)");
> +#define TARGET_VERSION fprintf (stderr, " (FreeBSD for S/390)");
>  #endif
>  
>  
>  /* Target specific type definitions.  */
>  
>  /* ??? Do we really want long as size_t on 31-bit?  */
> +/* Answer is yes for FreeBSD. */
>  #undef  SIZE_TYPE
> -#define SIZE_TYPE (TARGET_64BIT ? "long unsigned int" : "long unsigned int")
> +#define SIZE_TYPE (TARGET_64BIT ? "long unsigned int" : "unsigned int")
>  #undef  PTRDIFF_TYPE
>  #define PTRDIFF_TYPE (TARGET_64BIT ? "long int" : "int")
>  
> @@ -48,16 +49,8 @@ Software Foundation, 51 Franklin Street,
>  #undef  WCHAR_TYPE_SIZE
>  #define WCHAR_TYPE_SIZE 32
>  
> -
> -/* Target specific preprocessor settings.  */
> -
> -#define TARGET_OS_CPP_BUILTINS() \
> -  do \
> -{\
> -  LINUX_TARGET_OS_CPP_BUILTINS();\
> -}\
> -  while (0)
> -
> +#undef DEFAULT_SIGNED_CHAR
> +#define DEFAULT_SIGNED_CHAR 1
>  
>  /* Target specific assembler settings.  */
>  
> @@ -92,7 +85,7 @@ Software Foundation, 51 Franklin Street,
>  
>  #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
>  
> -#define MD_UNWIND_SUPPORT "config/s390/linux-unwind.h"
> +#define MD_UNWIND_SUPPORT "config/s390/freebsd-unwind.h"
>  
>  #ifdef TARGET_LIBC_PROVIDES_SSP
>  /* s390 glibc provides __stack_chk_guard in 0x14(tp),
> @@ -103,4 +96,10 @@ Software Foundation, 51 Franklin Street,
>  /* Define if long doubles should be mangled as 'g'.  */
>  #define TARGET_ALTERNATE_LONG_DOUBLE_MANGLING
>  
> +/* Override the default comment-starter of "/APP" from unix.h.  */
> +#undef  ASM_APP_ON
> +#define ASM_APP_ON   "#APP\n"
> +#undef  ASM_APP_OFF
> +#define ASM_APP_OFF  "#NO_APP\n"
> +
>  #endif
> ___
> svn-src-h...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Buildworld fails on r318751 with a "Segmentation fault" error as shown below:

Building /usr/obj/usr/src/lib/libkiconv/_libinstall
--- lib/libmd__L ---
--- skein_block_asm.o ---
Segmentation fault
*** [skein_block_asm.o] Error code 139

make[4]: stopped in /usr/src/lib/libmd
.ERROR_TARGET='skein_block_asm.o'
.ERROR_META_FILE='/usr/obj/usr/src/lib/libmd/skein_block_asm.o.meta'
.MAKE.LEVEL='4'
MAKEFILE=''


Host is running recent CURRENT: FreeBSD 12.0-CURRENT #124 r318748: Tue May 23 
18:52:59
CEST 2017 amd64
-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).


pgpTdxdcpYySn.pgp
Description: OpenPGP digital signature


Re: svn commit: r318008 - head/sys/modules

2017-05-08 Thread O. Hartmann
On Tue, 9 May 2017 04:59:05 + (UTC)
Ngie Cooper  wrote:

> Author: ngie
> Date: Tue May  9 04:59:05 2017
> New Revision: 318008
> URL: https://svnweb.freebsd.org/changeset/base/318008
> 
> Log:
>   Only compile tests/ if MK_TESTS != no or ALL_MODULES is defined
>   
>   MFC after:  3 weeks
>   Sponsored by:   Dell EMC Isilon
> 
> Modified:
>   head/sys/modules/Makefile
> 
> Modified: head/sys/modules/Makefile
> ==
> --- head/sys/modules/Makefile Tue May  9 04:56:14 2017(r318007)
> +++ head/sys/modules/Makefile Tue May  9 04:59:05 2017(r318008)
> @@ -356,8 +356,6 @@ SUBDIR=   \
>   sysvipc \
>   tcp \
>   ${_ti} \
> - tests/framework \
> - tests/callout_test \
>   tl \
>   tmpfs \
>   ${_toecore} \
> @@ -516,6 +514,10 @@ _rtwnfw= rtwnfw
>  _cxgbe=  cxgbe
>  .endif
>  
> +.if ${MK_TESTS} != "no" || defined(ALL_MODULES)
> +SUBDIR+= tests
> +.endif
> +
>  .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
>  SUBDIR+= zfs
>  .endif
> ___
> svn-src-h...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Ooopsie ... ;-)

Something went wrong after I sucked in this commit just a few seconds ago,
compiling kernel failed:

[...]
usr/src/sys" WITH_EXTRA_TCP_STACKS="YES" make  obj
make[3]: "/usr/src/sys/modules/Makefile" line 517: Malformed conditional
(${MK_TESTS} != "no" || defined(ALL_MODULES)) make[3]: Fatal errors encountered
-- cannot continue make[3]: stopped in /usr/src/sys/modules
.ERROR_TARGET=''
.ERROR_META_FILE=''
.MAKE.LEVEL='3'
MAKEFILE=''
.MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose'
.CURDIR='/usr/src/sys/modules'
.MAKE='make'
.OBJDIR='/usr/obj/usr/src/sys/FREYJA/modules/usr/src/sys/modules'
.TARGETS='obj'
DESTDIR=''
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r316874 - head/sys/kern

2017-04-16 Thread O. Hartmann
Am Sat, 15 Apr 2017 14:22:57 -0500
Larry Rosenman  schrieb:

> This looks MUCH better, startup was it’s usual speedy self.
> 
>  
> 
>  
> 

... same here with FreeBSD 12.0-CURRENT #23 r316999: Sun Apr 16 07:28:14 CEST 
2017 amd64.

Systems boot as usual again - speedy and reliable.

Regards,
Oliver

-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).


pgp8v8lEYzBuu.pgp
Description: OpenPGP digital signature


Re: svn commit: r316874 - head/sys/kern

2017-04-15 Thread O. Hartmann
Am Sat, 15 Apr 2017 08:05:23 -0500
Larry Rosenman  schrieb:

> On 4/15/17, 6:00 AM, "Maxim Sobolev"  of
> sobo...@freebsd.org> wrote:
> 
> Peter, Ngie, none of this stuff is really directly related to the
> shutdown(2) change, so I'll probably let Hiroki to clean it up.
> 
> -Max
>  
> 
> I’ve backed off to my previous root.  Is someone working on this?  It’s 
> PAINFUL.
> 
[...]

Processes do not even hang when system is booting/spinning up.

On my router project, I've running asterisk13 on a small appliance. Starting 
asterisk
with "service asterisk start" starts the service, but then, stopping the 
service calling
"service asterisk stop" reports

Asterisk ending (0).

but the process is still running as top reveals:

  PID USERNAME   THR PRI NICE   SIZERES STATE   C   TIMEWCPU COMMAN
 1352 asterisk19  520   105M 25284K uwrlck  3  17:40  67.94% asteri
[...]

This is weird :-(

kill -9 1352 works. Finally.

Regards,
Oliver
-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).


pgpFSh2qjxy1Z.pgp
Description: OpenPGP digital signature


Re: svn commit: r315948 - in head: bin/csh contrib/tcsh contrib/tcsh/config contrib/tcsh/nls contrib/tcsh/nls/C contrib/tcsh/nls/et contrib/tcsh/nls/finnish contrib/tcsh/nls/french contrib/tcsh/nls/ge

2017-03-26 Thread O. Hartmann
On Sun, 26 Mar 2017 16:07:57 -0700
Ngie Cooper  wrote:

> > On Mar 25, 2017, at 13:19, Chagin Dmitry  wrote:
> >   
> >> On Sat, Mar 25, 2017 at 10:45:30AM -0700, Ngie Cooper wrote:
> >>   
> >>> On Mar 25, 2017, at 06:32, Dmitry Chagin  wrote:
> >>> 
> >>> Author: dchagin
> >>> Date: Sat Mar 25 13:32:28 2017
> >>> New Revision: 315948
> >>> URL: https://svnweb.freebsd.org/changeset/base/315948
> >>> 
> >>> Log:
> >>> Update to tcsh 6.20.00  
> >> 
> >> Relnotes: yes
> >>   
> > don't think it matters,
> >   
> >> Should this be MFCed?
> >>   
> > I did not plan  
> 
> Hi Dmitry,
> 
> That's unfortunate :(..
> 
> - Release notes help various groups determining/mitigating risk when
> upgrading FreeBSD. In particular, if you're a consumer of tcsh, a new version
> could break existing scripts, or alternatively, make them work better(/with
> less hacks).
> - MFCing changes like this would be incredibly helpful. In theory, new
> versions should result in a combination of bugfixes to existing features and
> enhancements.
> - It makes it easier to deal with toolchain upgrades.
> - In theory, if the version of the newer forked/tip branch is equivalent to
> the older forked branch, it's easier to assume that the behavior on the two
> branches is equivalent. Personally, I don't care too much about *csh, but I
> know people that do, and I work for a company that kind of does, because it
> affects users logging into our appliances. Thanks! -Ngie
> ___ svn-src-h...@freebsd.org
> mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

+1

Kind regards,

oh
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r315733 - in head: include lib/libc/gen libexec/getty

2017-03-22 Thread O. Hartmann
Am Wed, 22 Mar 2017 19:00:42 + (UTC)
Warner Losh  schrieb:

> Author: imp
> Date: Wed Mar 22 19:00:41 2017
> New Revision: 315733
> URL: https://svnweb.freebsd.org/changeset/base/315733
> 
> Log:
>   Impelemnt ttys onifexists in init.
>   
>   Implement a new init(8) option in /etc/ttys. If this option is present
>   on the entry in /etc/ttys, the entry will be active if and only if it
>   exists.  If the name starts with a '/', it will be considered an
>   absolute path. If not, it will be a path relative to /dev.
>   
>   This allows one to turn off video console getty that aren't present
>   (while running a getty on them even when they aren't the system
>   console). Likewise with serial ports.
>   
>   It differs from onifconsole in only requiring the device exist rather
>   than it be listed as one of the system consoles.
>   
>   Sponsored by: Netflix
>   Differential Revision: https://reviews.freebsd.org/D10037
> 
> Modified:
>   head/include/ttyent.h
>   head/lib/libc/gen/getttyent.c
>   head/libexec/getty/ttys.5
> 
> Modified: head/include/ttyent.h
> ==
> --- head/include/ttyent.h Wed Mar 22 18:45:13 2017(r315732)
> +++ head/include/ttyent.h Wed Mar 22 19:00:41 2017(r315733)
> @@ -38,6 +38,7 @@
>  #define  _TTYS_OFF   "off"
>  #define  _TTYS_ON"on"
>  #define  _TTYS_ONIFCONSOLE "onifconsole"
> +#define  _TTYS_ONIFEXISTS "onifexists"
>  #define  _TTYS_SECURE"secure"
>  #define  _TTYS_INSECURE  "insecure"
>  #define  _TTYS_WINDOW"window"
> 
> Modified: head/lib/libc/gen/getttyent.c
> ==
> --- head/lib/libc/gen/getttyent.c Wed Mar 22 18:45:13 2017
> (r315732)
> +++ head/lib/libc/gen/getttyent.c Wed Mar 22 19:00:41 2017
> (r315733)
> @@ -97,6 +97,26 @@ done:
>   return (0);
>  }
>  
> +static int
> +auto_exists_status(const char *ty_name)
> +{
> + struct stat sb;
> + char *dev;
> + int rv;
> +
> + rv = 0;
> + if (*ty_name == '/')
> + asprintf(&dev, "%s", ty_name);
> + else
> + asprintf(&dev, "/dev/%s", ty_name);
> + if (dev == NULL)
> + return 0;
> + if (stat(dev, &sb) == 0)
> + rv = TTY_ON;
> + free(dev);
> + return (rv);
> +}
> +
>  struct ttyent *
>  getttyent(void)
>  {
> @@ -161,6 +181,8 @@ getttyent(void)
>   tty.ty_status |= TTY_ON;
>   else if (scmp(_TTYS_ONIFCONSOLE))
>   tty.ty_status |= auto_tty_status(tty.ty_name);
> + else if (scmp(_TTYS_ONIFEXISTS))
> + tty.ty_status |= auto_exists_status(tty.ty_name);
>   else if (scmp(_TTYS_SECURE))
>   tty.ty_status |= TTY_SECURE;
>   else if (scmp(_TTYS_INSECURE))
> 
> Modified: head/libexec/getty/ttys.5
> ==
> --- head/libexec/getty/ttys.5 Wed Mar 22 18:45:13 2017(r315732)
> +++ head/libexec/getty/ttys.5 Wed Mar 22 19:00:41 2017(r315733)
> @@ -28,7 +28,7 @@
>  .\" from: @(#)ttys.5 8.1 (Berkeley) 6/4/93
>  .\" $FreeBSD$
>  .\" "
> -.Dd March 9, 2014
> +.Dd March 16, 2017
>  .Dt TTYS 5
>  .Os
>  .Sh NAME
> @@ -105,6 +105,12 @@ should (should not) execute the command 
>  ``onifconsole'' will cause this line to be enabled if and only if it is
>  an active kernel console device (it is equivalent to ``on'' in this
>  case).
> +The flag ``onifexists'' will cause this line to be enabled if and only
> +if the name exists.
> +If the name starts with a ``/'', it will be considered an absolute
> +path.
> +Otherwise, it is considered a path relative to
> +.Pa /dev .
>  The flag ``secure'' (if the console is enabled) allows users with a
>  uid of 0 to login on
>  this line.
> _______
> svn-src-h...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"
Breaks buildworld:

[...]
/usr/src/lib/libc/gen/getttyent.c:114:6: warning: implicit declaration of 
function 'stat'
is invalid in C99 [-Wimplicit-function-declaration] if (stat(dev, &sb) == 0)
^
1 warning and 1 error generated.
*** [getttyent.pico] Error code 1

make[4]: stopped in /usr/src/lib/libc


Regards,

oh
-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).


pgpODSx5rYylL.pgp
Description: OpenPGP digital signature


Re: svn commit: r314961 - head/usr.bin/localedef

2017-03-09 Thread O. Hartmann
Mar  9 15:21:03 2017
> (r314961)
> @@ -1,5 +1,5 @@
>  /*
> - * Copyright 2010 Nexenta Systems, Inc.  All rights reserved.
> + * Copyright 2017 Nexenta Systems, Inc.
>   * Copyright 2015 John Marino 
>   *
>   * This source code is derived from the illumos localedef command, and
> @@ -60,6 +60,7 @@ void warn(const char *, ...);
>  int putl_category(const char *, FILE *);
>  int wr_category(void *, size_t, FILE *);
>  FILE *open_category(void);
> +void delete_category(FILE *);
>  void close_category(FILE *);
>  void copy_category(char *);
>  const char *category_name(void);
> 
> Modified: head/usr.bin/localedef/time.c
> ==
> --- head/usr.bin/localedef/time.c Thu Mar  9 13:41:57 2017
> (r314960)
> +++ head/usr.bin/localedef/time.c Thu Mar  9 15:21:03 2017
> (r314961)
> @@ -1,5 +1,5 @@
>  /*
> - * Copyright 2010 Nexenta Systems, Inc.  All rights reserved.
> + * Copyright 2017 Nexenta Systems, Inc.
>   * Copyright 2015 John Marino 
>   *
>   * This source code is derived from the illumos localedef command, and
> @@ -78,7 +78,7 @@ add_time_str(wchar_t *wcs)
>   break;
>   case T_DATE_FMT:
>   /*
> -  * This one is a Solaris extension, Too bad date just
> +  * This one is a Solaris extension. Too bad date just
>* doesn't use %c, which would be simpler.
>*/
>   tm.date_fmt = str;
> ___
> svn-src-h...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Something broke buildworld, I presume:

/usr/src/share/colldef/af_ZA.UTF-8.src: 2421: error: Bad file descriptor
*** [af_ZA.ISO8859-1.LC_COLLATE] Error code 4

make[4]: stopped in /usr/src/share/colldef
.ERROR_TARGET='af_ZA.ISO8859-1.LC_COLLATE'


-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).


pgpKerPZmZZ7j.pgp
Description: OpenPGP digital signature


Re: svn commit: r313814 - head/sys/kern

2017-02-16 Thread O. Hartmann
t);
>  static int sched_pickcpu(struct thread *, int);
> @@ -1040,16 +1040,14 @@ tdq_idled(struct tdq *tdq)
>   * Notify a remote cpu of new work.  Sends an IPI if criteria are met.
>   */
>  static void
> -tdq_notify(struct tdq *tdq, struct thread *td)
> +tdq_notify(struct tdq *tdq, int pri)
>  {
>   struct thread *ctd;
> - int pri;
>   int cpu;
>  
>   if (tdq->tdq_ipipending)
>   return;
> - cpu = td_get_sched(td)->ts_cpu;
> - pri = td->td_priority;
> + cpu = TD_ID(tdq);
>   ctd = pcpu_find(cpu)->pc_curthread;
>   if (!sched_shouldpreempt(pri, ctd->td_priority, 1))
>   return;
> @@ -1675,6 +1673,22 @@ sched_pctcpu_update(struct td_sched *ts,
>   ts->ts_ltick = t;
>  }
>  
> +static void
> +sched_check_preempt(struct tdq *tdq, struct thread *td)
> +{
> +
> + KASSERT(TD_IS_RUNNING(td), ("thread is not running"));
> + TDQ_LOCK_ASSERT(tdq, MA_OWNED);
> + KASSERT(tdq == TDQ_CPU(td->td_sched->ts_cpu),
> + ("tdq does not contain td"));
> +
> + if (tdq == TDQ_SELF()) {
> + if (sched_shouldpreempt(tdq->tdq_lowpri, td->td_priority, 0))
> + td->td_owepreempt = 1;
> + } else
> + tdq_notify(tdq, tdq->tdq_lowpri);
> +}
> +
>  /*
>   * Adjust the priority of a thread.  Move it to the appropriate run-queue
>   * if necessary.  This is the back-end for several priority related
> @@ -1726,6 +1740,9 @@ sched_thread_priority(struct thread *td,
>   tdq->tdq_lowpri = prio;
>   else if (tdq->tdq_lowpri == oldpri)
>   tdq_setlowpri(tdq, td);
> +
> + if (oldpri < prio)
> + sched_check_preempt(tdq, td);
>   return;
>   }
>   td->td_priority = prio;
> @@ -1854,7 +1871,7 @@ sched_switch_migrate(struct tdq *tdq, st
>*/
>   tdq_lock_pair(tdn, tdq);
>   tdq_add(tdn, td, flags);
> - tdq_notify(tdn, td);
> + tdq_notify(tdn, td->td_priority);
>   TDQ_UNLOCK(tdn);
>   spinlock_exit();
>  #endif
> @@ -2429,7 +2446,7 @@ sched_add(struct thread *td, int flags)
>       tdq = sched_setcpu(td, cpu, flags);
>   tdq_add(tdq, td, flags);
>   if (cpu != PCPU_GET(cpuid)) {
> - tdq_notify(tdq, td);
> + tdq_notify(tdq, td->td_priority);
>   return;
>   }
>  #else
> ___
> svn-src-h...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

 This commit breaks buildkernel:

--- sched_ule.o ---
/usr/src/sys/kern/sched_ule.c:1050:8: error: implicit declaration of function 
'TD_ID' is
invalid in C99 [-Werror,-Wimplicit-function-declaration] cpu = TD_ID(tdq);
  ^
1 error generated.
*** [sched_ule.o] Error code 1

-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).


pgpRFlgYSk7t3.pgp
Description: OpenPGP digital signature


Re: svn commit: r313701 - in head: sbin/mdconfig sys/dev/md

2017-02-13 Thread O. Hartmann
Am Mon, 13 Feb 2017 17:44:07 + (UTC)
"Stephen J. Kiernan"  schrieb:

> Author: stevek
> Date: Mon Feb 13 17:44:07 2017
> New Revision: 313701
> URL: https://svnweb.freebsd.org/changeset/base/313701
> 
> Log:
>   For MD_PRELOAD type md(4) devices, if there is a file name in the preloaded
>   meta-data, copy it into the softc structure.
>   
>   When returning md(4) device details to the caller, include the file name in
>   any MD_PRELOAD type devices if it is set (first character is not NUL.)
>   
>   In mdconfig, for "preload" type md(4) devices, if there is file config
>   available, print it in the file column of the output.
>   
>   Reviewed by:brooks
>   Approved by:sjg (mentor)
>   MFC after:  1 month
>   Sponsored by:   Juniper Networks, Inc.
>   Differential Revision:  https://reviews.freebsd.org/D9529
> 
> Modified:
>   head/sbin/mdconfig/mdconfig.c
>   head/sys/dev/md/md.c
> 
> Modified: head/sbin/mdconfig/mdconfig.c
> ==
> --- head/sbin/mdconfig/mdconfig.c Mon Feb 13 16:11:37 2017
> (r313700)
> +++ head/sbin/mdconfig/mdconfig.c Mon Feb 13 17:44:07 2017
> (r313701)
> @@ -452,7 +452,8 @@ md_list(const char *units, int opt, cons
>   }
>   gc = &pp->lg_config;
>   type = geom_config_get(gc, "type");
> - if (strcmp(type, "vnode") == 0) {
> + if (strcmp(type, "vnode") == 0 ||
> + strcmp(type, "preload") == 0) {
>   file = geom_config_get(gc, "file");
>   if (fflag != NULL &&
>   strcmp(fflag, file) != 0)
> 
> Modified: head/sys/dev/md/md.c
> ==
> --- head/sys/dev/md/md.c  Mon Feb 13 16:11:37 2017(r313700)
> +++ head/sys/dev/md/md.c  Mon Feb 13 17:44:07 2017(r313701)
> @@ -1689,7 +1689,8 @@ xmdctlioctl(struct cdev *dev, u_long cmd
>   mdio->md_options = sc->flags;
>   mdio->md_mediasize = sc->mediasize;
>   mdio->md_sectorsize = sc->sectorsize;
> - if (sc->type == MD_VNODE)
> + if (sc->type == MD_VNODE ||
> + (sc->type == MD_PRELOAD && mdio->md_file != NULL))
>   error = copyout(sc->file, mdio->md_file,
>   strlen(sc->file) + 1);
>   return (error);
> @@ -1733,6 +1734,8 @@ md_preloaded(u_char *image, size_t lengt
>   sc->pl_ptr = image;
>   sc->pl_len = length;
>   sc->start = mdstart_preload;
> + if (name != NULL)
> + strlcpy(sc->file, name, sizeof(sc->file));
>  #if defined(MD_ROOT) && !defined(ROOTDEVNAME)
>   if (sc->unit == 0)
>   rootdevnames[0] = MD_ROOT_FSTYPE ":/dev/md0";
> @@ -1835,7 +1838,8 @@ g_md_dumpconf(struct sbuf *sb, const cha
>   sbuf_printf(sb, " fs %ju", (uintmax_t) mp->fwsectors);
>   sbuf_printf(sb, " l %ju", (uintmax_t) mp->mediasize);
>   sbuf_printf(sb, " t %s", type);
> - if (mp->type == MD_VNODE && mp->vnode != NULL)
> + if ((mp->type == MD_VNODE && mp->vnode != NULL) ||
> + (mp->type == MD_PRELOAD && mp->file[0] != '\0'))
>   sbuf_printf(sb, " file %s", mp->file);
>   } else {
>   sbuf_printf(sb, "%s%d\n", indent,
> @@ -1855,7 +1859,8 @@ g_md_dumpconf(struct sbuf *sb, const cha
>   "read-only");
>   sbuf_printf(sb, "%s%s\n", indent,
>   type);
> - if (mp->type == MD_VNODE && mp->vnode != NULL) {
> + if ((mp->type == MD_VNODE && mp->vnode != NULL) ||
> + (mp->type == MD_PRELOAD && mp->file[0] != '\0'))
>   sbuf_printf(sb, "%s", indent);
>   g_conf_printf_escaped(sb, "%s", mp->file);
>   sbuf_printf(sb, "\n");
> ___
> svn-src-h...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

This broke kernel build on recent CURRENT:

[...]
===> mdio (all)
--- all_subdir_md ---
--- md.o ---
/usr/src/sys/modules/md/../../dev/md/md.c:1870:1: error: extraneous closing 
brace ('}')
}
^
1 error generated.
*** [md.o] Error code 1

make[4]: stopped in /usr/src/sys/modules/md


Kind regards,

Oliver


pgpuE0eGfIoz9.pgp
Description: OpenPGP digital signature


Re: svn commit: r313529 - head/sys/netinet

2017-02-09 Thread O. Hartmann
On Fri, 10 Feb 2017 06:01:47 + (UTC)
Ermal Luçi  wrote:

> Author: eri
> Date: Fri Feb 10 06:01:47 2017
> New Revision: 313529
> URL: https://svnweb.freebsd.org/changeset/base/313529
> 
> Log:
>   Fix build after r313524
>   
>   Reported-by: ohartm...@walstatt.org
> 
> Modified:
>   head/sys/netinet/udp_usrreq.c
> 
> Modified: head/sys/netinet/udp_usrreq.c
> ==
> --- head/sys/netinet/udp_usrreq.c Fri Feb 10 05:58:16 2017
> (r313528) +++ head/sys/netinet/udp_usrreq.c   Fri Feb 10 06:01:47
> 2017  (r313529) @@ -636,7 +636,7 @@ udp_input(struct mbuf **mp, int
> *offp, i goto badunlocked;
>   }
>   UDP_PROBE(receive, NULL, last, ip, last, uh);
> - if (udp_append(last, ip, m, iphlen, udp_in) == 0) 
> + if (udp_append(last, ip, m, iphlen, udpin) == 0) 
>   INP_RUNLOCK(last);
>   inp_lost:
>   INP_INFO_RUNLOCK(pcbinfo);
> @@ -726,7 +726,7 @@ udp_input(struct mbuf **mp, int *offp, i
>   }
>  
>   UDP_PROBE(receive, NULL, inp, ip, inp, uh);
> - if (udp_append(inp, ip, m, iphlen, udp_in) == 0) 
> + if (udp_append(inp, ip, m, iphlen, udpin) == 0) 
>   INP_RUNLOCK(inp);
>   return (IPPROTO_DONE);
>  
> ___
> svn-src-h...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Still (r313529) buildkernel breakage:

[...]
/usr/src/sys/netinet6/ip6_output.c:1741:10: error: duplicate case value '65'
case IPV6_BINDMULTI:
 ^
/usr/src/sys/netinet6/in6.h:492:25: note: expanded from macro 'IPV6_BINDMULTI'
#define IPV6_BINDMULTI  65 /* bool; allow multibind to same addr/port */
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Re: svn commit: r313524 - in head/sys: netinet netinet6

2017-02-09 Thread O. Hartmann
On Fri, 10 Feb 2017 05:16:14 + (UTC)
Ermal Luçi  wrote:

> Author: eri
> Date: Fri Feb 10 05:16:14 2017
> New Revision: 313524
> URL: https://svnweb.freebsd.org/changeset/base/313524
> 
> Log:
>   The patch provides the same socket option as Linux IP_ORIGDSTADDR.
>   Unfortunately they will have different integer value due to Linux value
> being already assigned in FreeBSD. 
>   The patch is similar to IP_RECVDSTADDR but also provides the destination
> port value to the application. 
>   This allows/improves implementation of transparent proxies on UDP sockets
> due to having the whole information on forwarded packets. 
>   Sponsored-by: rsync.net
>   Differential Revision: D9235
>   Reviewed-by: adrian
> 
> Modified:
>   head/sys/netinet/in.h
>   head/sys/netinet/in_pcb.c
>   head/sys/netinet/in_pcb.h
>   head/sys/netinet/ip_output.c
>   head/sys/netinet/udp_usrreq.c
>   head/sys/netinet6/in6.h
>   head/sys/netinet6/in6_pcb.c
>   head/sys/netinet6/in6_pcb.h
>   head/sys/netinet6/ip6_output.c
>   head/sys/netinet6/raw_ip6.c
>   head/sys/netinet6/udp6_usrreq.c
> 
> Modified: head/sys/netinet/in.h
> ==
> --- head/sys/netinet/in.h Fri Feb 10 05:14:19 2017(r313523)
> +++ head/sys/netinet/in.h Fri Feb 10 05:16:14 2017(r313524)
> @@ -433,6 +433,8 @@ __END_DECLS
>  #define  IP_BINDANY  24   /* bool: allow bind to any
> address */ #defineIP_BINDMULTI25   /* bool: allow
> multiple listeners on a tuple */ #define  IP_RSS_LISTEN_BUCKET
> 26   /* int; set RSS listen bucket */ +#define
> IP_ORIGDSTADDR27   /* bool: receive IP dst addr/port w/dgram
> */ +#define   IP_RECVORIGDSTADDR  IP_ORIGDSTADDR 
>  /*
>   * Options for controlling the firewall and dummynet.
> 
> Modified: head/sys/netinet/in_pcb.c
> ==
> --- head/sys/netinet/in_pcb.c Fri Feb 10 05:14:19 2017(r313523)
> +++ head/sys/netinet/in_pcb.c Fri Feb 10 05:16:14 2017(r313524)
> @@ -2492,6 +2492,10 @@ db_print_inpflags(int inp_flags)
>   db_printf("%sINP_RECVDSTADDR", comma ? ", " : "");
>   comma = 1;
>   }
> + if (inp_flags & INP_ORIGDSTADDR) {
> + db_printf("%sINP_ORIGDSTADDR", comma ? ", " : "");
> + comma = 1;
> + }
>   if (inp_flags & INP_HDRINCL) {
>   db_printf("%sINP_HDRINCL", comma ? ", " : "");
>   comma = 1;
> 
> Modified: head/sys/netinet/in_pcb.h
> ==
> --- head/sys/netinet/in_pcb.h Fri Feb 10 05:14:19 2017(r313523)
> +++ head/sys/netinet/in_pcb.h Fri Feb 10 05:16:14 2017(r313524)
> @@ -618,6 +618,7 @@ short inp_so_options(const struct inpcb 
>  #define  INP_RECVFLOWID  0x0100 /* populate recv
> datagram with flow info */ #defineINP_RECVRSSBUCKETID
> 0x0200 /* populate recv datagram with bucket id */ #define
> INP_RATE_LIMIT_CHANGED0x0400 /* rate limit needs attention */
> +#define  INP_ORIGDSTADDR 0x0800 /* receive IP dst
> address/port */ /*
>   * Flags passed to in_pcblookup*() functions.
> 
> Modified: head/sys/netinet/ip_output.c
> ==
> --- head/sys/netinet/ip_output.c  Fri Feb 10 05:14:19 2017
> (r313523) +++ head/sys/netinet/ip_output.cFri Feb 10 05:16:14
> 2017  (r313524) @@ -1065,6 +1065,7 @@ ip_ctloutput(struct socket *so,
> struct s case IP_MINTTL:
>   case IP_RECVOPTS:
>   case IP_RECVRETOPTS:
> + case IP_ORIGDSTADDR:
>   case IP_RECVDSTADDR:
>   case IP_RECVTTL:
>   case IP_RECVIF:
> @@ -1126,6 +1127,10 @@ ip_ctloutput(struct socket *so, struct s
>   OPTSET(INP_RECVDSTADDR);
>   break;
>  
> + case IP_ORIGDSTADDR:
> + OPTSET2(INP_ORIGDSTADDR, optval);
> + break;
> +
>   case IP_RECVTTL:
>   OPTSET(INP_RECVTTL);
>   break;
> @@ -1258,6 +1263,7 @@ ip_ctloutput(struct socket *so, struct s
>   case IP_MINTTL:
>   case IP_RECVOPTS:
>   case IP_RECVRETOPTS:
> + case IP_ORIGDSTADDR:
>   case IP_RECVDSTADDR:
>   case IP_RECVTTL:
>   case IP_RECVIF:
> @@ -1303,6 +1309,10 @@ ip_ctloutput(struct socket *so, struct s
>   optval = OPTBIT(INP_RECVDSTADDR);
>   break;
>  
> + case IP_ORIGDSTADDR:
> + optval = OPTBIT2(INP_ORIGDSTADDR);
> + break;
> +
>   case IP_RECVTTL:
>   

Re: svn commit: r312923 - in head/sys: dev/drm2 modules/drm2/drm2

2017-01-28 Thread O. Hartmann
>  MODULE_DEPEND(drmn, iicbus, 1, 1, 1);
> 
> Modified: head/sys/dev/drm2/drm_os_freebsd.h
> ==
> --- head/sys/dev/drm2/drm_os_freebsd.hSat Jan 28 13:25:06 2017
> (r312922)
> +++ head/sys/dev/drm2/drm_os_freebsd.hSat Jan 28 15:43:19 2017
> (r312923)
> @@ -552,7 +552,6 @@ MALLOC_DECLARE(DRM_MEM_QUEUES);
>  MALLOC_DECLARE(DRM_MEM_CMDS);
>  MALLOC_DECLARE(DRM_MEM_MAPPINGS);
>  MALLOC_DECLARE(DRM_MEM_BUFLISTS);
> -MALLOC_DECLARE(DRM_MEM_AGPLISTS);
>  MALLOC_DECLARE(DRM_MEM_CTXBITMAP);
>  MALLOC_DECLARE(DRM_MEM_SGLISTS);
>  MALLOC_DECLARE(DRM_MEM_MM);
> 
> Modified: head/sys/dev/drm2/drm_stub.c
> ==
> --- head/sys/dev/drm2/drm_stub.c  Sat Jan 28 13:25:06 2017
> (r312922)
> +++ head/sys/dev/drm2/drm_stub.c  Sat Jan 28 15:43:19 2017
> (r312923)
> @@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$");
>  
>  #include 
>  #include 
> +#include 
>  
>  #ifdef DRM_DEBUG_DEFAULT_ON
>  unsigned int drm_debug = (DRM_DEBUGBITS_DEBUG | DRM_DEBUGBITS_KMS |
> @@ -315,7 +316,7 @@ void drm_cancel_fill_in_dev(struct drm_d
> DRM_MTRR_WC);
>   DRM_DEBUG("mtrr_del=%d\n", retval);
>   }
> - free(dev->agp, DRM_MEM_AGPLISTS);
> + kfree(dev->agp);
>   dev->agp = NULL;
>  
>   drm_ht_remove(&dev->map_hash);
> @@ -467,7 +468,7 @@ void drm_put_dev(struct drm_device *dev)
>   drm_sysctl_cleanup(dev);
>  
>   if (drm_core_has_AGP(dev) && dev->agp) {
> - free(dev->agp, DRM_MEM_AGPLISTS);
> + kfree(dev->agp);
>   dev->agp = NULL;
>   }
>  
> 
> Modified: head/sys/modules/drm2/drm2/Makefile
> ======
> --- head/sys/modules/drm2/drm2/Makefile   Sat Jan 28 13:25:06 2017
> (r312922)
> +++ head/sys/modules/drm2/drm2/Makefile   Sat Jan 28 15:43:19 2017
> (r312923)
> @@ -48,6 +48,8 @@ SRCS= \
>   ati_pcigart.c
>  #ttm_page_alloc_dma.c
>  
> +CFLAGS+= -I${.CURDIR}/../../../compat/linuxkpi/common/include
> +
>  .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_ARCH} == "powerpc64"
>  SRCS += drm_ioc32.c
>  .endif
> ___
> svn-src-h...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

This "patch" broke buildkernel:

make[4]: stopped in /usr/src/sys/modules/drm2
.ERROR_TARGET='all_subdir_drm2/radeonkms'


-- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).


pgpjtdiJYfbl2.pgp
Description: OpenPGP digital signature


<    1   2