You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux [redacted] 5.4.[redacted] #1 SMP Tue Feb 23 21:54:59 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
AWS Services
DynamoDB
Description
Dumping a ProvisionThroughputExceeded error return results in a reliably reproducable stack overflow, looking like the following:
[src/main.rs:78] e = ServiceError {
err: PutItemError {
kind: ProvisionedThroughputExceededError(
ProvisionedThroughputExceededError {
message: Some(
"The level of configured provisioned throughput for the table was exceeded. Consider increasing your provisioning level with the UpdateTable API.",
),
},
),
meta: Error {
code: Some(
"ProvisionedThroughputExceededException",
),
message: Some(
"The level of configured provisioned throughput for the table was exceeded. Consider increasing your provisioning level with the UpdateTable API.",
),
request_id: Some(
"JOBF8AT640UEF06CP0D1B7JETFVV4KQNSO5AEMVJF66Q9ASUAAJG",
),
},
},
raw: Response {
status: 400,
version: HTTP/1.1,
headers: {
"server": "Server",
"date": "Thu, 06 May 2021 21:01:27 GMT",
"content-type": "application/x-amz-json-1.0",
"content-length": "241",
"connection": "keep-alive",
"x-amzn-requestid": "JOBF8AT640UEF06CP0D1B7JETFVV4KQNSO5AEMVJF66Q9ASUAAJG",
"x-amz-crc32": "1545824508",
},
body: SdkBody(
thread 'tokio-runtime-worker' has overflowed its stack
fatal runtime error: stack overflow
zsh: abort (core dumped) ./target/debug/ddb-bench --hash-key hk --range-key rk --table perf-test
The backtrace looks like:
#0 0x00007f6edd3d9c20 in raise () from /lib64/libc.so.6
#1 0x00007f6edd3db0c8 in abort () from /lib64/libc.so.6
#2 0x000055cf93f72517 in std::sys::unix::abort_internal () at /rustc/2fd73fabe469357a12c2c974c140f67e7cdd76d0//library/std/src/sys/unix/mod.rs:237
#3 0x000055cf93f6d735 in std::sys_common::util::abort () at /rustc/2fd73fabe469357a12c2c974c140f67e7cdd76d0//library/std/src/sys_common/util.rs:19
#4 0x000055cf93f716e0 in std::sys::unix::stack_overflow::imp::signal_handler () at /rustc/2fd73fabe469357a12c2c974c140f67e7cdd76d0//library/std/src/sys/unix/stack_overflow.rs:106
#5 <signal handler called>
#6 0x000055cf93c6b1a4 in <smithy_http::body::Inner as core::fmt::Debug>::fmt (self=<error reading variable: Cannot access memory at address 0x7f6ed7bfefb8>, f=0x0)
at /local/home/bdonlan/src/benchmark-ddb/aws-sdk-rust/sdk/smithy-http/src/body.rs:45
#7 0x000055cf93c70dc7 in <&T as core::fmt::Debug>::fmt (self=0x7f6ed7bff048, f=0x7f6ed7df97a0)
at /home/bdonlan/.rustup/toolchains/brazilrust/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:2014
#8 0x000055cf93c6b20e in <smithy_http::body::Inner as core::fmt::Debug>::fmt (self=0x7f6ed7dfba50, f=0x7f6ed7df97a0)
at /local/home/bdonlan/src/benchmark-ddb/aws-sdk-rust/sdk/smithy-http/src/body.rs:47
#9 0x000055cf93c70dc7 in <&T as core::fmt::Debug>::fmt (self=0x7f6ed7bff0d8, f=0x7f6ed7df97a0)
at /home/bdonlan/.rustup/toolchains/brazilrust/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:2014
#10 0x000055cf93c6b20e in <smithy_http::body::Inner as core::fmt::Debug>::fmt (self=0x7f6ed7dfba50, f=0x7f6ed7df97a0)
at /local/home/bdonlan/src/benchmark-ddb/aws-sdk-rust/sdk/smithy-http/src/body.rs:47
#11 0x000055cf93c70dc7 in <&T as core::fmt::Debug>::fmt (self=0x7f6ed7bff168, f=0x7f6ed7df97a0)
at /home/bdonlan/.rustup/toolchains/brazilrust/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:2014
#12 0x000055cf93c6b20e in <smithy_http::body::Inner as core::fmt::Debug>::fmt (self=0x7f6ed7dfba50, f=0x7f6ed7df97a0)
at /local/home/bdonlan/src/benchmark-ddb/aws-sdk-rust/sdk/smithy-http/src/body.rs:47
#13 0x000055cf93c70dc7 in <&T as core::fmt::Debug>::fmt (self=0x7f6ed7bff1f8, f=0x7f6ed7df97a0)
at /home/bdonlan/.rustup/toolchains/brazilrust/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:2014
#14 0x000055cf93c6b20e in <smithy_http::body::Inner as core::fmt::Debug>::fmt (self=0x7f6ed7dfba50, f=0x7f6ed7df97a0)
at /local/home/bdonlan/src/benchmark-ddb/aws-sdk-rust/sdk/smithy-http/src/body.rs:47
#15 0x000055cf93c70dc7 in <&T as core::fmt::Debug>::fmt (self=0x7f6ed7bff288, f=0x7f6ed7df97a0)
at /home/bdonlan/.rustup/toolchains/brazilrust/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:2014
#16 0x000055cf93c6b20e in <smithy_http::body::Inner as core::fmt::Debug>::fmt (self=0x7f6ed7dfba50, f=0x7f6ed7df97a0)
at /local/home/bdonlan/src/benchmark-ddb/aws-sdk-rust/sdk/smithy-http/src/body.rs:47
#17 0x000055cf93c70dc7 in <&T as core::fmt::Debug>::fmt (self=0x7f6ed7bff318, f=0x7f6ed7df97a0)
at /home/bdonlan/.rustup/toolchains/brazilrust/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:2014
#18 0x000055cf93c6b20e in <smithy_http::body::Inner as core::fmt::Debug>::fmt (self=0x7f6ed7dfba50, f=0x7f6ed7df97a0)
at /local/home/bdonlan/src/benchmark-ddb/aws-sdk-rust/sdk/smithy-http/src/body.rs:47
#19 0x000055cf93c70dc7 in <&T as core::fmt::Debug>::fmt (self=0x7f6ed7bff3a8, f=0x7f6ed7df97a0)
at /home/bdonlan/.rustup/toolchains/brazilrust/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:2014
#20 0x000055cf93c6b20e in <smithy_http::body::Inner as core::fmt::Debug>::fmt (self=0x7f6ed7dfba50, f=0x7f6ed7df97a0)
at /local/home/bdonlan/src/benchmark-ddb/aws-sdk-rust/sdk/smithy-http/src/body.rs:47
#21 0x000055cf93c70dc7 in <&T as core::fmt::Debug>::fmt (self=0x7f6ed7bff438, f=0x7f6ed7df97a0)
at /home/bdonlan/.rustup/toolchains/brazilrust/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:2014
#22 0x000055cf93c6b20e in <smithy_http::body::Inner as core::fmt::Debug>::fmt (self=0x7f6ed7dfba50, f=0x7f6ed7df97a0)
at /local/home/bdonlan/src/benchmark-ddb/aws-sdk-rust/sdk/smithy-http/src/body.rs:47
#23 0x000055cf93c70dc7 in <&T as core::fmt::Debug>::fmt (self=0x7f6ed7bff4c8, f=0x7f6ed7df97a0)
at /home/bdonlan/.rustup/toolchains/brazilrust/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:2014
#24 0x000055cf93c6b20e in <smithy_http::body::Inner as core::fmt::Debug>::fmt (self=0x7f6ed7dfba50, f=0x7f6ed7df97a0)
at /local/home/bdonlan/src/benchmark-ddb/aws-sdk-rust/sdk/smithy-http/src/body.rs:47
#25 0x000055cf93c70dc7 in <&T as core::fmt::Debug>::fmt (self=0x7f6ed7bff558, f=0x7f6ed7df97a0)
at /home/bdonlan/.rustup/toolchains/brazilrust/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:2014
#26 0x000055cf93c6b20e in <smithy_http::body::Inner as core::fmt::Debug>::fmt (self=0x7f6ed7dfba50, f=0x7f6ed7df97a0)
at /local/home/bdonlan/src/benchmark-ddb/aws-sdk-rust/sdk/smithy-http/src/body.rs:47
#27 0x000055cf93c70dc7 in <&T as core::fmt::Debug>::fmt (self=0x7f6ed7bff5e8, f=0x7f6ed7df97a0)
at /home/bdonlan/.rustup/toolchains/brazilrust/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:2014
#28 0x000055cf93c6b20e in <smithy_http::body::Inner as core::fmt::Debug>::fmt (self=0x7f6ed7dfba50, f=0x7f6ed7df97a0)
at /local/home/bdonlan/src/benchmark-ddb/aws-sdk-rust/sdk/smithy-http/src/body.rs:47
#29 0x000055cf93c70dc7 in <&T as core::fmt::Debug>::fmt (self=0x7f6ed7bff678, f=0x7f6ed7df97a0)
at /home/bdonlan/.rustup/toolchains/brazilrust/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:2014
Bug Report
Version
AWS SDK for Rust commit
5ba29483a3d6a59762d5b57aada43cea671afd72
Platform
Linux [redacted] 5.4.[redacted] #1 SMP Tue Feb 23 21:54:59 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
AWS Services
DynamoDB
Description
Dumping a ProvisionThroughputExceeded error return results in a reliably reproducable stack overflow, looking like the following:
The backtrace looks like:
The issue appears to be a simple infinite recursion at https://github.com/awslabs/aws-sdk-rust/blob/main/sdk/smithy-http/src/body.rs#L47
The text was updated successfully, but these errors were encountered: