<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - examples/ParallelJIT crashes on FreeBSD`"
href="https://llvm.org/bugs/show_bug.cgi?id=25224">25224</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>examples/ParallelJIT crashes on FreeBSD`
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Generic Execution Engine Support
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>davide@freebsd.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>So, I'm not entirely sure if this is a bug in FreeBSD, a bug in
ExecutionEngine, a bug in jemalloc, or a bug in the test. But it's fairly
easily to reproduce and probably it's worth investigating. I'll put this here
so we won't forget.
% uname -a
FreeBSD rabbit1.netperf.freebsd.org 11.0-CURRENT FreeBSD 11.0-CURRENT #2
551300d(master)-dirty: Wed Jan 21 01:20:50 EST 2015
<a href="mailto:root@zoo.freebsd.org">root@zoo.freebsd.org</a>:/zoo/davide/socontention-obj/zoo/davide/freebsd-head/sys/GENERIC
amd64
% ./ParallelJIT
Unblocking threads from block()
<jemalloc>:
/zoo/davide/freebsd-davide/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/arena.h:990:
Failed assertion: "arena_mapbits_allocated_get(chunk, pageind) != 0"
Bus error (core dumped)
(gdb) bt
#0 0x0000000802db090a in thr_kill () from /lib/libc.so.7
#1 0x0000000802e739b9 in abort () from /lib/libc.so.7
#2 0x0000000802de4191 in ?? () from /lib/libc.so.7
#3 0x0000000802dedd62 in ?? () from /lib/libc.so.7
#4 0x0000000802dede60 in free () from /lib/libc.so.7
#5 0x00000000007248b9 in llvm::AllocaHolder::~AllocaHolder (this=0x80400f000)
at ../lib/ExecutionEngine/Interpreter/Interpreter.h:53
#6 0x0000000000724735 in llvm::ExecutionContext::~ExecutionContext
(this=0x80400efb0) at ../lib/ExecutionEngine/Interpreter/Interpreter.h:64
#7 0x000000000074442e in destroy (this=<optimized out>, __p=<optimized out>,
this=<optimized out>, __p=<optimized out>) at /usr/include/c++/v1/memory:1696
#8 __destroy<llvm::ExecutionContext> (__a=..., __p=<optimized out>, __a=...,
__p=<optimized out>) at /usr/include/c++/v1/memory:1580
#9 __alloc (this=0x7fffdfbfbaa0, __a=..., __p=0x80400efb0) at
/usr/include/c++/v1/memory:1483
#10 __destruct_at_end (this=0x7fffdfbfbaa0, __new_last=0x0) at
/usr/include/c++/v1/__split_buffer:310
#11 __destruct_at_end (this=0x7fffdfbfbaa0, __new_last=0x0) at
/usr/include/c++/v1/__split_buffer:136
#12 clear (this=0x7fffdfbfbaa0) at /usr/include/c++/v1/__split_buffer:83
#13 std::__1::__split_buffer<llvm::ExecutionContext,
std::__1::allocator<llvm::ExecutionContext>&>::~__split_buffer
(this=0x7fffdfbfbaa0)
at /usr/include/c++/v1/__split_buffer:355
#14 0x0000000000743d95 in std::__1::vector<llvm::ExecutionContext,
std::__1::allocator<llvm::ExecutionContext> >::__emplace_back_slow_path<>()
(this=0x80389cb68)
at /usr/include/c++/v1/vector:1577
#15 0x00000000007378db in emplace_back<> (this=0x80389cb68) at
/usr/include/c++/v1/vector:1593
#16 llvm::Interpreter::callFunction (this=0x80389c900, F=0x80387d198,
ArgVals=...) at ../lib/ExecutionEngine/Interpreter/Execution.cpp:2081
#17 0x0000000000724314 in llvm::Interpreter::runFunction (this=0x80389c900,
F=0x80387d198, ArgValues=...) at
../lib/ExecutionEngine/Interpreter/Interpreter.cpp:93
#18 0x0000000000406032 in callFunc (param=0x7fffffffe668) at
../examples/ParallelJIT/ParallelJIT.cpp:237
#19 0x0000000801db44f5 in ?? () from /lib/libthr.so.3
#20 0x0000000000000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffdfbfc000</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>