faust icon indicating copy to clipboard operation
faust copied to clipboard

SEGV_CTree:branch

Open qhjchc opened this issue 3 years ago • 0 comments

System info

Ubuntu 16.04 xenial, gcc (Ubuntu 5.5.0-12ubuntu1), faust (latest master fa15b59)

Command line

faust -lang ocpp -e -lcc -exp10 -lb -rb -mem -sd @@

AddressSanitizer Output

==29272==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x562798f46847 bp 0x7f447a1ec970 sp 0x7f447a1ec960 T1)
==29272==The signal is caused by a READ memory access.
==29272==Hint: address points to the zero page.
    #0 0x562798f46846 in CTree::branch(int) const (../results/crashes/faust/faust-asan+0x28e846)
    #1 0x562798f473b9 in hd(CTree*) (../results/crashes/faust/faust-asan+0x28f3b9)
    #2 0x562799667216 in ppsig::printlabel(std::ostream&, CTree*) const (../results/crashes/faust/faust-asan+0x9af216)
    #3 0x562799666b9a in ppsig::printui(std::ostream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, CTree*, CTree*, CTree*, CTree*, CTree*) const (../results/crashes/faust/faust-asan+0x9aeb9a)
    #4 0x56279966ac6d in ppsig::print(std::ostream&) const (../results/crashes/faust/faust-asan+0x9b2c6d)
    #5 0x562798ff5830 in operator<<(std::ostream&, ppsig const&) (../results/crashes/faust/faust-asan+0x33d830)
    #6 0x562799698795 in sigRem(CTree*, CTree*) (../results/crashes/faust/faust-asan+0x9e0795)
    #7 0x56279963d96d in realPropagate(CTree*, CTree*, CTree*, std::vector<CTree*, std::allocator<CTree*> > const&) (../results/crashes/faust/faust-asan+0x98596d)
    #8 0x56279963a124 in propagate(CTree*, CTree*, CTree*, std::vector<CTree*, std::allocator<CTree*> > const&) (../results/crashes/faust/faust-asan+0x982124)
    #9 0x562799640424 in realPropagate(CTree*, CTree*, CTree*, std::vector<CTree*, std::allocator<CTree*> > const&) (../results/crashes/faust/faust-asan+0x988424)
    #10 0x56279963a124 in propagate(CTree*, CTree*, CTree*, std::vector<CTree*, std::allocator<CTree*> > const&) (../results/crashes/faust/faust-asan+0x982124)
    #11 0x5627996447c8 in boxPropagateSig(CTree*, CTree*, std::vector<CTree*, std::allocator<CTree*> > const&) (../results/crashes/faust/faust-asan+0x98c7c8)
    #12 0x56279913a566 in numericBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x482566)
    #13 0x562799139ef1 in boxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x481ef1)
    #14 0x56279913b255 in insideBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x483255)
    #15 0x56279913a6a8 in numericBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x4826a8)
    #16 0x562799139ef1 in boxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x481ef1)
    #17 0x56279913b19b in insideBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x48319b)
    #18 0x56279913a6a8 in numericBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x4826a8)
    #19 0x562799139ef1 in boxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x481ef1)
    #20 0x56279913b19b in insideBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x48319b)
    #21 0x56279913a6a8 in numericBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x4826a8)
    #22 0x562799139ef1 in boxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x481ef1)
    #23 0x56279913b28f in insideBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x48328f)
    #24 0x56279913a6a8 in numericBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x4826a8)
    #25 0x562799139ef1 in boxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x481ef1)
    #26 0x56279913b19b in insideBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x48319b)
    #27 0x56279913a6a8 in numericBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x4826a8)
    #28 0x562799139ef1 in boxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x481ef1)
    #29 0x56279913b255 in insideBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x483255)
    #30 0x56279913a6a8 in numericBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x4826a8)
    #31 0x562799139ef1 in boxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x481ef1)
    #32 0x56279913b19b in insideBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x48319b)
    #33 0x56279913a6a8 in numericBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x4826a8)
    #34 0x562799139ef1 in boxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x481ef1)
    #35 0x56279913b255 in insideBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x483255)
    #36 0x56279913a6a8 in numericBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x4826a8)
    #37 0x562799139ef1 in boxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x481ef1)
    #38 0x56279913b19b in insideBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x48319b)
    #39 0x56279913a6a8 in numericBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x4826a8)
    #40 0x562799139ef1 in boxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x481ef1)
    #41 0x56279913b255 in insideBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x483255)
    #42 0x56279913a6a8 in numericBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x4826a8)
    #43 0x562799139ef1 in boxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x481ef1)
    #44 0x56279913b19b in insideBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x48319b)
    #45 0x56279913a6a8 in numericBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x4826a8)
    #46 0x562799139ef1 in boxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x481ef1)
    #47 0x56279913b255 in insideBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x483255)
    #48 0x56279913a6a8 in numericBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x4826a8)
    #49 0x562799139ef1 in boxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x481ef1)
    #50 0x56279913b19b in insideBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x48319b)
    #51 0x56279913a6a8 in numericBoxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x4826a8)
    #52 0x562799139ef1 in boxSimplification(CTree*) (../results/crashes/faust/faust-asan+0x481ef1)
    #53 0x56279912bfb8 in evalprocess(CTree*) (../results/crashes/faust/faust-asan+0x473fb8)
    #54 0x5627994e88ad in evaluateBlockDiagram(CTree*, int&, int&) (../results/crashes/faust/faust-asan+0x8308ad)
    #55 0x5627994db864 in threadEvaluateBlockDiagram(void*) (../results/crashes/faust/faust-asan+0x823864)
    #56 0x7f447e0346da in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76da)
    #57 0x7f447d41ea3e in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x121a3e)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (../results/crashes/faust/faust-asan+0x28e846) in CTree::branch(int) const
Thread T1 created by T0 here:
    #0 0x7f447e283d2f in __interceptor_pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x37d2f)
    #1 0x5627994db495 in callFun(void* (*)(void*)) (../results/crashes/faust/faust-asan+0x823495)
    #2 0x5627994f0ba6 in compileFactoryAux(int, char const**, char const*, char const*, bool) (../results/crashes/faust/faust-asan+0x838ba6)
    #3 0x5627994f21e9 in compileFactory(int, char const**, char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, bool) (../results/crashes/faust/faust-asan+0x83a1e9)
    #4 0x5627995061f4 in main (../results/crashes/faust/faust-asan+0x84e1f4)
    #5 0x7f447d31eb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

==29272==ABORTING

POC

SEGV_CTreebranch.zip

qhjchc avatar Oct 04 '21 13:10 qhjchc