Hi

I've attached a small test case. I ran as:

sgra...@isaac:~$ gcc a.c -o a && valgrind --quiet --leak-check=full ./a
1
--268:0:syswrap- WARNING: Ignoring sigreturn( ..., UC_RESET_ALT_STACK );
3

Best,
scott

On Mon, Jan 10, 2011 at 9:09 AM, Julian Seward <[email protected]> wrote:
>
> This kind of thing is completely differently handled in Ubuntu
> vs Darwin.
>
> Can you supply a small self contained test case showing the
> problem?
>
> J
>
> On Sunday, January 09, 2011, Scott Graham wrote:
>> Hi,
>>
>> On OS X, valgrind 3.6.0 built via MacPorts, I'm getting warnings that
>> look like this:
>>
>> --20873:0:syswrap- WARNING: Ignoring sigreturn( ..., UC_RESET_ALT_STACK );
>>
>> I'm running simply as "valgrind -v --leak-check=full ./prog".
>>
>> The warning seems to be related to usages of longjmp, but I haven't
>> narrowed it down more than that.
>>
>> Does this indicate an error in my program? I didn't glean any more
>> information from adding -v. Or is the warning a failure the checker? I
>> don't get the warning under Ubuntu (labelled 3.6.0.SVN.Debian)
>>
>> thanks,
>> scott
>>
>> ---------------------------------------------------------------------------
>> --- Gaining the trust of online customers is vital for the success of any
>> company that requires sensitive data to be transmitted over the Web.
>> Learn how to best implement a security strategy that keeps consumers'
>> information secure and instills the confidence they need to proceed with
>> transactions. http://p.sf.net/sfu/oracle-sfdevnl
>> _______________________________________________
>> Valgrind-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/valgrind-users
>
>
#include <stdio.h>
#include <setjmp.h>

static jmp_buf errBuf;

void func()
{
    longjmp(errBuf, 1);
}

int main()
{
    if (setjmp(errBuf) == 0)
    {
        printf("1\n");
        func();
        printf("2\n");
    }
    else
    {
        printf("3\n");
    }
    return 0;
}
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to