#13309: Jam segfault on --host-only build.
----------------------------+----------------------------
Reporter: kallisti5 | Owner: bonefish
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Build System | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
----------------------------+----------------------------
Comment (by kallisti5):
valgrind is interesting...
{{{
$ valgrind jam -q \<build\>package
==15351== Memcheck, a memory error detector
==15351== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==15351== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for
copyright info
==15351== Command: jam -q \<build\>package
==15351==
Starting build of type regular ...
AddHaikuImagePackages: package bash not available!
AddHaikuImagePackages: package coreutils not available!
AddHaikuImagePackages: package curl not available!
AddHaikuImagePackages: package freetype not available!
AddHaikuImagePackages: package icu not available!
AddHaikuImagePackages: package libsolv not available!
AddHaikuImagePackages: package zlib not available!
AddHaikuImagePackages: package gcc_syslibs not available!
/home/kallisti5/Code/haiku/src/add-
ons/kernel/bus_managers/config_manager/arch/Jamfile: No such file or
directory
/home/kallisti5/Code/haiku/src/add-
ons/kernel/bus_managers/isa/arch/Jamfile: No such file or directory
/home/kallisti5/Code/haiku/src/add-
ons/kernel/bus_managers/pci/arch/Jamfile: No such file or directory
==15351== Stack overflow in thread #1: can't grow stack to 0xffe801000
==15351==
==15351== Process terminating with default action of signal 11 (SIGSEGV)
==15351== Access not within mapped region at address 0xFFE801FC8
==15351== Stack overflow in thread #1: can't grow stack to 0xffe801000
==15351== at 0x1142AC: jcache (in /usr/local/bin/jam)
==15351== If you believe this happened as a result of a stack
==15351== overflow in your program's main thread (unlikely but
==15351== possible), you can try to increase the size of the
==15351== main thread stack using the --main-stacksize= flag.
==15351== The main thread stack size used in this run was 8388608.
==15351== Stack overflow in thread #1: can't grow stack to 0xffe801000
==15351==
==15351== Process terminating with default action of signal 11 (SIGSEGV)
==15351== Access not within mapped region at address 0xFFE801FC0
==15351== Stack overflow in thread #1: can't grow stack to 0xffe801000
==15351== at 0x4A276C0: _vgnU_freeres (in /usr/lib/valgrind
/vgpreload_core-amd64-linux.so)
==15351== If you believe this happened as a result of a stack
==15351== overflow in your program's main thread (unlikely but
==15351== possible), you can try to increase the size of the
==15351== main thread stack using the --main-stacksize= flag.
==15351== The main thread stack size used in this run was 8388608.
==15351==
==15351== HEAP SUMMARY:
==15351== in use at exit: 38,121,591 bytes in 1,001,187 blocks
==15351== total heap usage: 1,679,302 allocs, 678,115 frees, 65,237,832
bytes allocated
==15351==
==15351== LEAK SUMMARY:
==15351== definitely lost: 24 bytes in 1 blocks
==15351== indirectly lost: 0 bytes in 0 blocks
==15351== possibly lost: 0 bytes in 0 blocks
==15351== still reachable: 38,121,567 bytes in 1,001,186 blocks
==15351== suppressed: 0 bytes in 0 blocks
==15351== Rerun with --leak-check=full to see details of leaked memory
==15351==
==15351== For counts of detected and suppressed errors, rerun with: -v
==15351== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/13309#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.