[jira] [Updated] (THRIFT-5664) fairly simple .thrift service call in rust , attempts to allocate too much memory and crashes

2022-10-28 Thread Erik (Jira)


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

Erik updated THRIFT-5664:
-
Description: 
A fairly small simple .thrift file of mine... when used with RUST on the server 
side.. seems to crash spectacularly if called via Python client... 

thread - 
[https://users.rust-lang.org/t/first-rust-thrift-server-crashing-on-returning-i32/83271/2]

.thrift file

{code:java}
namespace java com.jrgemcp.twsapithrift
namespace cpp twsapithrift

exception IBSAPIException {
  1: i32 error_code,
  2: string message
}


service ibrokers {

i32 ping() throws (1:IBSAPIException error),

list ib_status() throws (1:IBSAPIException error)
}
{code}

The Server Handler Call


{code:java}
fn handle_ping() -> thrift::Result {
let ping_val: thrift::Result = Ok(0);
ping_val
}
{code}


Error coming from Rust built server


{code:java}
binding to 127.0.0.1:9090
memory allocation of 18446744071562133505 bytes failed
Aborted (core dumped)
{code}


Any ideas here?

  was:
A fairly small simple .thrift file of mine... when used with RUST on the server 
side.. seems to crash spectacularly if called via Python client... 

thread - 
[https://users.rust-lang.org/t/first-rust-thrift-server-crashing-on-returning-i32/83271/2]

.thrift file

{code:java}
namespace java com.jrgemcp.twsapithrift
namespace cpp twsapithrift

exception IBSAPIException {
  1: i32 error_code,
  2: string message
}


service ibrokers {

i32 ping() throws (1:IBSAPIException error),

list ib_status() throws (1:IBSAPIException error)
}
{code}

The Server Handler Call


{code:rust}
fn handle_ping() -> thrift::Result {
let ping_val: thrift::Result = Ok(0);
ping_val
}
{code}


Error coming from Rust built server


{code:rust}
binding to 127.0.0.1:9090
memory allocation of 18446744071562133505 bytes failed
Aborted (core dumped)
{code}


Any ideas here?


> fairly simple .thrift service call in rust , attempts to allocate too much 
> memory and crashes
> -
>
> Key: THRIFT-5664
> URL: https://issues.apache.org/jira/browse/THRIFT-5664
> Project: Thrift
>  Issue Type: Bug
>  Components: Rust - Compiler
>Affects Versions: 0.16.0
>Reporter: Erik
>Priority: Major
> Attachments: Cargo.toml, main.rs, test.rs, test.thrift
>
>
> A fairly small simple .thrift file of mine... when used with RUST on the 
> server side.. seems to crash spectacularly if called via Python client... 
> thread - 
> [https://users.rust-lang.org/t/first-rust-thrift-server-crashing-on-returning-i32/83271/2]
> .thrift file
> {code:java}
> namespace java com.jrgemcp.twsapithrift
> namespace cpp twsapithrift
> exception IBSAPIException {
>   1: i32 error_code,
>   2: string message
> }
> service ibrokers {
> i32 ping() throws (1:IBSAPIException error),
> list ib_status() throws (1:IBSAPIException error)
> }
> {code}
> The Server Handler Call
> {code:java}
> fn handle_ping() -> thrift::Result {
> let ping_val: thrift::Result = Ok(0);
> ping_val
> }
> {code}
> Error coming from Rust built server
> {code:java}
> binding to 127.0.0.1:9090
> memory allocation of 18446744071562133505 bytes failed
> Aborted (core dumped)
> {code}
> Any ideas here?



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


[jira] [Updated] (THRIFT-5664) fairly simple .thrift service call in rust , attempts to allocate too much memory and crashes

2022-10-28 Thread Erik (Jira)


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

Erik updated THRIFT-5664:
-
Attachment: test.rs

> fairly simple .thrift service call in rust , attempts to allocate too much 
> memory and crashes
> -
>
> Key: THRIFT-5664
> URL: https://issues.apache.org/jira/browse/THRIFT-5664
> Project: Thrift
>  Issue Type: Bug
>  Components: Rust - Compiler
>Affects Versions: 0.16.0
>Reporter: Erik
>Priority: Major
> Attachments: Cargo.toml, main.rs, test.rs, test.thrift
>
>
> A fairly small simple .thrift file of mine... when used with RUST on the 
> server side.. seems to crash spectacularly if called via Python client... 
> thread - 
> [https://users.rust-lang.org/t/first-rust-thrift-server-crashing-on-returning-i32/83271/2]
> .thrift file
> {code:java}
> namespace java com.jrgemcp.twsapithrift
> namespace cpp twsapithrift
> exception IBSAPIException {
>   1: i32 error_code,
>   2: string message
> }
> service ibrokers {
> i32 ping() throws (1:IBSAPIException error),
> list ib_status() throws (1:IBSAPIException error)
> }
> {code}
> The Server Handler Call
> {code:rust}
> fn handle_ping() -> thrift::Result {
> let ping_val: thrift::Result = Ok(0);
> ping_val
> }
> {code}
> Error coming from Rust built server
> {code:rust}
> binding to 127.0.0.1:9090
> memory allocation of 18446744071562133505 bytes failed
> Aborted (core dumped)
> {code}
> Any ideas here?



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


[jira] [Updated] (THRIFT-5664) fairly simple .thrift service call in rust , attempts to allocate too much memory and crashes

2022-10-28 Thread Erik (Jira)


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

Erik updated THRIFT-5664:
-
Attachment: Cargo.toml

> fairly simple .thrift service call in rust , attempts to allocate too much 
> memory and crashes
> -
>
> Key: THRIFT-5664
> URL: https://issues.apache.org/jira/browse/THRIFT-5664
> Project: Thrift
>  Issue Type: Bug
>  Components: Rust - Compiler
>Affects Versions: 0.16.0
>Reporter: Erik
>Priority: Major
> Attachments: Cargo.toml, main.rs, test.rs, test.thrift
>
>
> A fairly small simple .thrift file of mine... when used with RUST on the 
> server side.. seems to crash spectacularly if called via Python client... 
> thread - 
> [https://users.rust-lang.org/t/first-rust-thrift-server-crashing-on-returning-i32/83271/2]
> .thrift file
> {code:java}
> namespace java com.jrgemcp.twsapithrift
> namespace cpp twsapithrift
> exception IBSAPIException {
>   1: i32 error_code,
>   2: string message
> }
> service ibrokers {
> i32 ping() throws (1:IBSAPIException error),
> list ib_status() throws (1:IBSAPIException error)
> }
> {code}
> The Server Handler Call
> {code:rust}
> fn handle_ping() -> thrift::Result {
> let ping_val: thrift::Result = Ok(0);
> ping_val
> }
> {code}
> Error coming from Rust built server
> {code:rust}
> binding to 127.0.0.1:9090
> memory allocation of 18446744071562133505 bytes failed
> Aborted (core dumped)
> {code}
> Any ideas here?



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


[jira] [Updated] (THRIFT-5664) fairly simple .thrift service call in rust , attempts to allocate too much memory and crashes

2022-10-28 Thread Erik (Jira)


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

Erik updated THRIFT-5664:
-
Attachment: main.rs

> fairly simple .thrift service call in rust , attempts to allocate too much 
> memory and crashes
> -
>
> Key: THRIFT-5664
> URL: https://issues.apache.org/jira/browse/THRIFT-5664
> Project: Thrift
>  Issue Type: Bug
>  Components: Rust - Compiler
>Affects Versions: 0.16.0
>Reporter: Erik
>Priority: Major
> Attachments: Cargo.toml, main.rs, test.rs, test.thrift
>
>
> A fairly small simple .thrift file of mine... when used with RUST on the 
> server side.. seems to crash spectacularly if called via Python client... 
> thread - 
> [https://users.rust-lang.org/t/first-rust-thrift-server-crashing-on-returning-i32/83271/2]
> .thrift file
> {code:java}
> namespace java com.jrgemcp.twsapithrift
> namespace cpp twsapithrift
> exception IBSAPIException {
>   1: i32 error_code,
>   2: string message
> }
> service ibrokers {
> i32 ping() throws (1:IBSAPIException error),
> list ib_status() throws (1:IBSAPIException error)
> }
> {code}
> The Server Handler Call
> {code:rust}
> fn handle_ping() -> thrift::Result {
> let ping_val: thrift::Result = Ok(0);
> ping_val
> }
> {code}
> Error coming from Rust built server
> {code:rust}
> binding to 127.0.0.1:9090
> memory allocation of 18446744071562133505 bytes failed
> Aborted (core dumped)
> {code}
> Any ideas here?



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


[jira] [Updated] (THRIFT-5664) fairly simple .thrift service call in rust , attempts to allocate too much memory and crashes

2022-10-28 Thread Erik (Jira)


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

Erik updated THRIFT-5664:
-
Attachment: test.thrift

> fairly simple .thrift service call in rust , attempts to allocate too much 
> memory and crashes
> -
>
> Key: THRIFT-5664
> URL: https://issues.apache.org/jira/browse/THRIFT-5664
> Project: Thrift
>  Issue Type: Bug
>  Components: Rust - Compiler
>Affects Versions: 0.16.0
>Reporter: Erik
>Priority: Major
> Attachments: Cargo.toml, main.rs, test.rs, test.thrift
>
>
> A fairly small simple .thrift file of mine... when used with RUST on the 
> server side.. seems to crash spectacularly if called via Python client... 
> thread - 
> [https://users.rust-lang.org/t/first-rust-thrift-server-crashing-on-returning-i32/83271/2]
> .thrift file
> {code:java}
> namespace java com.jrgemcp.twsapithrift
> namespace cpp twsapithrift
> exception IBSAPIException {
>   1: i32 error_code,
>   2: string message
> }
> service ibrokers {
> i32 ping() throws (1:IBSAPIException error),
> list ib_status() throws (1:IBSAPIException error)
> }
> {code}
> The Server Handler Call
> {code:rust}
> fn handle_ping() -> thrift::Result {
> let ping_val: thrift::Result = Ok(0);
> ping_val
> }
> {code}
> Error coming from Rust built server
> {code:rust}
> binding to 127.0.0.1:9090
> memory allocation of 18446744071562133505 bytes failed
> Aborted (core dumped)
> {code}
> Any ideas here?



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