Skip to content

Seg Faults with PyPy #2781

Nov 24, 2022 · 3 comments · 16 replies
Discussion options

You must be logged in to vote

@samuelcolvin The following diff fixes the stack overflows / segmentation faults for (but it leads to assertion errors as the assertions depend on the depth limit):

diff --git a/src/serializers/extra.rs b/src/serializers/extra.rs
index dac8f86..06393f7 100644
--- a/src/serializers/extra.rs
+++ b/src/serializers/extra.rs
@@ -13,6 +13,7 @@ use super::errors::{PydanticSerializationUnexpectedValue, UNEXPECTED_TYPE_SER_MA
 use super::ob_type::ObTypeLookup;
 use super::shared::CombinedSerializer;
 use crate::definitions::Definitions;
+use crate::validators::BACKUP_GUARD_LIMIT;
 
 /// this is ugly, would be much better if extra could be stored in `SerializationState`
 /// then `SerializationStat…

Replies: 3 comments 16 replies

Comment options

You must be logged in to vote
8 replies
@messense
Comment options

@samuelcolvin
Comment options

@samuelcolvin
Comment options

@messense
Comment options

@messense
Comment options

Comment options

You must be logged in to vote
8 replies
@adamreichold
Comment options

@adamreichold
Comment options

@adamreichold
Comment options

@adamreichold
Comment options

Answer selected by davidhewitt
@mattip
Comment options

@adamreichold
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants