[CM] Cmdist Digest, Vol 145, Issue 5

James Hearon j_hearon at hotmail.com
Thu Jun 11 12:56:13 PDT 2020


Hi,
Thank you for the stack trace command.  Sorry for submitting the output here and creating a long post.

I'm not sure, from the trace, what might be the problem.  I'm using fresh sources to build snd.

I'm wondering if it's something in my prefs file, way below, causing it to die?

Thank you,
Jim


[jhearon at localhost snd-20-command]$ strace -e trace=file ./snd
execve("./snd", ["./snd"], 0x7ffcb54a3cf0 /* 59 vars */) = 0
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib64/libasound.so.2", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib64/libfftw3.so.3", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib64/libgsl.so.25", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib64/libgslcblas.so.0", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib64/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/dev/snd/controlC0", O_RDONLY|O_CLOEXEC) = 3
stat("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=9598, ...}) = 0
openat(AT_FDCWD, "/usr/share/alsa/alsa.conf", O_RDONLY) = 3
access("/etc/alsa/conf.d", R_OK)        = 0
stat("/etc/alsa/conf.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/etc/alsa/conf.d", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/etc/alsa/conf.d/50-pulseaudio.conf", O_RDONLY) = 3
openat(AT_FDCWD, "/etc/alsa/conf.d/99-pulseaudio-default.conf", O_RDONLY) = 3
access("/etc/asound.conf", R_OK)        = 0
stat("/etc/asound.conf", {st_mode=S_IFREG|0644, st_size=55, ...}) = 0
openat(AT_FDCWD, "/etc/asound.conf", O_RDONLY) = 3
access("/home/jhearon/.asoundrc", R_OK) = -1 ENOENT (No such file or directory)
stat("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=9598, ...}) = 0
stat("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=9598, ...}) = 0
stat("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=9598, ...}) = 0
stat("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=9598, ...}) = 0
openat(AT_FDCWD, "/usr/lib64/alsa-lib/libasound_module_pcm_pulse.so", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib64/libpulse.so.0", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/tls/x86_64/x86_64/libpulsecommon-13.99.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/pulseaudio/tls/x86_64/x86_64", 0x7ffc96a6f130) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib64/pulseaudio/tls/x86_64/libpulsecommon-13.99.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/pulseaudio/tls/x86_64", 0x7ffc96a6f130) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib64/pulseaudio/tls/x86_64/libpulsecommon-13.99.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/pulseaudio/tls/x86_64", 0x7ffc96a6f130) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib64/pulseaudio/tls/libpulsecommon-13.99.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/pulseaudio/tls", 0x7ffc96a6f130) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib64/pulseaudio/x86_64/x86_64/libpulsecommon-13.99.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/pulseaudio/x86_64/x86_64", 0x7ffc96a6f130) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib64/pulseaudio/x86_64/libpulsecommon-13.99.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/pulseaudio/x86_64", 0x7ffc96a6f130) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib64/pulseaudio/x86_64/libpulsecommon-13.99.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib64/pulseaudio/x86_64", 0x7ffc96a6f130) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libpulsecommon-13.99.so", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libX11-xcb.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libX11-xcb.so.1", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libX11.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libX11.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libxcb.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libxcb.so.1", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libICE.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libICE.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libSM.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libSM.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libXtst.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libXtst.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libsystemd.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libsystemd.so.0", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libsndfile.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libsndfile.so.1", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libasyncns.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libasyncns.so.0", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libdbus-1.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libdbus-1.so.3", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libcap.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libXau.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libXau.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libuuid.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libuuid.so.1", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libXext.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libXext.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libXi.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libXi.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/liblzma.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/liblzma.so.5", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/liblz4.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/liblz4.so.1", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libgcrypt.so.20", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libgcrypt.so.20", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libgsm.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libgsm.so.1", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libFLAC.so.8", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libFLAC.so.8", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libogg.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libogg.so.0", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libvorbis.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libvorbis.so.0", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libvorbisenc.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libvorbisenc.so.2", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libresolv.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib64/pulseaudio/libgpg-error.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib64/libgpg-error.so.0", O_RDONLY|O_CLOEXEC) = 3
access("/etc/system-fips", F_OK)        = -1 ENOENT (No such file or directory)
readlink("/proc/self/exe", "/opt/snd-20-command/snd", 99) = 23
openat(AT_FDCWD, "/home/jhearon/.pulse/client.conf", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/jhearon/.config/pulse/client.conf", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/pulse/client.conf", O_RDONLY|O_CLOEXEC) = 7
readlink("/proc/self/exe", "/opt/snd-20-command/snd", 99) = 23
openat(AT_FDCWD, "/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 8
openat(AT_FDCWD, "/etc/pulse/client.conf.d", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/dev/shm/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 7
openat(AT_FDCWD, "/dev/urandom", O_RDONLY|O_NOCTTY|O_CLOEXEC) = 7
stat("/run/user/1000", {st_mode=S_IFDIR|0700, st_size=300, ...}) = 0
mkdir("/run/user/1000/pulse", 0700)     = -1 EEXIST (File exists)
openat(AT_FDCWD, "/run/user/1000/pulse", O_RDONLY|O_NOCTTY|O_NOFOLLOW|O_CLOEXEC) = 8
lstat("/run", {st_mode=S_IFDIR|0755, st_size=1320, ...}) = 0
lstat("/run/user", {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
lstat("/run/user/1000", {st_mode=S_IFDIR|0700, st_size=300, ...}) = 0
lstat("/run/user/1000/pulse", {st_mode=S_IFDIR|0700, st_size=80, ...}) = 0
stat("/usr/share/alsa/alsa.conf", {st_mode=S_IFREG|0644, st_size=9598, ...}) = 0
readlink("/proc/self/exe", "/opt/snd-20-command/snd", 99) = 23
openat(AT_FDCWD, "/home/jhearon/.pulse/client.conf", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/jhearon/.config/pulse/client.conf", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/pulse/client.conf", O_RDONLY|O_CLOEXEC) = 7
openat(AT_FDCWD, "/etc/pulse/client.conf.d", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/dev/shm/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 7
openat(AT_FDCWD, "/dev/urandom", O_RDONLY|O_NOCTTY|O_CLOEXEC) = 7
stat("/run/user/1000", {st_mode=S_IFDIR|0700, st_size=300, ...}) = 0
mkdir("/run/user/1000/pulse", 0700)     = -1 EEXIST (File exists)
openat(AT_FDCWD, "/run/user/1000/pulse", O_RDONLY|O_NOCTTY|O_NOFOLLOW|O_CLOEXEC) = 8
lstat("/run", {st_mode=S_IFDIR|0755, st_size=1320, ...}) = 0
lstat("/run/user", {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
lstat("/run/user/1000", {st_mode=S_IFDIR|0700, st_size=300, ...}) = 0
lstat("/run/user/1000/pulse", {st_mode=S_IFDIR|0700, st_size=80, ...}) = 0
getcwd("/opt/snd-20-command", 4096)     = 20
access("/etc/snd_s7.conf", F_OK)        = -1 ENOENT (No such file or directory)
access("/etc/snd.conf", F_OK)           = -1 ENOENT (No such file or directory)
access("/home/jhearon/.snd_prefs_s7", F_OK) = 0
stat("/home/jhearon/.snd_prefs_s7", {st_mode=S_IFREG|0777, st_size=1246, ...}) = 0
openat(AT_FDCWD, "/home/jhearon/.snd_prefs_s7", O_RDONLY) = 3
access("/home/jhearon/.snd_s7", F_OK)   = -1 ENOENT (No such file or directory)
access("/home/jhearon/.snd", F_OK)      = -1 ENOENT (No such file or directory)
stat("repl.scm", {st_mode=S_IFREG|0644, st_size=58629, ...}) = 0
openat(AT_FDCWD, "repl.scm", O_RDONLY)  = 3
stat("libc.scm", {st_mode=S_IFREG|0644, st_size=96351, ...}) = 0
openat(AT_FDCWD, "libc.scm", O_RDONLY)  = 3
stat("cload.scm", {st_mode=S_IFREG|0644, st_size=27703, ...}) = 0
openat(AT_FDCWD, "cload.scm", O_RDONLY) = 3
access("libc_s7.c", F_OK)               = 0
access("libc_s7.so", F_OK)              = 0
stat("libc_s7.so", {st_mode=S_IFREG|0775, st_size=317656, ...}) = 0
stat("libc_s7.c", {st_mode=S_IFREG|0664, st_size=396622, ...}) = 0
access("libc.scm", F_OK)                = 0
stat("libc_s7.so", {st_mode=S_IFREG|0775, st_size=317656, ...}) = 0
stat("libc.scm", {st_mode=S_IFREG|0644, st_size=96351, ...}) = 0
loading libc_s7.so
stat("libc_s7.so", {st_mode=S_IFREG|0775, st_size=317656, ...}) = 0
access("/opt/snd-20/libc_s7.so", F_OK)  = -1 ENOENT (No such file or directory)
access("/home/jhearon/libc_s7.so", F_OK) = 0
openat(AT_FDCWD, "/home/jhearon/libc_s7.so", O_RDONLY|O_CLOEXEC) = 3
--- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=NULL} ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)

-----------------------------

snd_prefs_s7

; Snd 17.0 (6-Dec-16) options saved Sat 17-Dec-2016 09:36 HST
(set! (default-output-chans) 2)
(set! (default-output-srate) 48000)
(set! (default-output-header-type) mus-riff)
(set! (with-toolbar) #t)
(set! (dac-size) 1024)
(set! (peaks-font) "fixed")
(set! (bold-peaks-font) "fixed")
(set! (axis-label-font) "fixed")
(set! (listener-font) "9x15")
(set! (save-state-file) "saved-snd.scm")
(set! (html-dir) ".")
(set! (mus-srate) 48000.0000)
(set! (mus-file-buffer-size) 65536)
(set! (mus-array-print-length) 12)
; end of snd options

(if (not (member "/usr/local/share/snd" *load-path*)) (set! *load-path* (cons "/usr/local/share/snd" *load-path*)))
(if (not (member "/home/jhearon" *load-path*)) (set! *load-path* (cons "/home/jhearon" *load-path*)))


________________________________
From: cmdist-bounces at ccrma.Stanford.EDU <cmdist-bounces at ccrma.Stanford.EDU> on behalf of cmdist-request at ccrma.Stanford.EDU <cmdist-request at ccrma.Stanford.EDU>
Sent: Thursday, June 11, 2020 7:00 PM
To: cmdist at ccrma.Stanford.EDU <cmdist at ccrma.Stanford.EDU>
Subject: Cmdist Digest, Vol 145, Issue 5

Send Cmdist mailing list submissions to
        cmdist at ccrma.stanford.edu

To subscribe or unsubscribe via the World Wide Web, visit
        https://cm-mail.stanford.edu/mailman/listinfo/cmdist
or, via email, send a message with subject or body 'help' to
        cmdist-request at ccrma.stanford.edu

You can reach the person managing the list at
        cmdist-owner at ccrma.stanford.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Cmdist digest..."


Today's Topics:

   1. snd 20.4, f32 segfault (James Hearon)
   2. Re: snd 20.4, f32 segfault (bil at ccrma.Stanford.EDU)


----------------------------------------------------------------------

Message: 1
Date: Thu, 11 Jun 2020 00:55:37 +0000
From: James Hearon <j_hearon at hotmail.com>
To: "cmdist at ccrma.Stanford.EDU" <cmdist at ccrma.Stanford.EDU>
Subject: [CM] snd 20.4, f32 segfault
Message-ID:
        <BYAPR10MB25369E94F4BB8D2FF15DF9F7E5800 at BYAPR10MB2536.namprd10.prod.outlook.com>

Content-Type: text/plain; charset="iso-8859-1"

Hi,
I'm having a strange problem after upgrading to f32 from f31.
I needed to rebuild snd because of a libgsl issue.

./snd: error while loading shared libraries: libgsl.so.23: cannot open shared object file: No such file or directory

Trying to rebuild with fresh srcs.

./configure  --with-s7 --with-gsl --with-alsa --without-gui

It builds, but when I try to run >./snd, I get a segfault.

[jhearon at dhcp-168-105-83-235 snd-20-command]$ ./snd
writing libc_s7.c
loading libc_s7.so
Segmentation fault (core dumped)

I'm not exactly sure what's going on.

I'm including a valgrind output, if that helps.

Regards,
Jim

[jhearon at dhcp-168-105-83-235 snd-20-command]$ valgrind ./snd
==11749== Memcheck, a memory error detector
==11749== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==11749== Using Valgrind-3.16.0 and LibVEX; rerun with -h for copyright info
==11749== Command: ./snd
==11749==
loading libc_s7.so
==11749== Invalid write of size 4
==11749==    at 0x46D1A7: add_opt_func (s7.c:60763)
==11749==    by 0x46D1A7: s7_set_i_ii_function (s7.c:60840)
==11749==    by 0x6555990: libc_s7_init (in /home/jhearon/libc_s7.so)
==11749==    by 0x4E2D61: load_shared_object (s7.c:30010)
==11749==    by 0x4E2D61: load_shared_object (s7.c:29952)
==11749==    by 0x4E319B: g_load (s7.c:30184)
==11749==    by 0x47049E: op_c_ss (s7.c:91384)
==11749==    by 0x47049E: eval.isra.0 (s7.c:93493)
==11749==    by 0x4E385E: s7_load_with_environment (s7.c:30130)
==11749==    by 0x4E3B2A: g_require (s7.c:30472)
==11749==    by 0x487596: apply_c_macro (s7.c:86109)
==11749==    by 0x46E172: eval.isra.0 (s7.c:94049)
==11749==    by 0x4E385E: s7_load_with_environment (s7.c:30130)
==11749==    by 0x6864A8: snd_doit (snd-nogui.c:724)
==11749==    by 0x422699: main (snd.c:629)
==11749==  Address 0x180001c9 is not stack'd, malloc'd or (recently) free'd
==11749==
==11749==
==11749== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==11749==  Access not within mapped region at address 0x180001C9
==11749==    at 0x46D1A7: add_opt_func (s7.c:60763)
==11749==    by 0x46D1A7: s7_set_i_ii_function (s7.c:60840)
==11749==    by 0x6555990: libc_s7_init (in /home/jhearon/libc_s7.so)
==11749==    by 0x4E2D61: load_shared_object (s7.c:30010)
==11749==    by 0x4E2D61: load_shared_object (s7.c:29952)
==11749==    by 0x4E319B: g_load (s7.c:30184)
==11749==    by 0x47049E: op_c_ss (s7.c:91384)
==11749==    by 0x47049E: eval.isra.0 (s7.c:93493)
==11749==    by 0x4E385E: s7_load_with_environment (s7.c:30130)
==11749==    by 0x4E3B2A: g_require (s7.c:30472)
==11749==    by 0x487596: apply_c_macro (s7.c:86109)
==11749==    by 0x46E172: eval.isra.0 (s7.c:94049)
==11749==    by 0x4E385E: s7_load_with_environment (s7.c:30130)
==11749==    by 0x6864A8: snd_doit (snd-nogui.c:724)
==11749==    by 0x422699: main (snd.c:629)
==11749==  If you believe this happened as a result of a stack
==11749==  overflow in your program's main thread (unlikely but
==11749==  possible), you can try to increase the size of the
==11749==  main thread stack using the --main-stacksize= flag.
==11749==  The main thread stack size used in this run was 8388608.
==11749==
==11749== HEAP SUMMARY:
==11749==     in use at exit: 11,644,308 bytes in 2,671 blocks
==11749==   total heap usage: 3,392 allocs, 721 frees, 11,951,327 bytes allocated
==11749==
==11749== LEAK SUMMARY:
==11749==    definitely lost: 0 bytes in 0 blocks
==11749==    indirectly lost: 0 bytes in 0 blocks
==11749==      possibly lost: 933,221 bytes in 1,939 blocks
==11749==    still reachable: 10,711,087 bytes in 732 blocks
==11749==         suppressed: 0 bytes in 0 blocks
==11749== Rerun with --leak-check=full to see details of leaked memory
==11749==
==11749== For lists of detected and suppressed errors, rerun with: -s
==11749== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Segmentation fault (core dumped)



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/mailman/private/cmdist/attachments/20200611/01a5a1a6/attachment-0001.html>

------------------------------

Message: 2
Date: Thu, 11 Jun 2020 03:42:37 -0700
From: bil at ccrma.Stanford.EDU
To: James Hearon <j_hearon at hotmail.com>
Cc: "cmdist at ccrma.Stanford.EDU" <cmdist at ccrma.Stanford.EDU>
Subject: Re: [CM] snd 20.4, f32 segfault
Message-ID: <a8501df2372744c3c3ee976f5e2e44a8 at ccrma.stanford.edu>
Content-Type: text/plain; charset=US-ASCII; format=flowed

The function that segfaults is one whose signature changed
recently (I added the s7_scheme* argument), so my first
guess is that you have an old object file somewhere.
I would

make clean
rm *.o
rm *.so
rm libc_s7.c
make

and see if it's ok.  I think you can see what is actually being
loaded via

strace -e trace=file ./snd



------------------------------

_______________________________________________
Cmdist mailing list
Cmdist at ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist


End of Cmdist Digest, Vol 145, Issue 5
**************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/mailman/private/cmdist/attachments/20200611/57482c3b/attachment-0001.html>


More information about the Cmdist mailing list