probonopd / MultiDexed

MultiDexed
10 stars 1 forks source link

Segfault ERR#4 'Interrupted system call' #4

Closed probonopd closed 1 year ago

probonopd commented 1 year ago

segfault when trying to run the standalone binary on FreeBSD:

%  ./build/MultiDexed 
JUCE v7.0.5
zsh: segmentation fault  ./build/MultiDexed

truss shows:

(...)
fstatat(AT_FDCWD,"/usr/local/share/alsa/alsa.conf",{ mode=-rw-r--r-- ,inode=42487,size=9645,blksize=9728 },0x0) = 0 (0x0)
openat(AT_FDCWD,"/dev/snd/seq",O_RDWR|O_CLOEXEC,00) = 6 (0x6)
ioctl(6,0x40045300 { IOR 0x53('S'), 0, 4 },0x7fffffffd71c) = 0 (0x0)
ioctl(6,FW_IBUSRST,0x7fffffffd720)               = 0 (0x0)
ioctl(6,FW_SBINDADDR,0x7fffffffd720)             = 0 (0x0)
fcntl(6,F_GETFL,)                                = 2 (0x2)
fcntl(6,F_SETFL,O_RDWR|O_NONBLOCK)               = 0 (0x0)
ioctl(6,0xc0bc5310 { IORW 0x53('S'), 16, 188 },0x7fffffffd9d0) = 0 (0x0)
ioctl(6,0x80bc5311 { IOW 0x53('S'), 17, 188 },0x7fffffffd9d0) = 0 (0x0)
ioctl(6,0xc0a85320 { IORW 0x53('S'), 32, 168 },0x7fffffffd9e0) = 0 (0x0)
ioctl(6,0x80505330 { IOW 0x53('S'), 48, 80 },0x7fffffffda40) = 0 (0x0)
mmap(0x7fffdfbfc000,2101248,PROT_READ|PROT_WRITE,MAP_STACK,-1,0x0) = 140736947273728 (0x7fffdfbfc000)
mprotect(0x7fffdfbfc000,4096,PROT_NONE)          = 0 (0x0)
thr_new(0x7fffffffd850,0x68)                     = 0 (0x0)
<new thread 105261>
sigfastblock(0x1,0x802812e38)                    = 0 (0x0)
ioctl(6,0xc0305302 { IORW 0x53('S'), 2, 48 },0x7fffffffdb70) = 0 (0x0)
ioctl(6,0xc0bc5351 { IORW 0x53('S'), 81, 188 },0x7fffffffdab0) = 0 (0x0)
ioctl(6,0xc0a85352 { IORW 0x53('S'), 82, 168 },0x7fffffffd950) = 0 (0x0)
thr_set_name(105261,"JUCE MIDI Input")           = 0 (0x0)
ioctl(6,0xc0bc5351 { IORW 0x53('S'), 81, 188 },0x7fffffffdab0) = 0 (0x0)
ioctl(6,0xc0a85352 { IORW 0x53('S'), 82, 168 },0x7fffffffd950) = 0 (0x0)
madvise(0x803000000,61440,MADV_FREE)             = 0 (0x0)
<thread 105261 exited>
_umtx_op(0x802812e00,UMTX_OP_WAIT,0x19b2d,0x0,0x0) = 0 (0x0)
ioctl(6,0x80a85321 { IOW 0x53('S'), 33, 168 },0x7fffffffd920) = 0 (0x0)
close(6)                                         = 0 (0x0)
fstatat(AT_FDCWD,"/usr/local/share/alsa/alsa.conf",{ mode=-rw-r--r-- ,inode=42487,size=9645,blksize=9728 },0x0) = 0 (0x0)
openat(AT_FDCWD,"/dev/snd/seq",O_RDWR|O_CLOEXEC,00) = 6 (0x6)
ioctl(6,0x40045300 { IOR 0x53('S'), 0, 4 },0x7fffffffd8ac) = 0 (0x0)
ioctl(6,FW_IBUSRST,0x7fffffffd8b0)               = 0 (0x0)
ioctl(6,FW_SBINDADDR,0x7fffffffd8b0)             = 0 (0x0)
fcntl(6,F_GETFL,)                                = 2 (0x2)
fcntl(6,F_SETFL,O_RDWR|O_NONBLOCK)               = 0 (0x0)
ioctl(6,0xc0bc5310 { IORW 0x53('S'), 16, 188 },0x7fffffffdb60) = 0 (0x0)
ioctl(6,0x80bc5311 { IOW 0x53('S'), 17, 188 },0x7fffffffdb60) = 0 (0x0)
ioctl(6,0xc0a85320 { IORW 0x53('S'), 32, 168 },0x7fffffffdb70) = 0 (0x0)
ioctl(6,0x80505330 { IOW 0x53('S'), 48, 80 },0x7fffffffdbd0) = 0 (0x0)
mmap(0x7fffdf9fb000,2101248,PROT_READ|PROT_WRITE,MAP_STACK,-1,0x0) = 140736945172480 (0x7fffdf9fb000)
mprotect(0x7fffdf9fb000,4096,PROT_NONE)          = 0 (0x0)
thr_new(0x7fffffffd9e0,0x68)                     = 0 (0x0)
<new thread 105262>
sigfastblock(0x1,0x802813538)                    = 0 (0x0)
thr_set_name(105262,"JUCE MIDI Input")           = 0 (0x0)
write(3,"\M^?",1)                                = 1 (0x1)
poll({ 6/POLLIN|POLLERR|POLLNVAL },1,100)        = 1 (0x1)
read(6,"?\0\0\M-}\0\0\0\0\0\0\0\0\0\^A"...,14000) = 28 (0x1c)
write(3,"\M^?",1)                                = 1 (0x1)
SIGNAL 11 (SIGSEGV) code=SEGV_MAPERR trapno=12 addr=0x0
poll({ 6/POLLIN|POLLERR|POLLNVAL },1,100)        ERR#4 'Interrupted system call'
<thread 105262 exited>
process killed, signal = 11
probonopd commented 1 year ago

Well, at least on FreeBSD Dexed is a VST3, not a VST2, so that may well be the reason for the crash. Need to get this working with VST3, need to solve #2.

probonopd commented 1 year ago

Likely closed by https://github.com/probonopd/MultiDexed/commit/31422fa935df479411c89cc8b2b3211971924f82.