dell / dell/pike

teardown traceback on some connections

Open
#125 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
39
Forks
43
PR merge metrics
No merged PRs in 30d

Description

```
masen@mf-mbp12-wifi pike % ./.tox/py310/bin/python
Python 3.10.8 (main, Oct 13 2022, 10:19:13) [Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from pike import TreeConnect, smb2
>>> tc = TreeConnect(server="localhost", creds="testuser%123Abc", share="share")
>>> tc()
TreeConnect(_client=None, server='localhost', port=445, creds='testuser%123Abc', share='share', resume=None, signing=False, encryption=False, require_dialect=None, require_capabilities=None, require_share_capabilities=None, conn=, chan=, tree=)
>>>
Exception ignored in:
Traceback (most recent call last):
File "/Users/masen/code/pike/pike/test/__init__.py", line 416, in __del__
File "/Users/masen/code/pike/pike/test/__init__.py", line 375, in close
File "/Users/masen/code/pike/pike/model.py", line 1394, in tree_disconnect
File "/Users/masen/code/pike/pike/model.py", line 973, in transceive
File "/Users/masen/code/pike/pike/model.py", line 973, in
File "/Users/masen/code/pike/pike/model.py", line 238, in result
File "/Users/masen/code/pike/.tox/py310/lib/python3.10/site-packages/future/utils/__init__.py", line 441, in raise_
File "/Users/masen/code/pike/pike/model.py", line 816, in _prepare_outgoing
File "/Users/masen/code/pike/pike/core.py", line 562, in serialize
File "/Users/masen/code/pike/pike/core.py", line 551, in encode
File "/Users/masen/code/pike/pike/netbios.py", line 57, in _encode
File "/Users/masen/code/pike/pike/core.py", line 551, in encode
File "/Users/masen/code/pike/pike/smb2.py", line 228, in _encode
File "/Users/masen/code/pike/pike/digest.py", line 49, in aes128_cmac
File "/Users/masen/code/pike/.tox/py310/lib/python3.10/site-packages/Cryptodome/Cipher/AES.py", line 232, in new
KeyError: 'Cryptodome.Cipher.AES'
```

likely introduced with #72, more investigation needed before release 0.4.0

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the traceback with the Python 3.10 interactive example, then inspect TreeConnect.__del__ and close in pike/test/__init__.py, followed by tree_disconnect and transceive in pike/model.py. Trace the aes128_cmac call in pike/digest.py and compare the behavior with the change referenced in #72. Done means affected connections tear down without the Cryptodome.Cipher.AES traceback.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.