[ 
https://issues.apache.org/jira/browse/PROTON-1805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16413247#comment-16413247
 ] 

Roddie Kieley commented on PROTON-1805:
---------------------------------------

Which version(s) of macOS were you testing with? On 10.11.6 with Xcode 7.3.1 
I'm seeing:
{code:java}
Scanning dependencies of target fuzz-proactor-receive
[ 74%] Building C object 
proton-c/src/tests/fuzz/CMakeFiles/fuzz-proactor-receive.dir/fuzz-proactor-receive.c.o
/Users/rkieley/LocalProjects/apache/qpid-proton/proton-c/src/tests/fuzz/fuzz-proactor-receive.c:184:7:
 warning: implicit declaration of function 'clock_gettime' is invalid in C99 
[-Wimplicit-function-declaration]
  if (clock_gettime(CLOCK_MONOTONIC, &spec) != 0) {
      ^
/Users/rkieley/LocalProjects/apache/qpid-proton/proton-c/src/tests/fuzz/fuzz-proactor-receive.c:184:21:
 error: use of undeclared identifier 'CLOCK_MONOTONIC'
  if (clock_gettime(CLOCK_MONOTONIC, &spec) != 0) {
                    ^
/Users/rkieley/LocalProjects/apache/qpid-proton/proton-c/src/tests/fuzz/fuzz-proactor-receive.c:268:5:
 warning: implicit declaration of function 'kill' is invalid in C99 
[-Wimplicit-function-declaration]
    kill(getppid(), SIGUSR1);
    ^
/Users/rkieley/LocalProjects/apache/qpid-proton/proton-c/src/tests/fuzz/fuzz-proactor-receive.c:315:3:
 warning: implicit declaration of function 'sigemptyset' is invalid in C99 
[-Wimplicit-function-declaration]
  sigemptyset(&sa.sa_mask);
  ^
/Users/rkieley/LocalProjects/apache/qpid-proton/proton-c/src/tests/fuzz/fuzz-proactor-receive.c:317:7:
 warning: implicit declaration of function 'sigaction' is invalid in C99 
[-Wimplicit-function-declaration]
  if (sigaction(SIGUSR1, &sa, NULL) == -1) {
      ^
4 warnings and 1 error generated.
{code}

Once rectified via the MIT licensed 
[mach_gettime|https://gist.github.com/alfwatt/3588c5aa1f7a1ef7a3bb] replacement 
I see:
{code}
23/30 Test #23: fuzz-connection-driver ...........   Passed    0.40 sec
test 24
      Start 24: fuzz-message-decode
.
.
.
24/30 Test #24: fuzz-message-decode ..............   Passed    0.30 sec
test 25
{code}

Did it take a number of times before it failed?



> [MacOS] Fuzzer issues in fuzz-connection-driver & fuzz-message-decode
> ---------------------------------------------------------------------
>
>                 Key: PROTON-1805
>                 URL: https://issues.apache.org/jira/browse/PROTON-1805
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>            Reporter: Andrew Stitcher
>            Priority: Major
>              Labels: fuzzer, mac-os-x, osx
>
> Introducing the fuzz tester has shown up a couple of segvs in the MacOS port.
> for fuzz-connection-driver:
> {noformat}
> 26: Running: 
> /Users/travis/build/astitcher/qpid-proton/proton-c/src/tests/fuzz/fuzz-connection-driver/corpus/7e51d07e16f84d001a8be4a1dedf556b3b16720c
> 26/34 Test #26: fuzz-connection-driver ...........***Exception: SegFault  
> 1.76 sec{noformat}
> and for fuzz-message-decode:
> {noformat}
> 27: Running: 
> /Users/travis/build/astitcher/qpid-proton/proton-c/src/tests/fuzz/fuzz-message-decode/corpus/d5143aaeea6897d4264440017cd47ebc874f4440
> 27/34 Test #27: fuzz-message-decode ..............***Exception: SegFault  
> 1.97 sec{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to