|
From: D H. <my...@ya...> - 2010-08-02 20:58:46
|
Hi,
I am trying to track down a memory error that memcheck can tell me is happening, but only quite some time after the fact, so I thought I would try ptrcheck (its experimental, but ok.)
Anyway:
exp-ptrcheck: the 'impossible' happened:
unhandled syscall
==23257== at 0x38012EC4: ??? (in /usr/lib64/valgrind/exp-ptrcheck-amd64-linux)
sched status:
running_tid=1
Thread 1: status = VgTs_Runnable
==23257== at 0x8AA8307: pipe2 (in /lib64/libc-2.10.1.so)
==23257== by 0xCA4F8F3: ??? (in /usr/lib64/libglib-2.0.so.0.2200.4)
==23257== by 0xCA51667: ??? (in /usr/lib64/libglib-2.0.so.0.2200.4)
==23257== by 0xCA78304: g_thread_init_glib (in /usr/lib64/libglib-2.0.so.0.2200.4)
==23257== by 0x6F075AB: wxApp::Initialize(int&, wchar_t**) (in /usr/lib64/libwx_gtk2u_core-2.8.so.0.6.0)
==23257== by 0x782859A: wxEntryStart(int&, wchar_t**) (in /usr/lib64/libwx_baseu-2.8.so.0.6.0)
==23257== by 0x78287DA: wxEntry(int&, wchar_t**) (in /usr/lib64/libwx_baseu-2.8.so.0.6.0)
==23257== by 0x431A01: main (3Depict.cpp:2943)
Any suggested work arounds? False positives I don't mind as long as there are not too many. I just need to find my bug.
Thanks.
|
|
From: John R. <jr...@bi...> - 2010-08-02 21:58:55
|
> exp-ptrcheck: the 'impossible' happened:
> unhandled syscall
> ==23257== at 0x38012EC4: ??? (in /usr/lib64/valgrind/exp-ptrcheck-amd64-linux)
>
> sched status:
> running_tid=1
>
> Thread 1: status = VgTs_Runnable
> ==23257== at 0x8AA8307: pipe2 (in /lib64/libc-2.10.1.so)
> ==23257== by 0xCA4F8F3: ??? (in /usr/lib64/libglib-2.0.so.0.2200.4)
Just ignore the second argument to pipe2. O_NONBLOCK and O_CLOEXEC
are the only defined options. O_CLOEXEC is a security option only.
O_NONBLOCK is functionality, so your program might fail, but maybe
you will find the bug first.
-----
int
pipe2(int pipefd[2], int flags)
{
return pipe(pipefd);
}
-----
--
|
|
From: Julian S. <js...@ac...> - 2010-08-02 22:18:57
|
> Any suggested work arounds? False positives I don't mind as long as there > are not too many. I just need to find my bug. Use the svn trunk; this has been fixed there already. See http://valgrind.org/downloads/repository.html for details on how to check out and build the trunk (it's easy). J |
|
From: D H. <my...@ya...> - 2010-08-03 10:05:59
|
Hello, thanks for the suggestions. However, I was using the svn trunk -- has this been fixed post Revision: 11248? > svn info Path: . URL: svn://svn.valgrind.org/valgrind/trunk Repository Root: svn://svn.valgrind.org/valgrind Repository UUID: a5019735-40e9-0310-863c-91ae7b9d1cf9 Revision: 11248 Node Kind: directory Schedule: normal Last Changed Author: bart Last Changed Rev: 11248 Last Changed Date: 2010-07-31 14:37:58 +0100 (Sat, 31 Jul 2010) Thanks --- On Tue, 8/3/10, Julian Seward <js...@ac...> wrote: > From: Julian Seward <js...@ac...> > Subject: Re: [Valgrind-users] Exp-ptrcheck unhandled syscall: Pipe2. > To: val...@li... > Cc: "D Haley" <my...@ya...> > Date: Tuesday, August 3, 2010, 10:21 AM > > > Any suggested work arounds? False positives I don't > mind as long as there > > are not too many. I just need to find my bug. > > Use the svn trunk; this has been fixed there already. > See > http://valgrind.org/downloads/repository.html > for details on how to check out and build the trunk (it's > easy). > > J > |
|
From: Julian S. <js...@ac...> - 2010-08-03 16:51:36
|
It was fixed at r10924. What platform is this on? J ------------------------------------------------------------------------ r10924 | tom | 2009-11-03 22:02:16 +0100 (Tue, 03 Nov 2009) | 2 lines Support pipe2 in exp-ptrcheck. Fixes #212739. On Tuesday, August 03, 2010, D Haley wrote: > Hello, > > thanks for the suggestions. However, I was using the svn trunk -- has this > been fixed post Revision: 11248? > > > svn info > > Path: . > URL: svn://svn.valgrind.org/valgrind/trunk > Repository Root: svn://svn.valgrind.org/valgrind > Repository UUID: a5019735-40e9-0310-863c-91ae7b9d1cf9 > Revision: 11248 > Node Kind: directory > Schedule: normal > Last Changed Author: bart > Last Changed Rev: 11248 > Last Changed Date: 2010-07-31 14:37:58 +0100 (Sat, 31 Jul 2010) > > Thanks > > --- On Tue, 8/3/10, Julian Seward <js...@ac...> wrote: > > From: Julian Seward <js...@ac...> > > Subject: Re: [Valgrind-users] Exp-ptrcheck unhandled syscall: Pipe2. > > To: val...@li... > > Cc: "D Haley" <my...@ya...> > > Date: Tuesday, August 3, 2010, 10:21 AM > > > > > Any suggested work arounds? False positives I don't > > > > mind as long as there > > > > > are not too many. I just need to find my bug. > > > > Use the svn trunk; this has been fixed there already. > > See > > http://valgrind.org/downloads/repository.html > > for details on how to check out and build the trunk (it's > > easy). > > > > J |