sbrk(0) replacement for memory resource tracking? (was: [linimon at FreeBSD.org: svn commit: r425823 - in head: benchmarks/stress-ng cad/cider cad/ngspice_rework databases/mariadb100-server databases/mariadb101-server databases/mariadb55-server databases/virtuoso devel/ace deve...])

Matthias Andree matthias.andree at gmx.de
Thu Nov 10 21:21:35 UTC 2016


Am 10.11.2016 um 02:26 schrieb Mark Linimon:
> FYI.  Unfortunately I do not know what the generic fix is yet.  But at
> least this will prevent the package builders from wasting time right now.
> 
> I will try to keep the following page updated as I learn more:
> 
> https://wiki.freebsd.org/PortsBrokenWithSbrk
> 
> (oops, I forgot I have not put in the proper logfile URLs yet.  Let me
> get started on that.)
> 
> mcl

Please help me understand the issue, and if by adding one or two
introductory paragraphs to the Wiki.

To me it looks like the sbrk() function is going away from our base
system underneath a stable 11-* branch.  If that is true, I'll have to
object to that and request sbrk() be put back, we add a deprecation
notice now (if necessary via errata notice) and pull it only from FreeBSD12.

OTOH, e2fsprogs uses only sbrk(0) to track its overall memory use, and
only to track its resource usage.  I'll be happy to help porting to
something else that serves the same purpose, aka "how much memory am I
using" - but what would that be?

> 
> Modified: head/sysutils/e2fsprogs/Makefile
> ==============================================================================
> --- head/sysutils/e2fsprogs/Makefile	Thu Nov 10 01:08:44 2016	(r425822)
> +++ head/sysutils/e2fsprogs/Makefile	Thu Nov 10 01:21:43 2016	(r425823)
> @@ -14,6 +14,8 @@ LICENSE=	GPLv2
>  
>  PORTSCOUT=	ignore	# cannot handle the version in the directory
>  
> +BROKEN_aarch64=	Fails to link: missing sbrk
> +
>  USES=		cpe gmake pkgconfig tar:xz
>  CPE_VENDOR=	e2fsprogs_project
>  USE_CSTD=	gnu99
> 



More information about the freebsd-hackers mailing list