[jira] [Commented] (PROTON-2820) [Ruby] Test failure when using swig 4.2
[ https://issues.apache.org/jira/browse/PROTON-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17843091#comment-17843091 ] ASF subversion and git services commented on PROTON-2820: - Commit 48d19e56729515c3b34f9b3964d83f5bbc5f9a38 in qpid-proton's branch refs/heads/main from Andrew Stitcher [ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=48d19e567 ] PROTON-2820: [Ruby] Change mapping of pn_handle_t to intptr_t This avoids the swig conversion code from raising an error when the handle is an address that is a negative integer. > [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
[jira] [Commented] (PROTON-2820) [Ruby] Test failure when using swig 4.2
[ 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