[py3] bug.subscribe() crashes with simplejson.scanner.JSONDecodeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restfulclient (Ubuntu) |
New
|
Undecided
|
Colin Watson |
Bug Description
While porting Apport to python 3 I stumbled over this exception:
bzr branch lp:apport
cd apport
ln -s ../backends/
# work around bug 1425575
wget -O- http://
PYTHONPATH=. python3 apport/
crashes with
ERROR: test_2_
update_traces()
-------
Traceback (most recent call last):
File "apport/
self.
File "apport/
self.
File "apport/
bug.
File "/usr/lib/
self.
File "/usr/lib/
super(Entry, self).lp_
File "/usr/lib/
representation, self.JSON_
File "/usr/lib/
representat
File "/usr/lib/
_make_
File "/usr/lib/
return _default_
File "/usr/lib/
obj, end = self.raw_decode(s)
File "/usr/lib/
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.
Unfortunately I wasn't able to come up with a simple reproducer script for this. Something like
bug = lp.bugs[123456]
person = '%s~ubuntu-
bug.subscribe(
works fine, so there must be some more internal state keeping which messes this up. Please let me know if you need a simpler reproducer for this, then I'll try harder.
This is my attempt at reproducing, which already became reasonably complicated... So for now reproducing with apport's test suite should work.