nils-ohlmeier / sipsak

SIP swiss army knife
GNU General Public License v2.0
140 stars 37 forks source link

Ubuntu 22.04 - sipsak -M : buffer overflow detected #93

Closed tataa36 closed 1 year ago

tataa36 commented 1 year ago

I use sipsak as a smokeping-plugin. I've upgraded my server to Ubuntu LTS 22.04 and realize, sipsak test isn't working anymore. Going deeper and using sipsak as a cli command brings me a core dump error: URI is NUMBER@SIP-SERVER

# /usr/bin/sipsak -M -s URI
*** buffer overflow detected ***: terminated
Aborted (core dumped)

Compiled from Github-sources brings me the same error.

# /opt/sipsak/sipsak-0.9.8.1/sipsak -M -s URI
*** buffer overflow detected ***: terminated
Aborted (core dumped)
nils-ohlmeier commented 1 year ago

Thanks for the report.

Currently I can't repro on my available systems. I'll try to install Ubuntu 22.0.4 in a VM to see if I can repro.

nils-ohlmeier commented 1 year ago

Even with Ubuntu 22.0.4 on x86 inside a VM I can't repro.

Could you @tataa36 please share the output of sipsak -V and tell me if you use gcc or clang?

tataa36 commented 1 year ago

Ah, I made it working. I had to change my /etc/hosts file. From:

127.0.0.1 localhost
127.0.0.1 hostname

to:

127.0.0.1 localhost
pub-ip  fqdn hostname

Installation on a Ubuntu 20.04 with sipsak 0.9.7 brought me this error:

error: this FQDN or IP is not valid: hostname
nils-ohlmeier commented 1 year ago

I'm glad you figured it out.

I'm going to close this, although I'm still wondering what the initial error message refers to.