Title: Segfaults and wrong parse errors when using object_hook · Issue #48 · python-rapidjson/python-rapidjson · GitHub
Open Graph Title: Segfaults and wrong parse errors when using object_hook · Issue #48 · python-rapidjson/python-rapidjson
X Title: Segfaults and wrong parse errors when using object_hook · Issue #48 · python-rapidjson/python-rapidjson
Description: First, I am not really sure about my diagnosis because it is not easy to reproduce, but I have ran tests often and long enough to be quite sure. It seems like I'm seeing segfaults or irreproducible (i.e. when feeding the json again, it p...
Open Graph Description: First, I am not really sure about my diagnosis because it is not easy to reproduce, but I have ran tests often and long enough to be quite sure. It seems like I'm seeing segfaults or irreproducible...
X Description: First, I am not really sure about my diagnosis because it is not easy to reproduce, but I have ran tests often and long enough to be quite sure. It seems like I'm seeing segfaults or irreproduc...
Opengraph URL: https://github.com/python-rapidjson/python-rapidjson/issues/48
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Segfaults and wrong parse errors when using object_hook","articleBody":"First, I am not really sure about my diagnosis because it is not easy to reproduce, but I have ran tests often and long enough to be quite sure. It seems like I'm seeing segfaults or irreproducible (i.e. when feeding the json again, it parses just fine) parse errors (\"ValueError: Parse error at offset 2881568: Terminate parsing due to Handler error.\") when using rapidjson.loads with an object_hook callback.\r\n\r\nUsing Python's faulthandler, the segfaults come from no definite place. The offset the parse error happens is always on the \"},\" between two records (so after the object_hook callback has been called?).\r\n\r\nI tried this with Alpine Linux 3.4.4 and their Python 3.5 apks, a freshly compiled Python 3.5.2, and also a freshly compiled Python 3.5.2 on latest Debian. python-rapidjson is 0.0.6 from PyPI.\r\n\r\nMy application is a AWS Kinesis client app, which just parses jsons from the incoming stream and writes these to S3. I cannot reproduce without writing to S3, so it seems like boto3/urllib3/socket interaction is required for this to happen. Chances to see this increase when under load (continuously parsing ~9MB jsons) and using multiple threads, although I experienced these faults also completely single threaded.\r\n","author":{"url":"https://github.com/lightblu","@type":"Person","name":"lightblu"},"datePublished":"2016-11-21T09:09:06Z","url":"https://github.com/python-rapidjson/python-rapidjson/issues/48"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:59e3bc4f-1299-149d-f5e6-8ccbb4e47b4d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B844:24C844:C4EDF8:102F7FF:6AF85B0E |
| html-safe-nonce | 5df4e17b55ad22dc94894d2cbc8a92148ecec1c51b3e50529a6d61e390b00b34 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODQ0OjI0Qzg0NDpDNEVERjg6MTAyRjdGRjo2QUY4NUIwRSIsInZpc2l0b3JfaWQiOiIxMjQ3MTEwMTA5MTM4MDE3MDM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d02d332c91787552691727b0587c02c292d33dfc7496504a9271140f3dd972f3 |
| hovercard-subject-tag | issue:190656765 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-rapidjson/python-rapidjson/48/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e592e2e2ec532ca17068ce0ff954d5402b99fcb40e5c8e611138cfee7ca57c15/python-rapidjson/python-rapidjson/issues/48 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e592e2e2ec532ca17068ce0ff954d5402b99fcb40e5c8e611138cfee7ca57c15/python-rapidjson/python-rapidjson/issues/48 |
| og:image:alt | First, I am not really sure about my diagnosis because it is not easy to reproduce, but I have ran tests often and long enough to be quite sure. It seems like I'm seeing segfaults or irreproducible... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lightblu |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5713ecd83001b2f55c3509fb7a292bf7d66d0f167c7ae87a9f7eaec5a52bf8db |
| turbo-cache-control | no-preview |
| go-import | github.com/python-rapidjson/python-rapidjson git https://github.com/python-rapidjson/python-rapidjson.git |
| octolytics-dimension-user_id | 25253642 |
| octolytics-dimension-user_login | python-rapidjson |
| octolytics-dimension-repository_id | 42155092 |
| octolytics-dimension-repository_nwo | python-rapidjson/python-rapidjson |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 42155092 |
| octolytics-dimension-repository_network_root_nwo | python-rapidjson/python-rapidjson |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 653be32ff5c755082a4db662491bfbbcfc9112c1 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width