[ 
https://issues.apache.org/jira/browse/PROTON-1552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross updated PROTON-1552:
--------------------------------
    Fix Version/s:     (was: proton-c-0.18.0)

> Epoll proactor example crash when given invalid hostname
> --------------------------------------------------------
>
>                 Key: PROTON-1552
>                 URL: https://issues.apache.org/jira/browse/PROTON-1552
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>         Environment: qpid-proton at commit
> {noformat}
> commit 1b1f3f9cae1c68545f93c74e017edae039875440 (upstream/master)
> Author: Andrew Stitcher <astitc...@apache.org>
> Date:   Mon Aug 14 14:38:26 2017 -0400
>     PROTON-1539: Ensure that SASL challenge and response frames generate a 
> binary
>     - And never a null even if the binary is zero length
> {noformat}
>            Reporter: Jiri Daněk
>
> {noformat}
> [qpid-proton/build/examples/c/proactor]$ ./send upto.nogood.corp
> PN_TRANSPORT_CLOSED: proton:io: Name or service not known - connect to  
> upto.nogood.corp:5672                                                         
>                                                                       
> epoll proactor failure in 
> /home/jdanek/Work/repos/qpid-proton/proton-c/src/proactor/epoll.c:630: 
> "arming polled file descriptor": No such file or directory                    
>                                              
> Aborted
> {noformat}
> when compiled with libuv proactor, it does not crash
> {noformat}
> $ cmake -DPROACTOR=libuv -DBUILD_GO=OFF ..
> [/qpid-proton/build_libuv]$ examples/c/proactor/send upto.nogood
> PN_TRANSPORT_CLOSED: proton:io: unknown node or service - on connect 
> resolving upto.nogood:5672
> {noformat}
> {noformat}
> [jdanek@nixos:~/Work/repos/qpid-proton/build/examples/c/proactor]$ gdb --args 
> ./send upto.nogood.corp
> GNU gdb (GDB) 8.0
> Copyright (C) 2017 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> [...]
> (gdb) run
> Starting program: 
> /home/jdanek/Work/repos/qpid-proton/build/examples/c/proactor/send 
> upto.nogood.corp
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library 
> "/nix/store/l48biijfr1j6d5kdg911051x2phfjrz7-glibc-2.25/lib/libthread_db.so.1".
> PN_TRANSPORT_CLOSED: proton:io: Name or service not known - connect to  
> upto.nogood.corp:5672
> epoll proactor failure in 
> /home/jdanek/Work/repos/qpid-proton/proton-c/src/proactor/epoll.c:630: 
> "arming polled file descriptor": No such file or directory
> Program received signal SIGABRT, Aborted.
> 0x00007ffff740e384 in raise () from 
> /nix/store/l48biijfr1j6d5kdg911051x2phfjrz7-glibc-2.25/lib/libc.so.6
> (gdb) bt
> #0  0x00007ffff740e384 in raise () from 
> /nix/store/l48biijfr1j6d5kdg911051x2phfjrz7-glibc-2.25/lib/libc.so.6
> #1  0x00007ffff740f7ea in abort () from 
> /nix/store/l48biijfr1j6d5kdg911051x2phfjrz7-glibc-2.25/lib/libc.so.6
> #2  0x00007ffff7bd45de in rearm (p=<optimized out>, ee=<optimized out>) at 
> /home/jdanek/Work/repos/qpid-proton/proton-c/src/proactor/epoll.c:630
> #3  0x00007ffff7bd5884 in pconnection_process (pc=0x6053c0, events=<optimized 
> out>, timeout=<optimized out>, topup=<optimized out>) at 
> /home/jdanek/Work/repos/qpid-proton/proton-c/src/proactor/epoll.c:1047
> #4  0x00007ffff7bd52c4 in pconnection_batch_next (batch=<optimized out>) at 
> /home/jdanek/Work/repos/qpid-proton/proton-c/src/proactor/epoll.c:811
> #5  0x0000000000401b98 in run (app=0x7fffffffd100) at 
> /home/jdanek/Work/repos/qpid-proton/examples/c/proactor/send.c:169
> #6  0x0000000000401ff3 in main (argc=<optimized out>, argv=<optimized out>) 
> at /home/jdanek/Work/repos/qpid-proton/examples/c/proactor/send.c:192
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to