sammck / sddp-discovery-protocol

A Python tool and library for Control4's Simple Device Discovery Protocol (SDDP)
MIT License
5 stars 1 forks source link

Getting Segmentation fault #1

Open lomassubedi opened 7 months ago

lomassubedi commented 7 months ago

Tried on version 1.5.0 and 1.4.0 image

sammck commented 7 months ago

What os/version and python version are you on?

lomassubedi commented 7 months ago

Python version : image OS details : image

sammck commented 7 months ago

Hmm... I'm running the same configuration without issue (albeit on arm64 in a VM)...

It is crashing for you very early in initialization, seemingly before SddpServer.add_socket_binding() issues:

      logger.debug(f"Creating socket bindings to {self.multicast_address}:{self.multicast_port} from {self.bind_addresses}")

It is also possible that the log statement was executed but because of the segmentation fault, stderr was not flushed and log output is incomplete.

It's all standard libraries, no native code of my own. The only way to get a segmentation fault is with native code running amok--it should be hard to do from Python even with a bug. I'm afraid I will need your help to find the problem. Would it be possible for you to step through initialization in the Python debugger to at least identify the statement where it is crashing? You might also try creating a fresh Python virtualenv to run the app in.

I'm sorry I can't be of more help.

lomassubedi commented 7 months ago

Hi @sammck , appreciate for the info, I will dig into it sometime later and let you know how it goes. Thank you.