Kicker0429
Posts posted by Kicker0429
-
-
@@raynebc, is there a way to change the MIDI device in EOF? It is looking for /dev/snd/midiC0D0, but mine is called /dev/snd/seq.
-
@@raynebc, thank you for the solution. It works now.
-
@@raynebc, I created an strace instead because it is not a compile issue, rather a run-time issue:
https://docs.google.com/document/d/15LYMVdaYXPoqzPZOBODeMKz3UFYTnXN6nF5njenqyp0/edit?usp=sharing
-
@@raynebc, thank you for your assistance with this matter. I was able to successfully compile and run EOF with Ubuntu, so I am certain that the issue is with Arch Linux.
-
This is what I get when I compile with MemorySanitizer:
[erik@LINUX src]$ ../bin/eofMemorySanitizer:DEADLYSIGNAL==3210==ERROR: MemorySanitizer: SEGV on unknown address 0x000000000040 (pc 0x55891590f2c0 bp 0x7ffe482b0910 sp 0x7ffe482aff00 T3210)==3210==The signal is caused by a READ memory access.==3210==Hint: address points to the zero page.#0 0x55891590f2bf (/home/erik/Build/editor-on-fire/bin/eof+0x1e32bf)#1 0x55891591b261 (/home/erik/Build/editor-on-fire/bin/eof+0x1ef261)#2 0x7f02be777022 (/usr/lib/libc.so.6+0x27022)#3 0x558915769edd (/home/erik/Build/editor-on-fire/bin/eof+0x3dedd)MemorySanitizer can not provide additional info.SUMMARY: MemorySanitizer: SEGV (/home/erik/Build/editor-on-fire/bin/eof+0x1e32bf)==3210==ABORTING -
This is what I get when I run lldb:
[root@LINUX src]# lldb ../bin/eof(lldb) target create "../bin/eof"Current executable set to '../bin/eof' (x86_64).(lldb) rProcess 31535 launched: '/usr/src/editor-on-fire-master/bin/eof' (x86_64)Process 31535 stopped* thread #1, name = 'eof', stop reason = signal SIGSEGV: invalid address (fault address: 0x40)frame #0: 0x0000555555618530 eof`eof_initialize [inlined] set_window_title(name=<unavailable>) at system.inl:29:126 #endif2728-> 29 AL_INLINE(void, set_window_title, (AL_CONST char *name),30 {31 ASSERT(system_driver);32(lldb) -
This is what I get when I run gdb:
[erik@LINUX src]$ gdb ../bin/eofGNU gdb (GDB) 9.1Copyright © 2020 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-pc-linux-gnu".Type "show configuration" for configuration details.For bug reporting instructions, please see:Find the GDB manual and other documentation resources online at:For help, type "help".Type "apropos word" to search for commands related to "word"...Reading symbols from ../bin/eof...(gdb) rStarting program: /editor-on-fire-master/bin/eof[Thread debugging using libthread_db enabled]Using host libthread_db library "/usr/lib/libthread_db.so.1".Program received signal SIGSEGV, Segmentation fault.0x000055555566c4cf in set_window_title (name=<optimized out>, name=<optimized out>) at /usr/include/allegro/inline/system.inl:2929 AL_INLINE(void, set_window_title, (AL_CONST char *name),(gdb) -
This is what I get when using the newest code:
gcc -v:
Using built-in specs.
COLLECT_GCC=gccCOLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1/lto-wrapperTarget: x86_64-pc-linux-gnuConfigured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-pkgversion='Arch Linux 9.2.1+20200130-2' --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++,d --enable-shared --enable-threads=posix --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp --enable-cet=auto gdc_include_dir=/usr/include/dlang/gdcThread model: posixgcc version 9.2.1 20200130 (Arch Linux 9.2.1+20200130-2)gcc menu/file.o menu/edit.o menu/song.o menu/note.o menu/beat.o menu/help.o menu/main.o menu/context.o menu/track.o modules/ocd3d.o modules/wfsel.o modules/gametime.o modules/g-idle.o dialog/main.o dialog/proc.o main.o player.o config.o window.o dialog.o legacy.o midi.o ini.o song.o note.o beat.o event.o undo.o mix.o control.o editor.o utility.o chart_import.o midi_import.o ini_import.o waveform.o silence.o tuning.o gp_import.o midi_data_import.o gh_import.o rs.o rs_import.o spectrogram.o notefunc.o minibpm-1.0/src/MiniBpm.o minibpm-1.0/src/minibpm-c.o bpm.o bf.o bf_import.o notes.o pathing.o agup/aalg.o agup/aase.o agup/abeos.o agup/abitmap.o agup/agtk.o agup/agup.o agup/ans.o agup/aphoton.o agup/awin95.o alogg/src/alogg.o foflc/LRC_parse.o foflc/Lyric_storage.o foflc/Midi_parse.o foflc/Script_parse.o foflc/UStar_parse.o foflc/VL_parse.o foflc/ID3_parse.o foflc/SRT_parse.o foflc/XML_parse.o foflc/JB_parse.o foflc/RS_parse.o lc_import.o -Wall -O2 -fno-delete-null-pointer-checks -fomit-frame-pointer -ffast-math -funroll-loops -flto -Ialogg/include -DEOF_BUILD `allegro-config --libs` -logg -lvorbisfile -lm -lfftw3 -lrubberband -lstdc++ -o ../bin/eoffoflc/Lyric_storage.c: In function ‘Append’:foflc/Lyric_storage.c:590:9: warning: ‘strncat’ specified bound depends on the length of the source argument [-Wstringop-overflow=]590 | return(strncat(temp,src2,size2)); //Concatenate src1 and src2 and return the resulting string, preventing overflow| ^foflc/Lyric_storage.c:586:8: note: length computed here586 | size2=strlen(src2);| ^In function ‘eof_load_chord_shape_definitions’,inlined from ‘eof_initialize’ at main.c:4376:2:rs.c:5183:8: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]5183 | strncpy(eof_chord_shape[num_eof_chord_shapes].name, name, length + 1);| ^main.c: In function ‘eof_initialize’:rs.c:5173:16: note: length computed here5173 | length = strlen(name);| ^menu/track.c: In function ‘eof_rebuild_tuning_strings’:menu/track.c:715:6: warning: ‘strncpy’ writing 7 bytes into a region of size 5 overflows the destination [-Wstringop-overflow=]715 | strncpy(tuning_list[ctr], eof_note_names[tuning], sizeof(tuning_list[0]) - 1);| ^menu/track.c:715:6: warning: ‘strncpy’ writing 7 bytes into a region of size 5 overflows the destination [-Wstringop-overflow=]menu/track.c:715:6: warning: ‘strncpy’ writing 7 bytes into a region of size 5 overflows the destination [-Wstringop-overflow=]menu/track.c:715:6: warning: ‘strncpy’ writing 7 bytes into a region of size 5 overflows the destination [-Wstringop-overflow=]menu/track.c:715:6: warning: ‘strncpy’ writing 7 bytes into a region of size 5 overflows the destination [-Wstringop-overflow=]menu/track.c:715:6: warning: ‘strncpy’ writing 7 bytes into a region of size 5 overflows the destination [-Wstringop-overflow=][erik@LINUX src]$ ../binbash: ../bin: Is a directory[erik@LINUX src]$ cd ../bin[erik@LINUX bin]$ ./eofSegmentation fault (core dumped)clang -vclang version 9.0.1Target: x86_64-pc-linux-gnuThread model: posixInstalledDir: /usr/binFound candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/9.2.1Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.1Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.1Found candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/9.2.1Selected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.1Candidate multilib: .;@m64Candidate multilib: 32;@m32Selected multilib: .;@m64clang menu/file.o menu/edit.o menu/song.o menu/note.o menu/beat.o menu/help.o menu/main.o menu/context.o menu/track.o modules/ocd3d.o modules/wfsel.o modules/gametime.o modules/g-idle.o dialog/main.o dialog/proc.o main.o player.o config.o window.o dialog.o legacy.o midi.o ini.o song.o note.o beat.o event.o undo.o mix.o control.o editor.o utility.o chart_import.o midi_import.o ini_import.o waveform.o silence.o tuning.o gp_import.o midi_data_import.o gh_import.o rs.o rs_import.o spectrogram.o notefunc.o minibpm-1.0/src/MiniBpm.o minibpm-1.0/src/minibpm-c.o bpm.o bf.o bf_import.o notes.o pathing.o agup/aalg.o agup/aase.o agup/abeos.o agup/abitmap.o agup/agtk.o agup/agup.o agup/ans.o agup/aphoton.o agup/awin95.o alogg/src/alogg.o foflc/LRC_parse.o foflc/Lyric_storage.o foflc/Midi_parse.o foflc/Script_parse.o foflc/UStar_parse.o foflc/VL_parse.o foflc/ID3_parse.o foflc/SRT_parse.o foflc/XML_parse.o foflc/JB_parse.o foflc/RS_parse.o lc_import.o -Wall -O2 -fomit-frame-pointer -ffast-math -funroll-loops -flto -Ialogg/include -DEOF_BUILD `allegro-config --libs` -logg -lvorbisfile -lm -lfftw3 -lrubberband -lstdc++ -o ../bin/eofld: error: /usr/lib/libfftw3.so: undefined reference to __log_finiteclang-9: error: linker command failed with exit code 1 (use -v to see invocation)make: *** [makefile.linux:14: ../bin/eof] Error 1 -
Is anyone else getting a memory overflow warning when they compile on Linux?
In function ‘eof_load_chord_shape_definitions’,
inlined from ‘eof_initialize’ at main.c:3984:2:
rs.c:4793:7: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
4793 | strncpy(eof_chord_shape[num_eof_chord_shapes].name, name, strlen(name) + 1);
| ^
main.c: In function ‘eof_initialize’:
rs.c:4793:65: note: length computed here
4793 | strncpy(eof_chord_shape[num_eof_chord_shapes].name, name, strlen(name) + 1);
| ^
menu/track.c: In function ‘eof_rebuild_tuning_strings’:
menu/track.c:495:6: warning: ‘strncpy’ writing 7 bytes into a region of size 5 overflows the destination [-Wstringop-overflow=]
495 | strncpy(tuning_list[ctr], eof_note_names[tuning], sizeof(tuning_list[0]) - 1);
| ^
menu/track.c:495:6: warning: ‘strncpy’ writing 7 bytes into a region of size 5 overflows the destination [-Wstringop-overflow=]
menu/track.c:495:6: warning: ‘strncpy’ writing 7 bytes into a region of size 5 overflows the destination [-Wstringop-overflow=]
menu/track.c:495:6: warning: ‘strncpy’ writing 7 bytes into a region of size 5 overflows the destination [-Wstringop-overflow=]
menu/track.c:495:6: warning: ‘strncpy’ writing 7 bytes into a region of size 5 overflows the destination [-Wstringop-overflow=]
menu/track.c:495:6: warning: ‘strncpy’ writing 7 bytes into a region of size 5 overflows the destination [-Wstringop-overflow=]
[erik@LINUX src]$ cd ../bin
[erik@LINUX bin]$ ./eof
Segmentation fault (core dumped)
Latest EOF releases (9-26-2020)
in Editor on Fire
Posted
@raynebc, thank you for the solution. It works now.