mkckr0 / audio-share

Audio Share can share Windows/Linux computer's audio to Android phone over network, so your phone becomes the speaker of computer. (You needn't buy a new speaker😄.)
Apache License 2.0
964 stars 45 forks source link

[BUG] Server segmentation fault when starting on linux #93

Open Kurty00 opened 4 days ago

Kurty00 commented 4 days ago

Describe the bug The as-cmd gives me a segmentation fault when I run as-cmd

To Reproduce Steps to reproduce the behavior:

  1. Extract the release, copy bin/as-cmd to ~/.local/bin/
  2. run as-cmd
  3. zsh: segmentation fault (core dumped) as-cmd -h

Expected behavior I expect the binary not to crash.

Server (please complete the following information):

mkckr0 commented 3 days ago

Can you provide the full output log and core dump file?

mkckr0 commented 3 days ago

I guess it may be caused by ifa_addr didn't check null. https://github.com/mkckr0/audio-share/blob/1bf2e5e83f9538fdd6561c7b52004536ae8760f1/server-core/src/network_manager.cpp#L88

I compile a fixed version, you can test it. as-cmd.zip

outusuke commented 3 days ago

I guess it may be caused by ifa_addr didn't check null.

https://github.com/mkckr0/audio-share/blob/1bf2e5e83f9538fdd6561c7b52004536ae8760f1/server-core/src/network_manager.cpp#L88

I compile a fixed version, you can test it. as-cmd.zip

It’s working now.

Kurty00 commented 23 hours ago

Works for me too. Thank you.