Displaying 20 results from an estimated 356 matches for "pthread_create".
2012 Nov 13
1
[LLVMdev] Inserting pthread_create call into sequential code
Hi,
I was working on multithreading a cross iteration loop. I want to insert a
pthread_create function call and use other pthread functions into my LLVM
IR.
Issue is how do i get these functions using
module->getOrInsertFunction("pthread_create"), since the function might not
be there in IR and then insert function calls to these functions.
So, crux is how do i call pthread f...
2018 Jan 24
0
libasan bug: pthread_create never returns
Hi all,
We observed that under certain circumstances pthread_create() (libasan
implemention) does not return. The conditions are the following:
- address sanitizer enabled
- main and child thread run on the same CPU (affinity)
- real-time scheduling policy for both threads
- different scheduling priority values (this includes the case
of setting a real-time pol...
2003 Dec 23
4
[LLVMdev] pthread?
...I compile a pthread program using llvmgcc, but when i run pthread.ll, it
show:
------------------
[yue at RH9 test]$ llvmgcc pthread.c -o pthread.ll
[yue at RH9 test]$ ls
pthread pthread.c pthread.ll pthread.ll.bc
[yue at RH9 test]$ ./pthread.ll
Creating thread 0
WARNING: Cannot resolve fn 'pthread_create' using a dummy noop function
instead!
ERROR; return code from pthread_create() is -1073745164
[yue at RH9 test]$
--------------------
how to solve the problem?
yueqiang
2003/12/24
2018 Jan 25
2
Re: libvirtd hangs
...29c2ada3 in virThreadPoolWorker
>> (opaque=opaque@entry=0x7f412b183ab0) at util/virthreadpool.c:124
>> #3 0x00007f4129c2a078 in virThreadHelper (data=<optimized out>) at
>> util/virthread.c:206
>> #4 0x00007f4127033dc5 in start_thread (arg=0x7f411a9d7700) at
>> pthread_create.c:308
>> #5 0x00007f4126d6273d in clone () at
>> ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
>>
>> Thread 16 (Thread 0x7f411a1d6700 (LWP 5789)):
>> #0 pthread_cond_wait@@GLIBC_2.3.2 () at
>> ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
>...
2018 Jun 13
0
"virsh" list
...hread.c:154
#2 0x00007fcf405498a0 in udevEventHandleThread (opaque=<optimized out>)
at node_device/node_device_udev.c:1606
#3 0x00007fcf4e17ec02 in virThreadHelper (data=<optimized out>)
at util/virthread.c:206
#4 0x00007fcf4ca26494 in start_thread (arg=0x7fcf3a4e8700)
at pthread_create.c:333
#5 0x00007fcf4c768acf in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
Thread 17 (Thread 0x7fcf3b315700 (LWP 14796)):
#0 0x00007fcf4c75f67d in poll () at ../sysdeps/unix/syscall-template.S:84
#1 0x00007fcf4c77917e in __poll_chk (fds=<optimized out>,
nfds=<optim...
2017 Jan 05
1
[Bug 99282] New: KDE kontact crashes always
...c(QFlags<QEventLoop::ProcessEventsFlag>) () from
/lib64/libQt5Core.so.5
#6 0x00007f2179a8c5f3 in QThread::exec() () from /lib64/libQt5Core.so.5
#7 0x00007f2179a909da in QThreadPrivate::start(void*) () from
/lib64/libQt5Core.so.5
#8 0x00007f2170ccd6ca in start_thread (arg=0x7f2019fa1700) at
pthread_create.c:333
#9 0x00007f2178e83f6f in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:105
Thread 39 (Thread 0x7f201a7a2700 (LWP 7129)):
#0 0x00007ffdf5680b12 in clock_gettime ()
#1 0x00007f2178e92686 in __GI___clock_gettime (clock_id=1, tp=0x7f201a7a19d0)
at ../sysdeps/unix/clock_gettime.c:115
#...
2003 Nov 16
3
asterisk installation error
...;:
/usr/src/asterisk/channel.c:587: undefined reference
to `pthread_kill'
channel.o: In function `ast_softhangup_nolock':
/usr/src/asterisk/channel.c:587: undefined reference
to `pthread_kill'
pbx.o: In function `ast_async_goto':
/usr/src/asterisk/pbx.c:1873: undefined reference to
`pthread_create'
pbx.o: In function `ast_pbx_outgoing_exten':
/usr/src/asterisk/pbx.c:1873: undefined reference to
`pthread_create'
/usr/src/asterisk/pbx.c:3857: undefined reference to
`pthread_create'
pbx.o: In function `ast_pbx_outgoing_app':
/usr/src/asterisk/pbx.c:3920: undefined reference...
2003 Dec 24
0
[LLVMdev] Re: pthread?
...----------------------------------
[yue at RH9 test]$ ./pthread.ll
Error opening '/lib/libpthread.so.0': /lib/libpthread.so.0: symbol
_errno, version GLIBC_2.0 not defined in file libc.so.6 with link time
reference
-load request ignored.
Creating thread 0
WARNING: Cannot resolve fn 'pthread_create' using a dummy noop function
instead!
ERROR; return code from pthread_create() is -1073747260
----------------------------------------------------
then try to run with "--load=/usr/lib/libpthread.so", it shows:
--------------------------------------------------
[yue at RH9 test]$ ./p...
2018 Nov 16
2
OSX 10.5 PowerPC and hang after "Looking for __cxa_throw in stdc++"
...e to ask... I'm catching too much noise from dumps.
I'm building LLVM 7.0 using release tarballs on OS X 10.5 PowerPC. I'm
building out-of-tree mostly following
https://llvm.org/docs/GettingStarted.html#getting-started-quickly-a-summary
.
Cmake gets this far and hangs:
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Looking for __cxa_throw in c++
-- Looking for __cxa_throw in c++ - not found
-- Looking for __cxa_throw in stdc++
-- Looking for __cxa_throw in stdc++ - found
The Cmake script does not appear to move on to other tests like "--
Loo...
2013 Sep 21
2
[LLVMdev] LLD input graph handling proposal
...solver state of each input file in the group by the
linkingcontext.
lld -flavor gnu main.o thread.o --start-group libc.a libpthread.a
--end-group function.o
main.o has atoms
------------------------
main (defined)
printf(undefined)
fn(undefined)
thread.o has atoms
-----------------------------
pthread_create (undefined)
libc.a(printf.o) has atoms
------------------------------------
printf(defined)
libc.a(exit.o) has atoms
----------------------------------
exit(defined)
libpthread.a has atoms
---------------------------------
pthread_create(defined)
exit(undefined)
function.o has atoms
-----------...
2013 Sep 21
0
[LLVMdev] LLD input graph handling proposal
...ntext.
>
> lld -flavor gnu main.o thread.o --start-group libc.a libpthread.a
> --end-group function.o
>
> main.o has atoms
> ------------------------
> main (defined)
> printf(undefined)
> fn(undefined)
>
> thread.o has atoms
> -----------------------------
> pthread_create (undefined)
>
> libc.a(printf.o) has atoms
> ------------------------------------
> printf(defined)
>
> libc.a(exit.o) has atoms
> ----------------------------------
> exit(defined)
>
> libpthread.a has atoms
> ---------------------------------
> pthread_create(d...
2009 Nov 18
2
[LLVMdev] lli -force-interpreter complains about external function
Hi Nick:
Thanks for pointing me to libffi.
Recompile LLVM with libffi does solve the problem of printf.
But it still has other problems:
1) sinf() returns 0 in the interpreter, but returns correct value in JIT
(see hellosin.c)
2) calling pthread_create cause lli to crash in the interpreter mode, but no
problem in JIT (see phello.c).
My questions are:
i) can I call any arbitrary external function in the interpreter?
ii) how do I specify the dynamic library (where the external function is
implemented), when I call the interpreter?
Thanks
Xu
hell...
2006 Sep 08
2
NPTL problem on Centos 4.4
...39;ve been googling and not finding much that
is helpful.
At work I've got a multi-threaded program targeted at Linux. It compiles
on RHEL 2.1 and 3, and is targeted at 2.1, 3, and 4. UP until today, the
binary built on 3 has worked fine on 4.
But on RHEL4 update 4 it dies a horrible death in pthread_create. I have
reproduced the problem on Centos 4.4, where I am tyring to debug it.
I thought it might be some newly-introduced binary incompatibility in
the U4 update, so I recompiled it on Centos 4.4, and it does the same
thing.
This code has been running for 5 years both in-house and at dozens of
cus...
2018 May 15
2
[Bug 106530] New: [Wayland+Nouveau] KDE Desktop crashed after login.
...essEventsAndWaitForMore() ()
from /usr/lib64/libQt5Quick.so.5
#5 0x00007fe0c961b93a in QSGRenderThread::run() () from
/usr/lib64/libQt5Quick.so.5
#6 0x00007fe0c585daf8 in QThreadPrivate::start(void*) () from
/usr/lib64/libQt5Core.so.5
#7 0x00007fe0c49f759b in start_thread (arg=0x7fdffa0eb700) at
pthread_create.c:463
#8 0x00007fe0c5151a1f in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 10 (Thread 0x7fdffa8ec700 (LWP 9698)):
#0 0x00007fe0c49fd56c in futex_wait_cancelable (private=<optimized out>,
expected=0, futex_word=0x564e66f04e34) at
../sysdeps/unix/sysv/linux/futex-internal...
2018 Jan 18
2
libvirtd hangs
...90) at util/virthread.c:154
#2 0x00007f4129c2ada3 in virThreadPoolWorker
(opaque=opaque@entry=0x7f412b183ab0) at util/virthreadpool.c:124
#3 0x00007f4129c2a078 in virThreadHelper (data=<optimized out>) at
util/virthread.c:206
#4 0x00007f4127033dc5 in start_thread (arg=0x7f411a9d7700) at
pthread_create.c:308
#5 0x00007f4126d6273d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:113
Thread 16 (Thread 0x7f411a1d6700 (LWP 5789)):
#0 pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1 0x00007f4129c2a2e6 in virCondWait (c=c@entry=0x7f412...
2013 Nov 20
3
[LLVMdev] Curiosity about transform changes under Sanitizers (Was: [PATCH] Disable branch folding with MemorySanitizer)
...his too.
==> if-bench.cc <==
#include <pthread.h>
#include <unistd.h>
extern int foo(int);
extern void bar(int);
#ifndef N
#define N (1UL << 30)
#endif
void *Thread(void *p) {
for (long i = 0; i < N; i++)
foo(0);
return 0;
}
int main() {
pthread_t t[3];
pthread_create(&t[0], 0, Thread, 0);
pthread_create(&t[1], 0, Thread, 0);
pthread_create(&t[2], 0, Thread, 0);
for (long i = 0; i < N; i++)
bar(i);
pthread_join(t[0], 0);
pthread_join(t[1], 0);
pthread_join(t[2], 0);
}
==> g.cc <==
int g;
int foo(int cond) {
if (cond)...
2011 Nov 11
1
[RFC] kvm tools: Implement multiple VQ for virtio-net
...t;io_rx_lock, NULL);
+ int i;
- pthread_cond_init(&ndev->io_tx_cond, NULL);
- pthread_cond_init(&ndev->io_rx_cond, NULL);
+ for (i = 0; i < ndev->vq_num; i++) {
+ pthread_mutex_init(&ndev->io_lock[i], NULL);
+ pthread_cond_init(&ndev->io_cond[i], NULL);
+ }
- pthread_create(&ndev->io_tx_thread, NULL, virtio_net_tx_thread, ndev);
- pthread_create(&ndev->io_rx_thread, NULL, virtio_net_rx_thread, ndev);
+ for (i = 0; i < ndev->vq_num; i += 2) {
+ pthread_create(&ndev->io_thread[i], NULL, virtio_net_tx_thread, ndev);
+ pthread_create(&ndev...
2011 Nov 11
1
[RFC] kvm tools: Implement multiple VQ for virtio-net
...t;io_rx_lock, NULL);
+ int i;
- pthread_cond_init(&ndev->io_tx_cond, NULL);
- pthread_cond_init(&ndev->io_rx_cond, NULL);
+ for (i = 0; i < ndev->vq_num; i++) {
+ pthread_mutex_init(&ndev->io_lock[i], NULL);
+ pthread_cond_init(&ndev->io_cond[i], NULL);
+ }
- pthread_create(&ndev->io_tx_thread, NULL, virtio_net_tx_thread, ndev);
- pthread_create(&ndev->io_rx_thread, NULL, virtio_net_rx_thread, ndev);
+ for (i = 0; i < ndev->vq_num; i += 2) {
+ pthread_create(&ndev->io_thread[i], NULL, virtio_net_tx_thread, ndev);
+ pthread_create(&ndev...
2017 Oct 17
2
liblldCommon is broken at head
...RIGIN/../lib" lib/libLLVMCodeGen.so.6.0.0svn lib/libLLVMMC.so.6.0.0svn lib/libLLVMOption.so.6.0.0svn lib/libLLVMSupport.so.6.0.0svn lib/libLLVMTarget.so.6.0.0svn && :
/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/thread:137: error: undefined reference to 'pthread_create'
/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/thread:137: error: undefined reference to 'pthread_create'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[722/979] Building X86GenInstrInfo.inc...
I'm currently at r315954....
2013 Sep 21
2
[LLVMdev] LLD input graph handling proposal
...ad.o --start-group libc.a libpthread.a
>> --end-group function.o
>>
>> main.o has atoms
>> ------------------------
>> main (defined)
>> printf(undefined)
>> fn(undefined)
>>
>> thread.o has atoms
>> -----------------------------
>> pthread_create (undefined)
>>
>> libc.a(printf.o) has atoms
>> ------------------------------------
>> printf(defined)
>>
>> libc.a(exit.o) has atoms
>> ----------------------------------
>> exit(defined)
>>
>> libpthread.a has atoms
>> -----------...