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

Andrew Stitcher commented on PROTON-2820:
-----------------------------------------

This seems to solely due to upgrading Swig 4.1 to 4.2.

{{pn_handle_t}} is treated as if it was {{uintptr_t}} under the swig 4.1 it 
seems that the conversion from a negative integer to a {{pn_handle_t}} is fine 
even though {{pn_handle_t}} is supposed to be unsigned. Under swig 4.2 this 
conversion triggers an error.

> [Ruby] Test failure when using swig 4.2
> ---------------------------------------
>
>                 Key: PROTON-2820
>                 URL: https://issues.apache.org/jira/browse/PROTON-2820
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: ruby-binding
>            Reporter: Andrew Stitcher
>            Assignee: Andrew Stitcher
>            Priority: Major
>
> Thid issue has newly appeared when building using Fedora 40, for example:
>  
> {noformat}
> 32:   1) Error:
> 32: RawDriverTest#test_idle:
> 32: TypeError: Expected argument 1 of type pn_handle_t, but got Integer 
> -3824857462615749666
> 32:     in SWIG method 'pn_record_get'
> 32:     /home/andrew/Work/proton/src/ruby/lib/util/wrapper.rb:94:in 
> `pn_record_get'
> 32:     /home/andrew/Work/proton/src/ruby/lib/util/wrapper.rb:94:in 
> `fetch_instance'
> 32:     /home/andrew/Work/proton/src/ruby/lib/core/transport.rb:167:in `wrap'
> 32:     /home/andrew/Work/proton/src/ruby/lib/core/connection_driver.rb:50:in 
> `transport'
> 32:     /home/andrew/Work/proton/src/ruby/tests/test_tools.rb:118:in 
> `initialize'
> 32:     
> /home/andrew/Work/proton/src/ruby/tests/test_connection_driver.rb:68:in `new'
> 32:     
> /home/andrew/Work/proton/src/ruby/tests/test_connection_driver.rb:68:in 
> `test_idle'
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to