Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check if sbcl build with multi-threads supoort when building #551

Closed
amutu opened this issue May 11, 2017 · 9 comments
Closed

check if sbcl build with multi-threads supoort when building #551

amutu opened this issue May 11, 2017 · 9 comments

Comments

@amutu
Copy link

amutu commented May 11, 2017

Hi I am working on making the pgloader to the official Ports for FreeBSD.Now the default sbcl in FreeBSD do not with multi-threads support, see #319 . I think it is better for pgloader check if sbcl build with multi-threads support when building and print some useful message to the user, so the user will find and solve the problem earlier.

@dimitri
Copy link
Owner

dimitri commented May 11, 2017

I see that you have Clozure CL included in FreeBSD ports already, at https://www.freebsd.org/ports/lisp.html and https://svnweb.freebsd.org/ports/head/lang/ccl/. Please consider depending on CCL rather than SBCL. The Garbage Collector of CCL is better suited to pgloader and gives more stability.

And thanks for packaging pgloader for FreeBSD!

@amutu
Copy link
Author

amutu commented May 12, 2017

I build and install pgloader with ccl,but I find a wired problem,which when I invoke pgloader without full path,it report “Couldn't load lisp heap image from pgloader.image: No such file or directory”.With full path,pgloader works OK.

> $pgloader --help
> Couldn't load lisp heap image from pgloader.image: No such file or directory
> $ /usr/local/bin/pgloader --help
> /usr/local/bin/pgloader [ option ... ] command-file ...
> /usr/local/bin/pgloader [ option ... ] SOURCE TARGET
>   --help -h                       boolean  Show usage and exit.
>   --version -V                    boolean  Displays pgloader version and exit.
>   --quiet -q                      boolean  Be quiet
>   --verbose -v                    boolean  Be verbose
>   --debug -d                      boolean  Display debug level information.
>   --client-min-messages           string   Filter logs seen at the console (default: "warning")
>   --log-min-messages              string   Filter logs seen in the logfile (default: "notice")
>   --summary -S                    string   Filename where to copy the summary
>   --root-dir -D                   string   Output root directory. (default: #P"/tmp/pgloader/")
>   --upgrade-config -U             boolean  Output the command(s) corresponding to .conf file for v2.x
>   --list-encodings -E             boolean  List pgloader known encodings and exit.
>   --logfile -L                    string   Filename where to send the logs.
>   --load-lisp-file -l             string   Read user code from files
>   --dry-run                       boolean  Only check database connections, don't load anything.
>   --on-error-stop                 boolean  Refrain from handling errors properly.
>   --with                          string   Load options
>   --set                           string   PostgreSQL options
>   --field                         string   Source file fields specification
>   --cast                          string   Specific cast rules
>   --type                          string   Force input source type
>   --encoding                      string   Source expected encoding
>   --before                        string   SQL script to run before loading the data
>   --after                         string   SQL script to run after loading the data
>   --self-upgrade                  string   Path to pgloader newer sources
>   --regress                       boolean  Drive regression testing

@dimitri
Copy link
Owner

dimitri commented May 12, 2017

That's strange, I might need help from Clozure people here.

@xrme
Copy link

xrme commented May 12, 2017

I'd probably have to try building pgloader myself to really troubleshoot this.

You might try to strace to see what ccl is doing as it tries to find the image file.

When ccl starts up, it tries to figure out what the full path of the executable is. On FreeBSD, it uses realpath(3) to try to determine that. It does this because by default it looks for the image file in the same directory as the executable. On other platforms, it uses different mechanisms, so there could be something FreeBSD-specific going on here.

Although, I assume that the pgloader image would typically would be saved with :prepend-kernel t, in which case we shouldn't be needing to figure out the directory that the executable is in.

If you troubleshoot a little more and can't get anywhere, let me know and I'll try to find some time to look into it.

@amutu
Copy link
Author

amutu commented May 13, 2017

hi,the following is truss (truss is a strace like tool for freebsd ) output of the bad and good running.
from the bad output:

openat(AT_FDCWD,"/tmp/pgloader.image",O_RDONLY,00) ERR#2 'No such file or directory'
it try to open the file at current work dir,don't know why.

your post mentioned “:prepend-kernel t”,I do not know how to get it,if you need this info,please tell me how to get it.

root@xx:/tmp # pwd
/tmp

####################################

root@xx:/tmp # truss pgloader
mmap(0x0,32768,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366402560 (0x80065b000)
issetugid() = 0 (0x0)
lstat("/etc",{ mode=drwxr-xr-x ,inode=2086656,size=2560,blksize=32768 }) = 0 (0x0)
lstat("/etc/libmap.conf",{ mode=-rw-r--r-- ,inode=2086730,size=109,blksize=32768 }) = 0 (0x0)
openat(AT_FDCWD,"/etc/libmap.conf",O_CLOEXEC,00) = 3 (0x3)
fstat(3,{ mode=-rw-r--r-- ,inode=2086730,size=109,blksize=32768 }) = 0 (0x0)
mmap(0x0,109,PROT_READ,MAP_PRIVATE,3,0x0) = 34366435328 (0x800663000)
close(3) = 0 (0x0)
lstat("/usr",{ mode=drwxr-xr-x ,inode=882816,size=512,blksize=32768 }) = 0 (0x0)
lstat("/usr/local",{ mode=drwxr-xr-x ,inode=4,size=15,blksize=4096 }) = 0 (0x0)
lstat("/usr/local/etc",{ mode=drwxr-xr-x ,inode=74,size=63,blksize=4096 }) = 0 (0x0)
lstat("/usr/local/etc/libmap.d",0x7fffffffc6c8) ERR#2 'No such file or directory'
munmap(0x800663000,109) = 0 (0x0)
openat(AT_FDCWD,"/var/run/ld-elf.so.hints",O_CLOEXEC,00) = 3 (0x3)
read(3,"Ehnt^A\0\0\0\M^@\0\0\0\M^]\0\0"...,128) = 128 (0x80)
lseek(3,0x80,SEEK_SET) = 128 (0x80)
read(3,"/lib:/usr/lib:/usr/lib/compat:/u"...,157) = 157 (0x9d)
close(3) = 0 (0x0)
access("/lib/libm.so.5",F_OK) = 0 (0x0)
openat(AT_FDCWD,"/lib/libm.so.5",O_CLOEXEC,00) = 3 (0x3)
fstat(3,{ mode=-r--r--r-- ,inode=80278,size=185040,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 34366435328 (0x800663000)
mmap(0x0,2265088,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 34368503808 (0x80085c000)
mmap(0x80085c000,167936,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 34368503808 (0x80085c000)
mmap(0x800a84000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x28000) = 34370764800 (0x800a84000)
munmap(0x800663000,4096) = 0 (0x0)
close(3) = 0 (0x0)
access("/lib/libthr.so.3",F_OK) = 0 (0x0)
openat(AT_FDCWD,"/lib/libthr.so.3",O_CLOEXEC,00) = 3 (0x3)
fstat(3,{ mode=-r--r--r-- ,inode=80289,size=103576,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 34366435328 (0x800663000)
mmap(0x0,2248704,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 34370768896 (0x800a85000)
mmap(0x800a85000,98304,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 34370768896 (0x800a85000)
mmap(0x800c9d000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x18000) = 34372964352 (0x800c9d000)
mmap(0x800c9e000,49152,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 34372968448 (0x800c9e000)
munmap(0x800663000,4096) = 0 (0x0)
close(3) = 0 (0x0)
access("/lib/libc.so.7",F_OK) = 0 (0x0)
openat(AT_FDCWD,"/lib/libc.so.7",O_CLOEXEC,00) = 3 (0x3)
fstat(3,{ mode=-r--r--r-- ,inode=80335,size=1647104,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 34366435328 (0x800663000)
mmap(0x0,3854336,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 34373017600 (0x800caa000)
mmap(0x800caa000,1536000,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 34373017600 (0x800caa000)
mmap(0x801021000,49152,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x177000) = 34376650752 (0x801021000)
mmap(0x80102d000,172032,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 34376699904 (0x80102d000)
munmap(0x800663000,4096) = 0 (0x0)
close(3) = 0 (0x0)
munmap(0x800662000,4096) = 0 (0x0)
mmap(0x0,53248,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366431232 (0x800662000)
munmap(0x80066a000,20480) = 0 (0x0)
mmap(0x0,102400,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366464000 (0x80066a000)
sysarch(AMD64_SET_FSBASE,0x7fffffffe0a8) = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
readlink("/etc/malloc.conf",0x7fffffffd7d0,1024) ERR#2 'No such file or directory'
issetugid() = 0 (0x0)
mmap(0x0,4194304,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34376871936 (0x801057000)
munmap(0x801057000,4194304) = 0 (0x0)
mmap(0x0,8384512,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34376871936 (0x801057000)
munmap(0x801057000,3837952) = 0 (0x0)
munmap(0x801800000,352256) = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
getpid() = 58768 (0xe590)
__sysctl(0x7fffffffdbe0,0x2,0x800ca9120,0x7fffffffdbe8,0x0,0x0) = 0 (0x0)
getrlimit(RLIMIT_STACK,{ cur=536870912,max=536870912 }) = 0 (0x0)
__sysctl(0x7fffffffdb00,0x2,0x7fffffffdb40,0x7fffffffdb38,0x800a997f8,0xd) = 0 (0x0)
__sysctl(0x7fffffffdb40,0x3,0x800ca7bec,0x7fffffffdbe8,0x0,0x0) = 0 (0x0)
mmap(0x0,4194304,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34384904192 (0x801800000)
thr_self(0x801806400) = 0 (0x0)
mmap(0x7fffdfffe000,4096,PROT_NONE,MAP_ANON,-1,0x0) = 140736951476224 (0x7fffdfffe000)
rtprio_thread(0x0,0x189c0,0x7fffffffdbb8) = 0 (0x0)
sysarch(AMD64_SET_FSBASE,0x7fffffffdbc8) = 0 (0x0)
sigaction(32,{ 0x800a92240 SA_SIGINFO ss_t },0x0) = 0 (0x0)
sigprocmask(SIG_UNBLOCK,{ },0x0) = 0 (0x0)
_umtx_op(0x7fffffffdb78,UMTX_OP_WAKE,0x1,0x0,0x0) = 0 (0x0)
mprotect(0x0,0,PROT_NONE) = 0 (0x0)
getpid() = 58768 (0xe590)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
getcontext(0x7fffffffd6c0) = 0 (0x0)
sysarch(AMD64_GET_XFPUSTATE,0x7fffffffd698) = 0 (0x0)
__sysctl(0x7fffffffe490,0x2,0x7fffffffe528,0x7fffffffe488,0x0,0x0) = 0 (0x0)
__sysctl(0x7fffffffe490,0x2,0x7fffffffe628,0x7fffffffe488,0x0,0x0) = 0 (0x0)
__sysctl(0x7fffffffe490,0x2,0x7fffffffe728,0x7fffffffe488,0x0,0x0) = 0 (0x0)
__sysctl(0x7fffffffe490,0x2,0x7fffffffe828,0x7fffffffe488,0x0,0x0) = 0 (0x0)
__sysctl(0x7fffffffe490,0x2,0x7fffffffe928,0x7fffffffe488,0x0,0x0) = 0 (0x0)
__getcwd("/tmp",1024) = 0 (0x0)
lstat("/tmp/pgloader",{ mode=drwxr-x--- ,inode=1284142,size=512,blksize=32768 }) = 0 (0x0)
mmap(0x15000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 86016 (0x15000)
getpid() = 58768 (0xe590)
getrlimit(RLIMIT_STACK,{ cur=536870912,max=536870912 }) = 0 (0x0)
openat(AT_FDCWD,"/tmp/pgloader",O_RDONLY,00) = 3 (0x3)
lseek(3,0x0,SEEK_END) = 512 (0x200)
lseek(3,0x1f0,SEEK_SET) = 496 (0x1f0)
read(3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",16) = 16 (0x10)
close(3) = 0 (0x0)
getrlimit(RLIMIT_VMEM,{ cur=9223372036854775807,max=9223372036854775807 }) = 0 (0x0)
setrlimit(RLIMIT_VMEM,{ cur=9223372036854775807,max=9223372036854775807 }) = 0 (0x0)
mmap(0x300000000000,131072,PROT_NONE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 52776558133248 (0x300000000000)
mprotect(0x300000000000,0,PROT_NONE) = 0 (0x0)
mmap(0x307dfe000000,33554432,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 53317690458112 (0x307dfe000000)
mmap(0x0,532676608,PROT_NONE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34389098496 (0x801c00000)
mmap(0x0,2080768,PROT_NONE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34376871936 (0x801057000)
openat(AT_FDCWD,"/tmp/pgloader.image",O_RDONLY,00) ERR#2 'No such file or directory'
Couldn't load lisp heap image from /tmp/pgloader.imagewrite(2,"Couldn't load lisp heap image fr"...,54) = 54 (0x36)
stat("/usr/share/nls/C/libc.cat",0x7fffffffe468) ERR#2 'No such file or directory'
stat("/usr/share/nls/libc/C",0x7fffffffe468) ERR#2 'No such file or directory'
stat("/usr/local/share/nls/C/libc.cat",0x7fffffffe468) ERR#2 'No such file or directory'
stat("/usr/local/share/nls/libc/C",0x7fffffffe468) ERR#2 'No such file or directory'
: No such file or directory
write(2,": No such file or directory\n",28) = 28 (0x1c)
process exit, rval = 255

##########################################

root@xx# truss /usr/local/bin/pgloader
mmap(0x0,32768,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366402560 (0x80065b000)
issetugid() = 0 (0x0)
lstat("/etc",{ mode=drwxr-xr-x ,inode=2086656,size=2560,blksize=32768 }) = 0 (0x0)
lstat("/etc/libmap.conf",{ mode=-rw-r--r-- ,inode=2086730,size=109,blksize=32768 }) = 0 (0x0)
openat(AT_FDCWD,"/etc/libmap.conf",O_CLOEXEC,00) = 3 (0x3)
fstat(3,{ mode=-rw-r--r-- ,inode=2086730,size=109,blksize=32768 }) = 0 (0x0)
mmap(0x0,109,PROT_READ,MAP_PRIVATE,3,0x0) = 34366435328 (0x800663000)
close(3) = 0 (0x0)
lstat("/usr",{ mode=drwxr-xr-x ,inode=882816,size=512,blksize=32768 }) = 0 (0x0)
lstat("/usr/local",{ mode=drwxr-xr-x ,inode=4,size=15,blksize=4096 }) = 0 (0x0)
lstat("/usr/local/etc",{ mode=drwxr-xr-x ,inode=74,size=63,blksize=4096 }) = 0 (0x0)
lstat("/usr/local/etc/libmap.d",0x7fffffffc6b8) ERR#2 'No such file or directory'
munmap(0x800663000,109) = 0 (0x0)
openat(AT_FDCWD,"/var/run/ld-elf.so.hints",O_CLOEXEC,00) = 3 (0x3)
read(3,"Ehnt^A\0\0\0\M^@\0\0\0\M^]\0\0"...,128) = 128 (0x80)
lseek(3,0x80,SEEK_SET) = 128 (0x80)
read(3,"/lib:/usr/lib:/usr/lib/compat:/u"...,157) = 157 (0x9d)
close(3) = 0 (0x0)
access("/lib/libm.so.5",F_OK) = 0 (0x0)
openat(AT_FDCWD,"/lib/libm.so.5",O_CLOEXEC,00) = 3 (0x3)
fstat(3,{ mode=-r--r--r-- ,inode=80278,size=185040,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 34366435328 (0x800663000)
mmap(0x0,2265088,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 34368503808 (0x80085c000)
mmap(0x80085c000,167936,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 34368503808 (0x80085c000)
mmap(0x800a84000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x28000) = 34370764800 (0x800a84000)
munmap(0x800663000,4096) = 0 (0x0)
close(3) = 0 (0x0)
access("/lib/libthr.so.3",F_OK) = 0 (0x0)
openat(AT_FDCWD,"/lib/libthr.so.3",O_CLOEXEC,00) = 3 (0x3)
fstat(3,{ mode=-r--r--r-- ,inode=80289,size=103576,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 34366435328 (0x800663000)
mmap(0x0,2248704,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 34370768896 (0x800a85000)
mmap(0x800a85000,98304,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 34370768896 (0x800a85000)
mmap(0x800c9d000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x18000) = 34372964352 (0x800c9d000)
mmap(0x800c9e000,49152,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 34372968448 (0x800c9e000)
munmap(0x800663000,4096) = 0 (0x0)
close(3) = 0 (0x0)
access("/lib/libc.so.7",F_OK) = 0 (0x0)
openat(AT_FDCWD,"/lib/libc.so.7",O_CLOEXEC,00) = 3 (0x3)
fstat(3,{ mode=-r--r--r-- ,inode=80335,size=1647104,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,3,0x0) = 34366435328 (0x800663000)
mmap(0x0,3854336,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 34373017600 (0x800caa000)
mmap(0x800caa000,1536000,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,3,0x0) = 34373017600 (0x800caa000)
mmap(0x801021000,49152,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,3,0x177000) = 34376650752 (0x801021000)
mmap(0x80102d000,172032,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 34376699904 (0x80102d000)
munmap(0x800663000,4096) = 0 (0x0)
close(3) = 0 (0x0)
munmap(0x800662000,4096) = 0 (0x0)
mmap(0x0,53248,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366431232 (0x800662000)
munmap(0x80066a000,20480) = 0 (0x0)
mmap(0x0,102400,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366464000 (0x80066a000)
sysarch(AMD64_SET_FSBASE,0x7fffffffe098) = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
readlink("/etc/malloc.conf",0x7fffffffd7c0,1024) ERR#2 'No such file or directory'
issetugid() = 0 (0x0)
mmap(0x0,4194304,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34376871936 (0x801057000)
munmap(0x801057000,4194304) = 0 (0x0)
mmap(0x0,8384512,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34376871936 (0x801057000)
munmap(0x801057000,3837952) = 0 (0x0)
munmap(0x801800000,352256) = 0 (0x0)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
getpid() = 58863 (0xe5ef)
__sysctl(0x7fffffffdbd0,0x2,0x800ca9120,0x7fffffffdbd8,0x0,0x0) = 0 (0x0)
getrlimit(RLIMIT_STACK,{ cur=536870912,max=536870912 }) = 0 (0x0)
__sysctl(0x7fffffffdaf0,0x2,0x7fffffffdb30,0x7fffffffdb28,0x800a997f8,0xd) = 0 (0x0)
__sysctl(0x7fffffffdb30,0x3,0x800ca7bec,0x7fffffffdbd8,0x0,0x0) = 0 (0x0)
mmap(0x0,4194304,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34384904192 (0x801800000)
thr_self(0x801806400) = 0 (0x0)
mmap(0x7fffdfffe000,4096,PROT_NONE,MAP_ANON,-1,0x0) = 140736951476224 (0x7fffdfffe000)
rtprio_thread(0x0,0x18843,0x7fffffffdba8) = 0 (0x0)
sysarch(AMD64_SET_FSBASE,0x7fffffffdbb8) = 0 (0x0)
sigaction(32,{ 0x800a92240 SA_SIGINFO ss_t },0x0) = 0 (0x0)
sigprocmask(SIG_UNBLOCK,{ },0x0) = 0 (0x0)
_umtx_op(0x7fffffffdb68,UMTX_OP_WAKE,0x1,0x0,0x0) = 0 (0x0)
mprotect(0x0,0,PROT_NONE) = 0 (0x0)
getpid() = 58863 (0xe5ef)
sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
getcontext(0x7fffffffd6b0) = 0 (0x0)
sysarch(AMD64_GET_XFPUSTATE,0x7fffffffd688) = 0 (0x0)
__sysctl(0x7fffffffe480,0x2,0x7fffffffe518,0x7fffffffe478,0x0,0x0) = 0 (0x0)
__sysctl(0x7fffffffe480,0x2,0x7fffffffe618,0x7fffffffe478,0x0,0x0) = 0 (0x0)
__sysctl(0x7fffffffe480,0x2,0x7fffffffe718,0x7fffffffe478,0x0,0x0) = 0 (0x0)
__sysctl(0x7fffffffe480,0x2,0x7fffffffe818,0x7fffffffe478,0x0,0x0) = 0 (0x0)
__sysctl(0x7fffffffe480,0x2,0x7fffffffe918,0x7fffffffe478,0x0,0x0) = 0 (0x0)
lstat("/usr",{ mode=drwxr-xr-x ,inode=882816,size=512,blksize=32768 }) = 0 (0x0)
lstat("/usr/local",{ mode=drwxr-xr-x ,inode=4,size=15,blksize=4096 }) = 0 (0x0)
lstat("/usr/local/bin",{ mode=drwxr-xr-x ,inode=93,size=343,blksize=25600 }) = 0 (0x0)
lstat("/usr/local/bin/pgloader",{ mode=-rwxr-xr-x ,inode=32612,size=84214000,blksize=131072 }) = 0 (0x0)
mmap(0x15000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 86016 (0x15000)
getpid() = 58863 (0xe5ef)
getrlimit(RLIMIT_STACK,{ cur=536870912,max=536870912 }) = 0 (0x0)
openat(AT_FDCWD,"/usr/local/bin/pgloader",O_RDONLY,00) = 3 (0x3)
lseek(3,0x0,SEEK_END) = 84214000 (0x50500f0)
lseek(3,0x50500e0,SEEK_SET) = 84213984 (0x50500e0)
read(3,"nepOILCMegam^P\M^?\M^?\M^?",16) = 16 (0x10)
lseek(3,0xffffffffffffff10,SEEK_CUR) = 84213760 (0x5050000)
read(3,"nepOILCMegameliF\M-0^W^UY\b\0"...,64) = 64 (0x40)
close(3) = 0 (0x0)
getrlimit(RLIMIT_VMEM,{ cur=9223372036854775807,max=9223372036854775807 }) = 0 (0x0)
setrlimit(RLIMIT_VMEM,{ cur=9223372036854775807,max=9223372036854775807 }) = 0 (0x0)
mmap(0x300000000000,131072,PROT_NONE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 52776558133248 (0x300000000000)
mprotect(0x300000000000,0,PROT_NONE) = 0 (0x0)
mmap(0x307dfe000000,33554432,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 53317690458112 (0x307dfe000000)
mmap(0x0,532676608,PROT_NONE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34389098496 (0x801c00000)
mmap(0x0,2080768,PROT_NONE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34376871936 (0x801057000)
openat(AT_FDCWD,"/usr/local/bin/pgloader",O_RDONLY,00) = 3 (0x3)
lseek(3,0x0,SEEK_END) = 84214000 (0x50500f0)
lseek(3,0x50500e0,SEEK_SET) = 84213984 (0x50500e0)
read(3,"nepOILCMegam^P\M^?\M^?\M^?",16) = 16 (0x10)
lseek(3,0xffffffffffffff10,SEEK_CUR) = 84213760 (0x5050000)
read(3,"nepOILCMegameliF\M-0^W^UY\b\0"...,64) = 64 (0x40)
read(3,"@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0`"...,160) = 160 (0xa0)
lseek(3,0xfffffffffb053f20,SEEK_CUR) = 671744 (0xa4000)
lseek(3,0x0,SEEK_CUR) = 671744 (0xa4000)
lseek(3,0xa4000,SEEK_SET) = 671744 (0xa4000)
mmap(0x12000,8192,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_FIXED,3,0xa4000) = 73728 (0x12000)
lseek(3,0xa5860,SEEK_SET) = 677984 (0xa5860)
lseek(3,0x0,SEEK_CUR) = 677984 (0xa5860)
lseek(3,0xa6000,SEEK_SET) = 679936 (0xa6000)
mmap(0x300000000000,51953664,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED,3,0xa6000) = 52776558133248 (0x300000000000)
lseek(3,0x3231950,SEEK_SET) = 52631888 (0x3231950)
lseek(3,0x0,SEEK_CUR) = 52631888 (0x3231950)
lseek(3,0x3232000,SEEK_SET) = 52633600 (0x3232000)
mmap(0x302000000000,17432576,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 52913997086720 (0x302000000000)
mmap(0x307bfe000000,139264,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 53309100523520 (0x307bfe000000)
mmap(0x307e3f800000,139264,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 53318789365760 (0x307e3f800000)
mmap(0x302000000000,17330176,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_FIXED,3,0x3232000) = 52913997086720 (0x302000000000)
lseek(3,0x42b8660,SEEK_SET) = 69961312 (0x42b8660)
lseek(3,0x0,SEEK_CUR) = 69961312 (0x42b8660)
lseek(3,0x42b9000,SEEK_SET) = 69963776 (0x42b9000)
mmap(0x300040000000,14139392,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_FIXED,3,0x42b9000) = 52777631875072 (0x300040000000)
mmap(0x307e00000000,110592,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 53317724012544 (0x307e00000000)
mmap(0x801c00000,110592,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED,3,0x5035000) = 34389098496 (0x801c00000)
mmap(0x801057000,432,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 34376871936 (0x801057000)
lseek(3,0x504f720,SEEK_SET) = 84211488 (0x504f720)
lseek(3,0x0,SEEK_CUR) = 84211488 (0x504f720)
lseek(3,0x5050000,SEEK_SET) = 84213760 (0x5050000)
lseek(3,0x5050000,SEEK_SET) = 84213760 (0x5050000)
mmap(0x3020010a0000,33554432,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 52914014519296 (0x3020010a0000)
mmap(0x307bfe022000,262144,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 53309100662784 (0x307bfe022000)
mprotect(0x307bfe022000,262144,PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mmap(0x307e3f822000,262144,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 53318789505024 (0x307e3f822000)
mprotect(0x307e3f822000,262144,PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigaction(SIGBUS,{ 0x800a920f0 SA_SIGINFO ss_t },{ SIG_DFL 0x0 ss_t }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
SIGNAL 10 (SIGBUS)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },0x0) = 0 (0x0)
sigreturn(0x7fffffffdfc0) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigaction(SIGBUS,{ SIG_DFL 0x0 ss_t },{ 0x800a920f0 SA_SIGINFO ss_t }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigaction(SIGILL,{ 0x800a920f0 SA_ONSTACK|SA_SIGINFO ss_t },{ SIG_DFL 0x0 ss_t }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigaction(SIGBUS,{ 0x800a920f0 SA_ONSTACK|SA_SIGINFO ss_t },{ SIG_DFL 0x0 ss_t }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigaction(SIGSEGV,{ 0x800a920f0 SA_ONSTACK|SA_SIGINFO ss_t },{ SIG_DFL 0x0 ss_t }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigaction(SIGFPE,{ 0x800a920f0 SA_ONSTACK|SA_SIGINFO ss_t },{ SIG_DFL 0x0 ss_t }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigaction(SIGEMT,{ 0x800a920f0 SA_ONSTACK|SA_SIGINFO ss_t },{ SIG_DFL 0x0 ss_t }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigaction(SIGPIPE,{ SIG_IGN SA_RESTART ss_t },{ SIG_DFL 0x0 ss_t }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
lstat("/usr",{ mode=drwxr-xr-x ,inode=882816,size=512,blksize=32768 }) = 0 (0x0)
lstat("/usr/local",{ mode=drwxr-xr-x ,inode=4,size=15,blksize=4096 }) = 0 (0x0)
lstat("/usr/local/bin",{ mode=drwxr-xr-x ,inode=93,size=343,blksize=25600 }) = 0 (0x0)
lstat("/usr/local/bin/pgloader",{ mode=-rwxr-xr-x ,inode=32612,size=84214000,blksize=131072 }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
sysarch(AMD64_SET_GSBASE,0x7fffffffe998) = 0 (0x0)
mmap(0x0,2412544,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34921775104 (0x821800000)
mprotect(0x821800000,4096,PROT_READ|PROT_EXEC) = 0 (0x0)
mprotect(0x821801000,102400,PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x0,405504,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366566400 (0x800683000)
mprotect(0x800683000,69632,PROT_READ|PROT_EXEC) = 0 (0x0)
mprotect(0x800694000,69632,PROT_READ|PROT_EXEC) = 0 (0x0)
__sysctl(0x7fffffffe840,0x2,0x7fffffffe880,0x7fffffffe878,0x800a9991c,0x15) = 0 (0x0)
__sysctl(0x7fffffffe880,0x3,0x800ca8104,0x7fffffffe970,0x0,0x0) = 0 (0x0)
cpuset_getaffinity(0x3,0x1,0x18843,0x8,0x801843058) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigaction(SIGUSR2,{ 0x800a920f0 SA_RESTART|SA_SIGINFO ss_t },{ SIG_DFL 0x0 ss_t }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigaction(37,{ 0x800a920f0 SA_ONSTACK|SA_SIGINFO ss_t },{ SIG_DFL SA_RESTART ss_t }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
mmap(0x0,278528,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366971904 (0x8006e6000)
sigaltstack(0x7fffffffe990,0x0) = 0 (0x0)
mmap(0x0,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34367250432 (0x80072a000)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigaction(SIGINT,{ 0x800a920f0 SA_SIGINFO ss_t },{ SIG_DFL SA_RESTART ss_t }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigaction(SIGTERM,{ 0x800a920f0 SA_SIGINFO ss_t },{ SIG_DFL 0x0 ss_t }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ }) = 0 (0x0)
sigaction(SIGQUIT,{ 0x800a920f0 SA_SIGINFO ss_t },{ SIG_DFL SA_RESTART ss_t }) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
SIGNAL 10 (SIGBUS)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },0x0) = 0 (0x0)
sigaltstack(0x0,0x800729660) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },0x0) = 0 (0x0)
sigreturn(0x7fffffffe590) ERR#1941 'Unknown error: 1941'
access("/lib/libintl.so.8",F_OK) ERR#2 'No such file or directory'
access("/usr/lib/libintl.so.8",F_OK) ERR#2 'No such file or directory'
access("/usr/lib/compat/libintl.so.8",F_OK) ERR#2 'No such file or directory'
access("/usr/local/lib/libintl.so.8",F_OK) = 0 (0x0)
openat(AT_FDCWD,"/usr/local/lib/libintl.so.8",O_CLOEXEC,00) = 4 (0x4)
fstat(4,{ mode=-rw-r--r-- ,inode=25293,size=55166,blksize=55296 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,4,0x0) = 34367254528 (0x80072b000)
mmap(0x0,2142208,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 34924187648 (0x821a4d000)
mmap(0x821a4d000,40960,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,4,0x0) = 34924187648 (0x821a4d000)
mmap(0x821c57000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,4,0xa000) = 34926325760 (0x821c57000)
munmap(0x80072b000,4096) = 0 (0x0)
close(4) = 0 (0x0)
access("/lib/libgpg-error.so.0",F_OK) ERR#2 'No such file or directory'
access("/usr/lib/libgpg-error.so.0",F_OK) ERR#2 'No such file or directory'
access("/usr/lib/compat/libgpg-error.so.0",F_OK) ERR#2 'No such file or directory'
access("/usr/local/lib/libgpg-error.so.0",F_OK) = 0 (0x0)
openat(AT_FDCWD,"/usr/local/lib/libgpg-error.so.0",O_CLOEXEC,00) = 4 (0x4)
fstat(4,{ mode=-rwxr-xr-x ,inode=23985,size=93126,blksize=93184 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,4,0x0) = 34367254528 (0x80072b000)
mmap(0x0,2174976,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 34926329856 (0x821c58000)
mmap(0x821c58000,77824,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,4,0x0) = 34926329856 (0x821c58000)
mmap(0x821e6a000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,4,0x12000) = 34928500736 (0x821e6a000)
munmap(0x80072b000,4096) = 0 (0x0)
__sysctl(0x7fffffffd710,0x2,0x80085b148,0x7fffffffd708,0x0,0x0) = 0 (0x0)
__sysctl(0x7fffffffd710,0x2,0x80085b248,0x7fffffffd708,0x0,0x0) = 0 (0x0)
__sysctl(0x7fffffffd710,0x2,0x80085b348,0x7fffffffd708,0x0,0x0) = 0 (0x0)
__sysctl(0x7fffffffd710,0x2,0x80085b448,0x7fffffffd708,0x0,0x0) = 0 (0x0)
__sysctl(0x7fffffffd710,0x2,0x80085b548,0x7fffffffd708,0x0,0x0) = 0 (0x0)
close(4) = 0 (0x0)
access("/lib/libgcrypt.so.20",F_OK) ERR#2 'No such file or directory'
access("/usr/lib/libgcrypt.so.20",F_OK) ERR#2 'No such file or directory'
access("/usr/lib/compat/libgcrypt.so.20",F_OK) ERR#2 'No such file or directory'
access("/usr/local/lib/libgcrypt.so.20",F_OK) = 0 (0x0)
openat(AT_FDCWD,"/usr/local/lib/libgcrypt.so.20",O_CLOEXEC,00) = 4 (0x4)
fstat(4,{ mode=-rwxr-xr-x ,inode=24035,size=1072656,blksize=131072 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,4,0x0) = 34367254528 (0x80072b000)
mmap(0x0,3170304,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 34928504832 (0x821e6b000)
mmap(0x821e6b000,1044480,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,4,0x0) = 34928504832 (0x821e6b000)
mmap(0x82216a000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,4,0xff000) = 34931646464 (0x82216a000)
munmap(0x80072b000,4096) = 0 (0x0)
close(4) = 0 (0x0)
access("/lib/libsybdb.so.5",F_OK) ERR#2 'No such file or directory'
access("/usr/lib/libsybdb.so.5",F_OK) ERR#2 'No such file or directory'
access("/usr/lib/compat/libsybdb.so.5",F_OK) ERR#2 'No such file or directory'
access("/usr/local/lib/libsybdb.so.5",F_OK) = 0 (0x0)
openat(AT_FDCWD,"/usr/local/lib/libsybdb.so.5",O_CLOEXEC,00) = 4 (0x4)
fstat(4,{ mode=-rwxr-xr-x ,inode=10262,size=455440,blksize=131072 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,4,0x0) = 34367254528 (0x80072b000)
mmap(0x0,2551808,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 34931675136 (0x822171000)
mmap(0x822171000,438272,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,4,0x0) = 34931675136 (0x822171000)
mmap(0x8223db000,20480,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,4,0x6a000) = 34934206464 (0x8223db000)
munmap(0x80072b000,4096) = 0 (0x0)
close(4) = 0 (0x0)
access("/lib/libssl.so.7",F_OK) ERR#2 'No such file or directory'
access("/usr/lib/libssl.so.7",F_OK) = 0 (0x0)
openat(AT_FDCWD,"/usr/lib/libssl.so.7",O_CLOEXEC,00) = 4 (0x4)
fstat(4,{ mode=-r--r--r-- ,inode=882880,size=443520,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,4,0x0) = 34367254528 (0x80072b000)
mmap(0x0,2539520,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 34934226944 (0x8223e0000)
mmap(0x8223e0000,405504,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,4,0x0) = 34934226944 (0x8223e0000)
mmap(0x822642000,40960,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,4,0x62000) = 34936725504 (0x822642000)
munmap(0x80072b000,4096) = 0 (0x0)
close(4) = 0 (0x0)
access("/lib/libcrypto.so.7",F_OK) = 0 (0x0)
openat(AT_FDCWD,"/lib/libcrypto.so.7",O_CLOEXEC,00) = 4 (0x4)
fstat(4,{ mode=-r--r--r-- ,inode=80337,size=2043280,blksize=32768 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,4,0x0) = 34367254528 (0x80072b000)
mmap(0x0,4149248,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 34936766464 (0x82264c000)
mmap(0x82264c000,1884160,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,4,0x0) = 34936766464 (0x82264c000)
mmap(0x822a17000,163840,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,4,0x1cb000) = 34940743680 (0x822a17000)
mmap(0x822a3f000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 34940907520 (0x822a3f000)
munmap(0x80072b000,4096) = 0 (0x0)
close(4) = 0 (0x0)
access("/lib/libsqlite3.so.0",F_OK) ERR#2 'No such file or directory'
access("/usr/lib/libsqlite3.so.0",F_OK) ERR#2 'No such file or directory'
access("/usr/lib/compat/libsqlite3.so.0",F_OK) ERR#2 'No such file or directory'
access("/usr/local/lib/libsqlite3.so.0",F_OK) = 0 (0x0)
openat(AT_FDCWD,"/usr/local/lib/libsqlite3.so.0",O_CLOEXEC,00) = 4 (0x4)
fstat(4,{ mode=-rwxr-xr-x ,inode=30779,size=773960,blksize=131072 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ,MAP_PRIVATE|MAP_PREFAULT_READ,4,0x0) = 34367254528 (0x80072b000)
mmap(0x0,2871296,PROT_NONE,MAP_PRIVATE|MAP_ANON|MAP_NOCORE,-1,0x0) = 34940915712 (0x822a41000)
mmap(0x822a41000,757760,PROT_READ|PROT_EXEC,MAP_PRIVATE|MAP_FIXED|MAP_NOCORE|MAP_PREFAULT_READ,4,0x0) = 34940915712 (0x822a41000)
mmap(0x822cf9000,20480,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_PREFAULT_READ,4,0xb8000) = 34943766528 (0x822cf9000)
munmap(0x80072b000,4096) = 0 (0x0)
close(4) = 0 (0x0)
mmap(0x0,4096,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34367254528 (0x80072b000)
fstat(0,{ mode=crw--w---- ,inode=103,size=0,blksize=4096 }) = 0 (0x0)
ioctl(0,0x402c7413 { IOR 0x74('t'), 19, 44 },0xffffe980) = 0 (0x0)
fpathconf(0x0,0x3) = 255 (0xff)
fstat(1,{ mode=crw--w---- ,inode=103,size=0,blksize=4096 }) = 0 (0x0)
ioctl(1,0x402c7413 { IOR 0x74('t'), 19, 44 },0xffffe980) = 0 (0x0)
fpathconf(0x1,0x3) = 255 (0xff)
fstat(2,{ mode=crw--w---- ,inode=103,size=0,blksize=4096 }) = 0 (0x0)
ioctl(2,0x402c7413 { IOR 0x74('t'), 19, 44 },0xffffe980) = 0 (0x0)
fpathconf(0x2,0x3) = 255 (0xff)
fstat(2,{ mode=crw--w---- ,inode=103,size=0,blksize=4096 }) = 0 (0x0)
fstat(1,{ mode=crw--w---- ,inode=103,size=0,blksize=4096 }) = 0 (0x0)
getdtablesize() = 28773 (0x7065)
gettimeofday({ 1494635884.352961 },0x0) = 0 (0x0)
gettimeofday({ 1494635884.353270 },0x0) = 0 (0x0)
getuid() = 0 (0x0)
lstat("/root",{ mode=drwxr-xr-x ,inode=1765632,size=1536,blksize=32768 }) = 0 (0x0)
stat("/root",{ mode=drwxr-xr-x ,inode=1765632,size=1536,blksize=32768 }) = 0 (0x0)
getuid() = 0 (0x0)
lstat("/root",{ mode=drwxr-xr-x ,inode=1765632,size=1536,blksize=32768 }) = 0 (0x0)
stat("/root",{ mode=drwxr-xr-x ,inode=1765632,size=1536,blksize=32768 }) = 0 (0x0)
lstat("/usr",{ mode=drwxr-xr-x ,inode=882816,size=512,blksize=32768 }) = 0 (0x0)
lstat("/usr/local",{ mode=drwxr-xr-x ,inode=4,size=15,blksize=4096 }) = 0 (0x0)
lstat("/usr/local/bin",{ mode=drwxr-xr-x ,inode=93,size=343,blksize=25600 }) = 0 (0x0)
lstat("/usr/local/bin/pgloader",{ mode=-rwxr-xr-x ,inode=32612,size=84214000,blksize=131072 }) = 0 (0x0)
clock_gettime(4,{ 6227148.316292711 }) = 0 (0x0)
__sysctl(0x7fffffffe980,0x2,0x7fffffffe9c0,0x7fffffffe940,0x0,0x0) = 0 (0x0)
gettimeofday({ 1494635884.357311 },0x0) = 0 (0x0)
getrlimit(RLIMIT_STACK,{ cur=536870912,max=536870912 }) = 0 (0x0)
mmap(0x0,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34367258624 (0x80072c000)
mmap(0x7fffdfd99000,2510848,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_STACK,-1,0x0) = 140736948965376 (0x7fffdfd99000)
mprotect(0x7fffdfd99000,4096,PROT_NONE) = 0 (0x0)
thr_new(0x7fffffffe870,0x68) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
sysarch(AMD64_SET_GSBASE,0x7fffdfffde78) = 0 (0x0)
_umtx_op(0x80181a044,UMTX_OP_SEM_WAIT,0x0,0x0,0x0) = 0 (0x0)
_umtx_op(0x80181a044,UMTX_OP_SEM_WAKE,0x0,0x0,0x0) = 0 (0x0)
mmap(0x0,2207744,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34943787008 (0x822cfe000)
mprotect(0x822cfe000,4096,PROT_READ|PROT_EXEC) = 0 (0x0)
mprotect(0x822cff000,102400,PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x0,1191936,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34367262720 (0x80072d000)
mprotect(0x80072d000,69632,PROT_READ|PROT_EXEC) = 0 (0x0)
mprotect(0x80073e000,69632,PROT_READ|PROT_EXEC) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },{ }) = 0 (0x0)
cpuset_getaffinity(0x3,0x1,0x18a07,0x8,0x80187f060) = 0 (0x0)
mmap(0x0,278528,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34378952704 (0x801253000)
sigaltstack(0x7fffdfffde40,0x0) = 0 (0x0)
mmap(0x0,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34368454656 (0x800850000)
_umtx_op(0x801879574,UMTX_OP_SEM_WAKE,0x0,0x0,0x0) = 0 (0x0)
_umtx_op(0x8018795a4,UMTX_OP_SEM_WAKE,0x0,0x0,0x0) = 0 (0x0)
clock_gettime(0,{ 1494635884.365410314 }) = 0 (0x0)
_umtx_op(0x8018795b4,UMTX_OP_SEM_WAIT,0x0,0x0,0x0) = 0 (0x0)
_umtx_op(0x8018795b4,UMTX_OP_SEM_WAKE,0x0,0x0,0x0) = 0 (0x0)
SIGNAL 10 (SIGBUS)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },0x0) = 0 (0x0)
sigaltstack(0x0,0x801296660) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },0x0) = 0 (0x0)
sigreturn(0x7fffdfffda70) ERR#3 'No such process'
lstat("/tmp",{ mode=drwxrwxrwt ,inode=1284096,size=2048,blksize=32768 }) = 0 (0x0)
lstat("/tmp/pgloader",{ mode=drwxr-x--- ,inode=1284142,size=512,blksize=32768 }) = 0 (0x0)
stat("/tmp/pgloader",{ mode=drwxr-x--- ,inode=1284142,size=512,blksize=32768 }) = 0 (0x0)
ioctl(1,0x402c7413 { IOR 0x74('t'), 19, 44 },0xdfffde30) = 0 (0x0)
ioctl(1,0x402c7413 { IOR 0x74('t'), 19, 44 },0xdfffde30) = 0 (0x0)
ioctl(1,0x402c7413 { IOR 0x74('t'), 19, 44 },0xdfffde30) = 0 (0x0)
ioctl(1,0x402c7413 { IOR 0x74('t'), 19, 44 },0xdfffde30) = 0 (0x0)
ioctl(1,0x402c7413 { IOR 0x74('t'), 19, 44 },0xdfffde30) = 0 (0x0)
ioctl(1,0x402c7413 { IOR 0x74('t'), 19, 44 },0xdfffde30) = 0 (0x0)
SIGNAL 4 (SIGILL)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },0x0) = 0 (0x0)
sigaltstack(0x0,0x801296660) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
thr_kill(100419,SIGEMT) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },0x0) = 0 (0x0)
sigreturn(0x7fffdfffda70) = 33292438 (0x1fc0096)
_umtx_op(0x801879564,UMTX_OP_SEM_WAKE,0x0,0x0,0x0) = 0 (0x0)
mprotect(0x822cff000,102400,PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mprotect(0x822cfe000,4096,PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
munmap(0x822cfe000,2207744) = 0 (0x0)
mprotect(0x80073e000,69632,PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mprotect(0x80072d000,69632,PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
munmap(0x80072d000,1191936) = 0 (0x0)
sigaltstack(0x7fffdfffde58,0x7fffdfffde40) = 0 (0x0)
munmap(0x801253000,278528) = 0 (0x0)
munmap(0x800850000,4096) = 0 (0x0)
SIGNAL 7 (SIGEMT)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },0x0) = 0 (0x0)
sigreturn(0x7fffffffe400) = 0 (0x0)
SIGNAL 4 (SIGILL)
sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },0x0) = 0 (0x0)
sigaltstack(0x0,0x800729660) = 0 (0x0)
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
clock_gettime(0,{ 1494635884.377731969 }) = 0 (0x0)
_umtx_op(0x801872ad4,UMTX_OP_SEM_WAIT,0x0,0x18,0x7fffffffddd0) ERR#60 'Operation timed out'
gettimeofday({ 1494635884.378326 },0x0) = 0 (0x0)
clock_gettime(0,{ 1494635884.378604724 }) = 0 (0x0)
_umtx_op(0x801872ad4,UMTX_OP_SEM_WAIT,0x0,0x18,0x7fffffffddd0) ERR#60 'Operation timed out'
ioctl(1,0x402c7413 { IOR 0x74('t'), 19, 44 },0xffffddf0) = 0 (0x0)
ioctl(2,0x402c7413 { IOR 0x74('t'), 19, 44 },0xffffddf0) = 0 (0x0)
process exit, rval = 0

@xrme
Copy link

xrme commented May 13, 2017

I can't quite tell if I'm reading the truss output right, but it looks like in the first case that we somehow think that our executable file is /tmp/pgloader. That can't be right: the truss output says it's a directory.

lstat("/tmp/pgloader",{ mode=drwxr-x--- ,inode=1284142,size=512,blksize=32768 }) = 0 (0x0)
mmap(0x15000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 86016 (0x15000)
getpid()	= 58768 (0xe590)
getrlimit(RLIMIT_STACK,{ cur=536870912,max=536870912 }) = 0 (0x0)
openat(AT_FDCWD,"/tmp/pgloader",O_RDONLY,00)	= 3 (0x3)

In the case where you specify the full path, we see this:

lstat("/usr",{ mode=drwxr-xr-x ,inode=882816,size=512,blksize=32768 }) = 0 (0x0)
lstat("/usr/local",{ mode=drwxr-xr-x ,inode=4,size=15,blksize=4096 }) = 0 (0x0)
lstat("/usr/local/bin",{ mode=drwxr-xr-x ,inode=93,size=343,blksize=25600 }) = 0 (0x0)
lstat("/usr/local/bin/pgloader",{ mode=-rwxr-xr-x ,inode=32612,size=84214000,blksize=131072 }) = 0 (0x0)
mmap(0x15000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|MAP_ANON,-1,0x0) = 86016 (0x15000)
getpid()	= 58863 (0xe5ef)
getrlimit(RLIMIT_STACK,{ cur=536870912,max=536870912 }) = 0 (0x0)
openat(AT_FDCWD,"/usr/local/bin/pgloader",O_RDONLY,00) = 3 (0x3)
lseek(3,0x0,SEEK_END)	= 84214000 (0x50500f0)
lseek(3,0x50500e0,SEEK_SET)	= 84213984 (0x50500e0)
read(3,"nepOILCMegam^P\M^?\M^?\M^?",16)	= 16 (0x10)
lseek(3,0xffffffffffffff10,SEEK_CUR)	= 84213760 (0x5050000)
read(3,"nepOILCMegameliF\M-0^W^UY\b\0"...,64)	= 64 (0x40)

Note that we open our executable file and seek around to read a magic signature, "OpenMCLImageFile".

Are you sure that when you start pgloader without a full path (i.e., you start it relying on the shell's path), that you are really starting /usr/local/bin/pgloader, and not some other version of the binary located somewhere else?

If so, then it appears that ccl's strategy of calling realpath(3) on argv[0] is not sufficient to find the absolute path to the executable, and ccl will have to find some other way to do it. (Some Google searches seem to indicate that it can be done with sysctl, e.g. http://stackoverflow.com/questions/799679/programmatically-retrieving-the-absolute-path-of-an-os-x-command-line-app).

Please let me know.

@amutu
Copy link
Author

amutu commented May 13, 2017

yes I am sure.
type pgloader show the full path is /usr/local/bin/pgloader

And I also try different user,different shell such as tcsh,bash,sh,get the same result.

And I also find a security hole,maybe.If current work dir has pgloader,use pgloader can invoke it,shouldn't it must be ./pgloader?

@xrme
Copy link

xrme commented May 13, 2017

I am sorry to say that this is a FreeBSD-specific bug in CCL. Clozure/ccl#38

In the meanwhile, you might be able to write a shell wrapper as a workaround.

@dimitri
Copy link
Owner

dimitri commented May 14, 2017

Thanks a lot @xrme for having had a look and a fix that quick!

@dimitri dimitri closed this as completed May 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants