-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Description
Working example that will segfault :
using SymEngine
using Serialization
@vars x
serialize("serial_file", Dict(x=>1))
deserialize("serial_file")
Expected behavior : Throw a error about it being impossible to serialize/deserialize Basic object or make it works.
Probable cause : Julia reconstructs the Basic object x containing a pointer. To build the Dict , it then hashes x . Hashing of a Basic type is defined by basic_hash(ex::Basic) = ccall((:basic_hash, libsymengine), UInt, (Ref{Basic}, ), ex)
Metadata
Metadata
Assignees
Labels
No labels