[SERVER-40629] mongosymb.py incompatible with python3 Created: 12/Apr/19  Updated: 29/Oct/23  Resolved: 16/Apr/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.1.11

Type: Bug Priority: Major - P3
Reporter: Maria van Keulen Assignee: Mathew Robinson (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

When running buildscripts/mongosymb.py using python3, I receive the following error:

Traceback (most recent call last):
  File "buildscripts/mongosymb.py", line 204, in <module>
    main(sys.argv)
  File "buildscripts/mongosymb.py", line 199, in main
    dsym_hint=options.dsym_hint)
  File "buildscripts/mongosymb.py", line 105, in symbolize_frames
    symbolizer_process.stdin.write("CODE %(path)s 0x%(addr)X\n" % frame)
TypeError: a bytes-like object is required, not 'str'

I am able to successfully run mongosymb with python2.



 Comments   
Comment by Githook User [ 16/Apr/19 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}

Message: SERVER-40629 Pass frame as bytes to symbolizer in mongosymb.py
Branch: master
https://github.com/mongodb/mongo/commit/f87a44a7433199caf1f8e7b7b16238ed87f3f60a

Generated at Thu Feb 08 04:55:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.