|
From: Nicholas N. <nj...@cs...> - 2006-11-20 21:56:21
|
On Mon, 20 Nov 2006, smiley glitter wrote: > Does this qualify as a bug ? It looks like it's a problem with your function 'val_bump'. Note that the current ThreadId is always inserted as the first argument to NON_SIMD_CALL functions. The docs don't explain this very well. So if you use: NON_SIMD_CALL2(val_bump, arg1, arg2) the function val_bump needs the following prototype: val_bump(ThreadId tid, <T1> arg1, <T2> arg2) I can't remember if 'ThreadId' is public, if not, just making the first argument void* should work. Nick > Thanks > Smile. > > ----- Original Message ---- > From: smiley glitter <smi...@ya...> > To: smiley glitter <smi...@ya...>; val...@li... > Sent: Monday, November 6, 2006 3:41:44 PM > Subject: Re: client request VALGRIND_NON_SIMD_CALL fails with 3.2.1 > > c file attached > > > ----- Original Message ---- > From: smiley glitter <smi...@ya...> > To: val...@li... > Sent: Monday, November 6, 2006 3:33:08 PM > Subject: client request VALGRIND_NON_SIMD_CALL fails with 3.2.1 > > The attached c code is a simplified usage of VALGRIND_NON_SIMD_CALL2 in my application. > With valgrind 3.2.1 the following error appears > Works fine with 3.1.1 and 2.4.1. > > Thanks, > Smile. > > > ==17313== > --17313-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting > --17313-- si_code=1; Faulting address: 0x1; sp: 0x62787EE4 > > valgrind: the 'impossible' happened: > Killed by fatal signal > ==17313== at 0x80483CF: val_bump (bump.c:6) > ==17313== by 0x3802EA40: do_client_request (scheduler.c:1166) > ==17313== by 0x3802E40C: vgPlain_scheduler (scheduler.c:869) > ==17313== by 0x3803C78C: thread_wrapper (syswrap-linux.c:87) > ==17313== by 0x3803C848: run_a_thread_NORETURN (syswrap-linux.c:120) > > sched status: > running_tid=1 > > Thread 1: status = VgTs_Runnable > ==17313== at 0x804846B: bump (bump.c:19) > ==17313== by 0x80484B5: main (bump.c:29) > > > > > > > > > > > > ____________________________________________________________________________________ > Sponsored Link > > For just $24.99/mo., Vonage offers unlimited local and long- distance calling. > Sign up now. http://www.vonage.com/startsavingnow/ > > > > > > > > ____________________________________________________________________________________ > Sponsored Link > > Try Netflix today! With plans starting at only $5.99 a month what are you waiting for? > http://www.netflix.com/Signup?mqso=80010030 > > > > > > ____________________________________________________________________________________ > The all-new Yahoo! Mail beta > Fire up a more powerful email and get things done faster. > http://new.mail.yahoo.com > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > |