Menu

#2512 malloc: *** mach_vm_map(size=...) failed

None
open
None
2016-07-14
2016-07-06
No

I'm getting the following weird error when compiling MikTeX 2.9-2016-06-27 on OS X 10.11:

[ 25%] Generating ../../include/miktex/mf.defaults.h
cd /path/to/miktex/work/build/include/miktex && /path/to/miktex/work/build/binlib/cfg --print-classes /path/to/miktex/work/build/Admin/Defaults/mf.defaults > mf.defaults.h
cfg(85707,0x7fff74133000) malloc: *** mach_vm_map(size=140322684301312) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
*** std::bad_alloc
make[2]: *** [include/miktex/mf.defaults.h] Error 1
make[2]: *** Deleting file `include/miktex/mf.defaults.h'
make[2]: Leaving directory `/path/to/miktex/work/build'
make[1]: *** [Admin/Defaults/CMakeFiles/gen-defaults.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

(No patches applied to the source code.)

Discussion

  • Mojca Miklavec

    Mojca Miklavec - 2016-07-06

    If I run the commant manually, here's what I get (I probably have to avoid stripping the debug info from MiKTeX):

    path/to/miktex/work/build/include/miktex > sudo ggdb ../../binlib/cfg
    GNU gdb (GDB) 7.9.1
    /.../
    Type "apropos word" to search for commands related to "word"...
    Reading symbols from ../../binlib/cfg...(no debugging symbols found)...done.
    (gdb) b main
    Breakpoint 1 at 0x100003e24
    (gdb) r --print-classes /path/to/miktex/work/build/Admin/Defaults/mf.defaults
    Starting program: /path/to/miktex/work/build/binlib/cfg --print-classes /path/to/miktex/work/build/Admin/Defaults/mf.defaults
    
    Breakpoint 1, 0x0000000100003e24 in main ()
    (gdb) n
    Single stepping until exit from function main,
    which has no line number information.
    
    Program received signal SIGSEGV, Segmentation fault.
    0x00007fff88d4da30 in longcopy () from /usr/lib/system/libsystem_platform.dylib
    
     
  • Christian Schenk

    Please check the input file: /path/to/miktex/work/build/Admin/Defaults/mf.defaults

    It should loook exactly like this:

    ;; Number of autorounded points per cycle.
    max_wiggle=1000
    
    ;; Space for storing moves in a single octant.
    move_size=20000
    
     
  • Christian Schenk

    • assigned_to: Christian Schenk
     
  • Mojca Miklavec

    Mojca Miklavec - 2016-07-14

    The file looks the same.