Author Topic: BASS + SSL + Linux = Crash  (Read 395 times)

Daniel_Mor

  • Guest
BASS + SSL + Linux = Crash
« on: 6 Feb '19 - 21:00 »
Hi, i have problem with function BASS_StreamCreateURL on linux.
Code: [Select]
BASS_StreamCreateURL("https://*here is url*", 0, BASS_STREAM_DECODE | BASS_STREAM_BLOCK, nullptr, nullptr).When I call a function from a URL that starts with https, my program crashes. But if you call it with http, then the call will pass successfully. Is it possible to solve this problem?

My code:

Code: [Select]
if (!BASS_Init(0, 44100u, NULL, nullptr, nullptr)) return false;
BASS_SetConfigPtr(BASS_CONFIG_NET_AGENT, "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.81 Safari/537.36");
BASS_SetConfig(BASS_CONFIG_NET_BUFFER, 0);
BASS_SetConfig(BASS_CONFIG_NET_PLAYLIST, 1);
BASS_SetConfig(BASS_CONFIG_NET_PREBUF_WAIT, 0);
HSTREAM meta = BASS_StreamCreateURL(url.c_str(), 0, BASS_STREAM_DECODE | BASS_STREAM_BLOCK, nullptr, nullptr)

I made sure that I have libssl1.0 and libcrypto libraries. OS: Debian x86.

daniel_mor

  • Posts: 7
Re: BASS + SSL + Linux = Crash
« Reply #1 on: 6 Feb '19 - 21:07 »
Also, I have the latest version of the BASS library.

Ian @ un4seen

  • Administrator
  • Posts: 22036
Re: BASS + SSL + Linux = Crash
« Reply #2 on: 7 Feb '19 - 13:57 »
That's strange. If you haven't already done so, please try this update:

   www.un4seen.com/stuff/bass-linux.zip

If the problem still happens with that, can you post a call stack and registers from the crash?