|
From: Kapil S. <kap...@gm...> - 2005-11-22 18:23:57
|
I am trying to run memcheck on a multi-threaded application (using pthreads). When running valgrind, thread creation starts failing with pthread_create returning error code of 1. I am running as root, so there shouldn't be any issues with privileges I think. Any help would be highly appreciated. Thanks! |
|
From: David E. <da...@2g...> - 2005-11-22 18:38:20
|
On Tue, 2005-11-22 at 10:23 -0800, Kapil Surlaker wrote: > I am trying to run memcheck on a multi-threaded application (using > pthreads). When running valgrind, thread creation starts failing with > pthread_create returning error code of 1. I am running as root, so > there shouldn't be any issues with privileges I think. Please provide your valgrind and operating system versions. > Any help would be highly appreciated. > > Thanks! -- -\- David Eriksson -/- www.2GooD.nu "I personally refuse to use inferior tools because of ideology." - Linus Torvalds |
|
From: Ivan N. <in...@fa...> - 2005-11-22 18:42:18
|
Kapil Surlaker wrote: > I am trying to run memcheck on a multi-threaded application (using > pthreads). When running valgrind, thread creation starts failing with > pthread_create returning error code of 1. I am running as root, so there > shouldn't be any issues with privileges I think. > > Any help would be highly appreciated. > > Thanks! Assuming it runs fine without Valgrind, yes? How many threads does it create, 1 or 2 -- 10 or 20 -- more than 100? Ivan |
|
From: Kapil S. <kap...@gm...> - 2005-11-22 19:05:35
|
Yes, it runs fine without Valgrind. The application creates 5-6 threads. OS version is Linux 2.6.9-1.667smp. Valgrind version is 3.0.1. Thanks! On 11/22/05, Ivan Novick <in...@fa...> wrote: > > Kapil Surlaker wrote: > > I am trying to run memcheck on a multi-threaded application (using > > pthreads). When running valgrind, thread creation starts failing with > > pthread_create returning error code of 1. I am running as root, so ther= e > > shouldn't be any issues with privileges I think. > > > > Any help would be highly appreciated. > > > > Thanks! > > Assuming it runs fine without Valgrind, yes? > > How many threads does it create, 1 or 2 -- 10 or 20 -- more than 100? > > Ivan > > |
|
From: Tom H. <to...@co...> - 2005-11-22 19:16:28
|
In message <366...@ma...>
Kapil Surlaker <kap...@gm...> wrote:
> Yes, it runs fine without Valgrind. The application creates 5-6 threads.
> OS version is Linux 2.6.9-1.667smp.
> Valgrind version is 3.0.1.
What attributes are you asking for in the pthread_create call?
What does --trace-syscall=yes say with valgrind?
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|
|
From: Kapil S. <kap...@gm...> - 2005-11-23 02:32:01
|
trace-syscall doesn't seem to be a valid option. I am just asking for default attributes (passing NULL in the attr argument)= . thanks. What attributes are you asking for in the pthread_create call? What does --trace-syscall=3Dyes say with valgrind? Tom -- Tom Hughes (tom@co...) http://www.compton.nu/ Yes, it runs fine without Valgrind. The application creates 5-6 threads. > OS version is Linux 2.6.9-1.667smp. > Valgrind version is 3.0.1. > > Thanks! > > On 11/22/05, Ivan Novick <in...@fa...> wrote: > > > > Kapil Surlaker wrote: > > > I am trying to run memcheck on a multi-threaded application (using > > > pthreads). When running valgrind, thread creation starts failing with > > > pthread_create returning error code of 1. I am running as root, so > > there > > > shouldn't be any issues with privileges I think. > > > > > > Any help would be highly appreciated. > > > > > > Thanks! > > > > Assuming it runs fine without Valgrind, yes? > > > > How many threads does it create, 1 or 2 -- 10 or 20 -- more than 100? > > > > Ivan > > > > > |
|
From: Julian S. <js...@ac...> - 2005-11-23 02:40:37
|
--trace-syscalls=yes is what you need. On Wednesday 23 November 2005 02:31, Kapil Surlaker wrote: > trace-syscall doesn't seem to be a valid option. > I am just asking for default attributes (passing NULL in the attr > argument). > > thanks. > > > What attributes are you asking for in the pthread_create call? > > What does --trace-syscall=yes say with valgrind? > > Tom > > -- > Tom Hughes (tom@co...) > http://www.compton.nu/ > > > Yes, it runs fine without Valgrind. The application creates 5-6 threads. > > > OS version is Linux 2.6.9-1.667smp. > > Valgrind version is 3.0.1. > > > > Thanks! > > > > On 11/22/05, Ivan Novick <in...@fa...> wrote: > > > Kapil Surlaker wrote: > > > > I am trying to run memcheck on a multi-threaded application (using > > > > pthreads). When running valgrind, thread creation starts failing with > > > > pthread_create returning error code of 1. I am running as root, so > > > > > > there > > > > > > > shouldn't be any issues with privileges I think. > > > > > > > > Any help would be highly appreciated. > > > > > > > > Thanks! > > > > > > Assuming it runs fine without Valgrind, yes? > > > > > > How many threads does it create, 1 or 2 -- 10 or 20 -- more than 100? > > > > > > Ivan |
|
From: Kapil S. <kap...@gm...> - 2005-11-23 03:18:25
|
One thread fails but some others start. What am I looking for in the syscalls trace ? Thanks! --trace-syscalls=3Dyes is what you need. On Wednesday 23 November 2005 02:31, Kapil Surlaker wrote: > trace-syscall doesn't seem to be a valid option. > I am just asking for default attributes (passing NULL in the attr > argument). > > thanks. > > > What attributes are you asking for in the pthread_create call? > > What does --trace-syscall=3Dyes say with valgrind? > > Tom > > -- > Tom Hughes (tom@co...) > http://www.compton.nu/ On 11/22/05, Kapil Surlaker <kap...@gm...> wrote: > > trace-syscall doesn't seem to be a valid option. > I am just asking for default attributes (passing NULL in the attr > argument). > > thanks. > > > What attributes are you asking for in the pthread_create call? > > > What does --trace-syscall=3Dyes say with valgrind? > > Tom > > -- > Tom Hughes (tom@co...) > http://www.compton.nu/ > > > Yes, it runs fine without Valgrind. The application creates 5-6 threads. > > OS version is Linux 2.6.9-1.667smp. > > Valgrind version is 3.0.1. > > > > Thanks! > > > > On 11/22/05, Ivan Novick <in...@fa...> wrote: > > > > > > Kapil Surlaker wrote: > > > > I am trying to run memcheck on a multi-threaded application (using > > > > pthreads). When running valgrind, thread creation starts failing > > > with > > > > pthread_create returning error code of 1. I am running as root, so > > > there > > > > shouldn't be any issues with privileges I think. > > > > > > > > Any help would be highly appreciated. > > > > > > > > Thanks! > > > > > > Assuming it runs fine without Valgrind, yes? > > > > > > How many threads does it create, 1 or 2 -- 10 or 20 -- more than 100= ? > > > > > > > > > Ivan > > > > > > > > > |
|
From: John R.
|
> One thread fails but some others start. What am I looking for in the > syscalls trace ? The clone() call which creates each thread; the termination (including death) of each thread and the 10 syscalls that precede it in that thread; any instance of set_thread_area(). -- |