Author Topic: Bass 2.4.12 segmentation fault linux (ubuntu 16.04)  (Read 228 times)

stemuedendron

  • Posts: 6
I get allways segmentation faults running my apps or every example with libbass.so 2.4.12
- ubuntu linux 16.04.2 LTS
- kernel 4.4.0-67-lowlatency x86_64
- glibc 2.23-0ubuntu5

 
Code: [Select]
$ ./basstest
Segmentation fault

Code: [Select]
gdb ./basstest
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./basstest...(no debugging symbols found)...done.

(gdb) run
Starting program: /home/rf/Arbeitsfläche/bass24-linux/basstest/basstest
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffea88f700 (LWP 25036)]
[New Thread 0x7fffea08e700 (LWP 25037)]
[New Thread 0x7fffe988d700 (LWP 25038)]

Thread 1 "basstest" received signal SIGSEGV, Segmentation fault.
strlen () at ../sysdeps/x86_64/strlen.S:106
106 ../sysdeps/x86_64/strlen.S: Datei oder Verzeichnis nicht gefunden.

(gdb) where
#0  strlen () at ../sysdeps/x86_64/strlen.S:106
#1  0x00007ffff68548ce in __GI___strdup (s=0x0) at strdup.c:41
#2  0x00007ffff7b87ffe in ?? () from /home/rf/Arbeitsfläche/bass24-linux/x64/libbass.so
#3  0x00007ffff7b8c818 in ?? () from /home/rf/Arbeitsfläche/bass24-linux/x64/libbass.so
#4  0x00007ffff7b8c93f in ?? () from /home/rf/Arbeitsfläche/bass24-linux/x64/libbass.so
#5  0x00007ffff7ba007e in BASS_Init () from /home/rf/Arbeitsfläche/bass24-linux/x64/libbass.so
#6  0x000000000040241f in main ()

(gdb) list
101 in ../sysdeps/x86_64/strlen.S

With libbass.so 2.4.10 all is fine.


Ian @ un4seen

  • Administrator
  • Posts: 20437
Re: Bass 2.4.12 segmentation fault linux (ubuntu 16.04)
« Reply #1 on: 20 Mar '17 - 15:19 »
From the call stack, it appears to have crashed in a strdup call within BASS_Init. From that, my guess is it's happening in the device enumeration. I'm unable to reproduce it here (I'm not using Ubuntu 16.04.2), so I will send you a debug version to get more info on what's happening.

stemuedendron

  • Posts: 6
Re: Bass 2.4.12 segmentation fault linux (ubuntu 16.04)
« Reply #2 on: 20 Mar '17 - 16:35 »
Ok, with your debug version problem is gone.
Thanks

Ian @ un4seen

  • Administrator
  • Posts: 20437
Re: Bass 2.4.12 segmentation fault linux (ubuntu 16.04)
« Reply #3 on: 20 Mar '17 - 16:52 »
Great! I see in your log that there were some virtual devices without descriptions, which is what was triggering the problem. That will be sorted in the next BASS release. Here's an update that you can use in the meantime:

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

stemuedendron

  • Posts: 6
Re: Bass 2.4.12 segmentation fault linux (ubuntu 16.04)
« Reply #4 on: 20 Mar '17 - 17:28 »
Great, and a big thank you for the fast response :)