Open marttt opened 6 years ago
You probably have a socket file remaining on the filesystem. Check for and delete ~/.sam.localhost or use 'strace sam' to find what it's trying to use.
Thanks! Deleting ~/.sam.localhost doesn't help (the file is recreated and the issue remains). Output for 'strace sam' is below; I appreciate any help in interpreting it.
tc@box:~$ strace sam
execve("/usr/local/bin/sam", ["sam"], [/ 27 vars /]) = 0
brk(0) = 0x8649000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb778b000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=26099, ...}) = 0
mmap2(NULL, 26099, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7769000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\243\203\1\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1123916, ...}) = 0
mmap2(NULL, 1133148, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7654000
mprotect(0xb7762000, 4096, PROT_NONE) = 0
mmap2(0xb7763000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10e) = 0xb7763000
mmap2(0xb7766000, 10844, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7766000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7653000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7653700,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7763000, 8192, PROT_READ) = 0
mprotect(0xb778c000, 4096, PROT_READ) = 0
munmap(0xb7769000, 26099) = 0
brk(0) = 0x8649000
brk(0x866a000) = 0x866a000
socket(PF_FILE, SOCK_STREAM, 0) = 3
bind(3, {sa_family=AF_FILE, path="/home/tc/.sam.localhost"}, 110) = 0
listen(3, 10) = 0
pipe([4, 5]) = 0
pipe([6, 7]) = 0
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7653768) = 4406
dup2(6, 0) = 0
dup2(5, 1) = 1
close(4) = 0
close(5) = 0
close(6) = 0
close(7) = 0
write(1, "\0\2\0\333>", 5) = 5
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7612000
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb75d1000
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7590000
rt_sigaction(SIGINT, {SIG_IGN, [],
SA_INTERRUPT|SA_NODEFER|SA_RESETHAND}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGHUP, {0x8049b6b, [],
SA_INTERRUPT|SA_NODEFER|SA_RESETHAND}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN, [],
SA_INTERRUPT|SA_NODEFER|SA_RESETHAND}, {SIG_DFL, [], 0}, 8) = 0
read(0, "\0\2\0\333>", 64) = 5
read(0, "\1\10\0\200,\6\10\0\0\0\0", 64) = 11
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb754f000
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb750e000
write(1, "\3\2\0\0\0", 5) = 5
write(1, "\1\n\0\0\0\200,\6\10\0\0\0\0", 13) = 13
write(1, "\2\2\0\0\0", 5) = 5
write(1, "\4\t\0\0\0sam", 12) = 12
write(1, "\6\2\0\0\0\27\0\0", 8) = 8
read(0, "\2\2\0\0\0", 64) = 5
write(1, "\7\2\0\0\0", 5) = 5
read(0, "\24\0\0", 64) = 3
write(1, "\10\0\0", 3) = 3
read(0, "\v\10\0\360\376)\10\0\0\0\0", 64) = 11
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb74cd000
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb748c000
write(1, "\3\2\0\1\0", 5) = 5
write(1, "\1\n\0\1\0\360\376)\10\0\0\0\0", 13) = 13
write(1, "\4\2\0\1\0", 5) = 5
write(1, "\2\2\0\1\0", 5) = 5
write(1, "\6\2\0\1\0\27\0\0", 8) = 8
read(0, "\2\2\0\1\0", 64) = 5
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Segmentation fault
On 09/11/2017, Stanislav Paskalev notifications@github.com wrote:
You probably have a socket file remaining on the filesystem. Check for and delete ~/.sam.localhost or use 'strace sam' to find what it's trying to use.
-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/deadpixi/sam/issues/67#issuecomment-343085450
I believe this should be fixed in the latest master. Please try the latest code, @marttt, and let me know. Thanks.
Hi. After compiling from latest source, I get this error on startup:
samterm loads, command window seems to work. But sam exits with
Segmentation fault
after I try to open a new window.Thanks for any suggestions!