(malloc) Unsupported character in malloc options: 'o'

Jan Beich jbeich at freebsd.org
Wed Dec 7 01:27:10 UTC 2016


Shrikanth B <shrikanthbaikunje at gmail.com> writes:

> I am on FreeBSD 10.1.
> When i run "ln -s 'abort:true' /etc/malloc.conf" as mentioned in
> JEMALLOC(3)  man page, i get flooded with following errors:
>
> (malloc) Unsupported character in malloc options: 'o'
>
> (malloc) Unsupported character in malloc options: 't'
>
> (malloc) Unsupported character in malloc options: ':'
>
> (malloc) Unsupported character in malloc options: 't'
>
> (malloc) Unsupported character in malloc options: 'e'
>
> Any solution for this?

jemalloc 3.0 or later as part of libc in FreeBSD 10.0 or later is no
longer compatible with phkmalloc syntax: MALLOC_OPTIONS vs. MALLOC_CONF.
"(malloc)" prefix above indicates jemalloc, not phkmalloc. So, the error
comes from linking against old libc e.g., from FreeBSD 9.3.

If you can't rebuild the affected component against new libc try setting
both environment variables instead of using /etc/malloc.conf.

  $ export MALLOC_OPTIONS=A MALLOC_CONF=abort:true
  $ /path/to/app


More information about the freebsd-questions mailing list