I'd like to know what's causing the problem --- it's not in
the destructors, so I'm thinking it must be in the way we
allocate/deallocate the memory stacks.
make clean-all && make CC=clang++ O=0 -j8 test/agrad/rev/log1m
...
[ RUN ] AgradRev.log1m
=================================================================
==20571==ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed: 0x631000000850
#0 0x4573d2 (/opt/stan/test/agrad/rev/log1m+0x4573d2)
#1 0x472a97 (/opt/stan/test/agrad/rev/log1m+0x472a97)
#2 0x46ed91 (/opt/stan/test/agrad/rev/log1m+0x46ed91)
#3 0x59ed72 (/opt/stan/test/agrad/rev/log1m+0x59ed72)
#4 0x5311ac (/opt/stan/test/agrad/rev/log1m+0x5311ac)
#5 0x4d1009 (/opt/stan/test/agrad/rev/log1m+0x4d1009)
#6 0x4d58aa (/opt/stan/test/agrad/rev/log1m+0x4d58aa)
#7 0x4d8415 (/opt/stan/test/agrad/rev/log1m+0x4d8415)
#8 0x4f2eb7 (/opt/stan/test/agrad/rev/log1m+0x4f2eb7)
#9 0x581182 (/opt/stan/test/agrad/rev/log1m+0x581182)
#10 0x53f1d1 (/opt/stan/test/agrad/rev/log1m+0x53f1d1)
#11 0x4f1ab4 (/opt/stan/test/agrad/rev/log1m+0x4f1ab4)
#12 0x46487a (/opt/stan/test/agrad/rev/log1m+0x46487a)
#13 0x2aaaab92ca54 (/lib/x86_64-linux-gnu/libc-2.17.so+0x21a54)
0x631000000850 is located 80 bytes inside of 65536-byte region [0x631000000800,0x631000010800)
allocated by thread T0 here:
#0 0x456dc2 (/opt/stan/test/agrad/rev/log1m+0x456dc2)
#1 0x5d3f49 (/opt/stan/test/agrad/rev/log1m+0x5d3f49)
#2 0x5d8317 (/opt/stan/test/agrad/rev/log1m+0x5d8317)
#3 0x5d4cc9 (/opt/stan/test/agrad/rev/log1m+0x5d4cc9)
#4 0x5d47ce (/opt/stan/test/agrad/rev/log1m+0x5d47ce)
#5 0x5d482c (/opt/stan/test/agrad/rev/log1m+0x5d482c)
#6 0x5dd07c (/opt/stan/test/agrad/rev/log1m+0x5dd07c)
==20571==ABORTING
make: *** [test/agrad/rev/log1m] Error 1
For one thing, log1m_vari instances should be smaller
than 80 bytes. Is this multiple ones? Or an attempt to
deallocate something from our var stack that's not there?
--
You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.