Load JULIA via "julia -p 8" and failed to load CUDAnative library

cudanative

#1

Hi Tim @maleadt
I load julia via the following command

xxx@XXX:~$ julia7 -p 6
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.7.0-beta.0 (2018-06-24 01:32 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-pc-linux-gnu

but failed to load CUDAnative then. I got an “unhandled task failure”. Do you know what that is?

julia> using CUDAnative
      From worker 3:	*** Error in `/home/yunlong/julia7/bin/julia': double free or corruption (!prev): 0x0000000001837c40 ***
      From worker 3:	======= Backtrace: =========
      From worker 3:	/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f7a6c9b47e5]
      From worker 3:	/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f7a6c9bd37a]
      From worker 3:	/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f7a6c9c153c]
      From worker 3:	/usr/lib/x86_64-linux-gnu/libcuda.so.387.26(+0x30c888)[0x7f7a3fcb4888]
      From worker 3:	/usr/lib/x86_64-linux-gnu/libcuda.so.387.26(+0x30c974)[0x7f7a3fcb4974]
      From worker 3:	/usr/lib/x86_64-linux-gnu/libcuda.so.387.26(+0x1ef281)[0x7f7a3fb97281]
      From worker 3:	/usr/lib/x86_64-linux-gnu/libcuda.so.387.26(+0x1c79fb)[0x7f7a3fb6f9fb]
      From worker 3:	/usr/lib/x86_64-linux-gnu/libcuda.so.387.26(cuInit+0x4d)[0x7f7a3fbc2abd]
      From worker 3:	[0x7f7a58d3cc86]
      From worker 3:	/home/yunlong/julia7/bin/../lib/libjulia.so.0.7(jl_fptr_trampoline+0x3c)[0x7f7a6d373f4c]
      From worker 3:	/home/yunlong/julia7/bin/../lib/libjulia.so.0.7(jl_apply_generic+0x136)[0x7f7a6d377d36]
      From worker 3:	/home/yunlong/julia7/bin/../lib/libjulia.so.0.7(+0x7d5d5)[0x7f7a6d3ad5d5]
      From worker 3:	/home/yunlong/julia7/bin/../lib/libjulia.so.0.7(+0x70d4e)[0x7f7a6d3a0d4e]
      From worker 3:	/home/yunlong/julia7/bin/../lib/libjulia.so.0.7(jl_restore_incremental+0x45)[0x7f7a6d3a3115]
      From worker 3:	/home/yunlong/julia7/lib/julia/sys.so(+0xb56594)[0x7f7a5f243594]
      From worker 3:	/home/yunlong/julia7/lib/julia/sys.so(+0xb575ae)[0x7f7a5f2445ae]
      From worker 3:	/home/yunlong/julia7/lib/julia/sys.so(+0xb56a0a)[0x7f7a5f243a0a]
      From worker 3:	[0x7f7a58d2a3ff]
      From worker 3:	[0x7f7a58d32e7e]
      From worker 3:	[0x7f7a58d23411]
      From worker 3:	/home/yunlong/julia7/bin/../lib/libjulia.so.0.7(jl_fptr_trampoline+0x3c)[0x7f7a6d373f4c]
      From worker 3:	/home/yunlong/julia7/bin/../lib/libjulia.so.0.7(jl_apply_generic+0x136)[0x7f7a6d377d36]
      From worker 3:	/home/yunlong/julia7/bin/../lib/libjulia.so.0.7(jl_f__apply+0x246)[0x7f7a6d3860b6]
...
...
...
...
    
      From worker 2:	7f9a917e4000-7f9a919e3000 ---p 00007000 08:03 1191394                    /home/yunlong/julia7/lib/julia/libcolamd.so
      From worker 2:	7f9a919e3000-7f9a919e4000 r--p 00006000 08:03 1191394                    /home/yunlong/julia7/lib/julia/libcolamd.so
      From worker 2:	7f9a919e4000-7f9a919e5000 rw-p 00007000 08:03 1191394                    /home/yunlong/julia7/lib/julia/libcolamd.so
      From worker 2:	7f9a919e5000-7f9a91ad9000 r-xp 00000000 08:03 1191356                    /home/yunlong/julia7/lib/julia/libcholmod.so
      From worker 2:	7f9a91ad9000-7f9a91cd8000 ---p 000f4000 08:03 1191356                    /home/yunlong/julia7/lib/julia/libcholmod.so
      From worker 2:	7f9a91cd8000-7f9a91cd9000 r--p 000f3000 08:03 1191356                    /home/yunlong/julia7/lib/julia/libcholmod.so
      From worker 2:	7f9a91cd9000-7f9a91cda000 rw-p 000f4000 08:03 1191356                    /home/yunlong/julia7/lib/julia/libcholmod.so
      From worker 2:	7f9a91cda000-7f9a93cda000 rw-p 00000000 00:00 0 
      From worker 2:	7f9a93cda000-7f9a93cdb000 ---p 00000000 00:00 0 
      From worker 2:	7f9a93cdb000-7f9a944db000 rw-p 00000000 00:00 0 
      From worker 2:	7f9a944db000-7f9a944dc000 ---p 00000000 00:00 0 
      From worker 2:	7f9a944dc000-7f9a94cdc000 rw-p 00000000 00:00 0 
      From worker 2:	7f9a94cdc000-7f9a94cdd000 ---p 00000000 00:00 0 
      From worker 2:	7f9a94cdd000-7f9a954dd000 rw-p 00000000 00:00 0 
      From worker 2:	7f9a954dd000-7f9a954de000 ---p 00000000 00:00 0 
      From worker 2:	7f9a954de000-7f9a95cde000 rw-p 00000000 00:00 0 
      From worker 2:	7f9a95cde000-7f9a99cde000 rw-p 00000000 00:00 0 
      From worker 2:	7f9a99cde000-7f9a99cdf000 ---p 00000000 00:00 0 
      From worker 2:	7f9a99cdf000-7f9a9a4df000 rw-p 00000000 00:00 0 
      From worker 2:	7f9a9a4df000-7f9a9a4e0000 ---p 00000000 00:00 0 
      From worker 2:	7f9a9a4e0000-7f9a9ace0000 rw-p 00000000 00:00 0 
      From worker 2:	7f9a9ace0000-7f9a9ace1000 ---p 00000000 00:00 0 
      From worker 2:	7f9a9ace1000-7f9a9b4e1000 rw-p 00000000 00:00 0 
      From worker 2:	7f9a9b4e1000-7f9a9b51f000 r-xp 00000000 08:03 1191344                    /home/yunlong/julia7/lib/julia/libquadmath.so.0
      From worker 2:	7f9a9b51f000-7f9a9b71e000 ---p 0003e000 08:03 1191344                    /home/yunlong/julia7/lib/julia/libquadmath.so.0
      From worker 2:	7f9a9b71e000-7f9a9b71f000 r--p 0003d000 08:03 1191344                    /home/yunlong/julia7/lib/julia/libquadmath.so.0
      From worker 2:	7f9a9b71f000-7f9a9b720000 rw-p 0003e000 08:03 1191344                    /home/yunlong/julia7/lib/julia/libquadmath.so.0
      From worker 2:	7f9a9b720000-7f9a9b721000 rw-p 000e8000 08:03 1191344                    /home/yunlong/julia7/lib/julia/libquadmath.so.0
      From worker 2:	7f9a9b721000-7f9a9b8f0000 r-xp 00000000 08:03 1191349                    /home/yunlong/julia7/lib/julia/libgfortran.so.4
      From worker 2:	7f9a9b8f0000-7f9a9baf0000 ---p 001cf000 08:03 1191349                    /home/yunlong/julia7/lib/julia/libgfortran.so.4
      From worker 2:	7f9a9baf0000-7f9a9baf1000 r--p 001cf000 08:03 1191349                    /home/yunlong/julia7/lib/julia/libgfortran.so.4
      From worker 2:	7f9a9baf1000-7f9a9baf2000 rw-p 001d0000 08:03 1191349                    /home/yunlong/julia7/lib/julia/libgfortran.so.4
      From worker 2:	7f9a9baf2000-7f9a9baf3000 rw-p 00000000 00:00 0 
      From worker 2:	7f9a9baf3000-7f9a9de0b000 r-xp 00000000 08:03 1191386                    /home/yunlong/julia7/lib/julia/libopenblas64_.so
      From worker 2:	7f9a9de0b000-7f9a9e00a000 ---p 02318000 08:03 1191386                    /home/yunlong/julia7/lib/julia/libopenblas64_.so
      From worker 2:	7f9a9e00a000-7f9a9e010000 r--p 02317000 08:03 1191386                    /home/yunlong/julia7/lib/julia/libopenblas64_.so
      From worker 2:	7f9a9e010000-7f9a9e02c000 rw-p 0231d000 08:03 1191386                    /home/yunlong/julia7/lib/julia/libopenblas64_.so
      From worker 2:	7f9a9e02c000-7f9a9e08b000 rw-p 00000000 00:00 0 
      From worker 2:	7f9a9e08b000-7f9a9e08e000 r-xp 00000000 08:03 1191384                    /home/yunlong/julia7/lib/julia/libdSFMT.so
      From worker 2:	7f9a9e08e000-7f9a9e28d000 ---p 00003000 08:03 1191384                    /home/yunlong/julia7/lib/julia/libdSFMT.so
      From worker 2:	7f9a9e28d000-7f9a9e28e000 r--p 00002000 08:03 1191384                    /home/yunlong/julia7/lib/julia/libdSFMT.so
      From worker 2:	7f9a9e28e000-7f9a9e28f000 rw-p 00003000 08:03 1191384                    /home/yunlong/julia7/lib/julia/libdSFMT.so
      From worker 2:	7f9a9e28f000-7f9a9ea31000 rw-p 00000000 00:00 0 
      From worker 2:	7f9a9ea31000-7f9a9ea5f000 r-xp 00000000 08:03 1191385                    /home/yunlong/julia7/lib/julia/libssh2.so.1.0.1
      From worker 2:	7f9a9ea5f000-7f9a9ec5f000 ---p 0002e000 08:03 1191385                    /home/yunlong/julia7/lib/julia/libssh2.so.1.0.1
      From worker 2:	7f9a9ec5f000-7f9a9ec60000 r--p 0002e000 08:03 1191385                    /home/yunlong/julia7/lib/julia/libssh2.so.1.0.1
      From worker 2:	7f9a9ec60000-7f9a9ec61000 rw-p 0002f000 08:03 1191385                    /home/yunlong/julia7/lib/julia/libssh2.so.1.0.1
      From worker 2:	7f9a9ec61000-7f9a9ecac000 r-xp 00000000 08:03 1191389                    /home/yunlong/julia7/lib/julia/libmbedcrypto.so.2.6.0
      From worker 2:	7f9a9ecac000-7f9a9eeac000 ---p 0004b000 08:03 1191389                    /home/yunlong/julia7/lib/julia/libmbedcrypto.so.2.6.0
      From worker 2:	7f9a9eeac000-7f9a9eeaf000 r--p 0004b000 08:03 1191389                    /home/yunlong/julia7/lib/julia/libmbedcrypto.so.2.6.0
      From worker 2:	7f9a9eeaf000-7f9a9eeb0000 rw-p 0004e000 08:03 1191389                    /home/yunlong/julia7/lib/julia/libmbedcrypto.so.2.6.0
      From worker 2:	7f9a9eeb0000-7f9a9eeb3000 rw-p 00000000 00:00 0 
      From worker 2:	7f9a9eeb3000-7f9a9eec6000 r-xp 00000000 08:03 1191377                    /home/yunlong/julia7/lib/julia/libmbedx509.so.2.6.0
      From worker 2:	7f9a9eec6000-7f9a9f0c5000 ---p 00013000 08:03 1191377                    /home/yunlong/julia7/lib/julia/libmbedx509.so.2.6.0
      From worker 2:	7f9a9f0c5000-7f9a9f0c6000 r--p 00012000 08:03 1191377                    /home/yunlong/julia7/lib/julia/libmbedx509.so.2.6.0
      From worker 2:	7f9a9f0c6000-7f9a9f0c7000 rw-p 00013000 08:03 1191377                    /home/yunlong/julia7/lib/julia/libmbedx509.so.2.6.0
      From worker 2:	7f9a9f0c7000-7f9a9f0ed000 r-xp 00000000 08:03 1191392                    /home/yunlong/julia7/lib/julia/libmbedtls.so.2.6.0
      From worker 2:	7f9a9f0ed000-7f9a9f2ec000 ---p 00026000 08:03 1191392                    /home/yunlong/julia7/lib/julia/libmbedtls.so.2.6.0
      From worker 2:	7f9a9f2ec000-7f9a9f2ee000 r--p 00025000 08:03 1191392                    /home/yunlong/julia7/lib/julia/libmbedtls.so.2.6.0
      From worker 2:	7f9a9f2ee000-7f9a9f2ef000 rw-p 00027000 08:03 1191392                    /home/yunlong/julia7/lib/julia/libmbedtls.so.2.6.0
      From worker 2:	7f9a9f2ef000-7f9a9f35a000 r-xp 00000000 08:03 1191371                    /home/yunlong/julia7/lib/julia/libcurl.so.4.5.0
      From worker 2:	7f9a9f35a000-7f9a9f55a000 ---p 0006b000 08:03 1191371                    /home/yunlong/julia7/lib/julia/libcurl.so.4.5.0
      From worker 2:	7f9a9f55a000-7f9a9f55c000 r--p 0006b000 08:03 1191371                    /home/yunlong/julia7/lib/julia/libcurl.so.4.5.0
      From worker 2:	7f9a9f55c000-7f9a9f55d000 rw-p 0006d000 08:03 1191371                    /home/yunlong/julia7/lib/julia/libcurl.so.4.5.0
      From worker 2:	7f9a9f55d000-7f9a9f55e000 rw-p 00000000 00:00 0 
      From worker 2:	7f9a9f55e000-7f9a9f682000 r-xp 00000000 08:03 1191347                    /home/yunlong/julia7/lib/julia/libgit2.so.0.27.2
      From worker 2:	7f9a9f682000-7f9a9f881000 ---p 00124000 08:03 1191347                    /home/yunlong/julia7/lib/julia/libgit2.so.0.27.2
      From worker 2:	7f9a9f881000-7f9a9f883000 r--p 00123000 08:03 1191347                    /home/yunlong/julia7/lib/julia/libgit2.so.0.27.2
      From worker 2:	7f9a9f883000-7f9a9f888000 rw-p 00125000 08:03 1191347                    /home/yunlong/julia7/lib/julia/libgit2.so.0.27.2
      From worker 2:	7f9a9f888000-7f9a9f889000 rw-p 00000000 00:00 0 
      From worker 2:	7f9a9f889000-7f9a9f901000 r-xp 00000000 08:03 1191341                    /home/yunlong/julia7/lib/julia/libmpfr.so.6.0.0
      From worker 2:	7f9a9f901000-7f9a9fb01000 ---p 00078000 08:03 1191341                    /home/yunlong/julia7/lib/julia/libmpfr.so.6.0.0
      From worker 2:	7f9a9fb01000-7f9a9fb03000 r--p 00078000 08:03 1191341                    /home/yunlong/julia7/lib/julia/libmpfr.so.6.0.0
      From worker 2:	7f9a9fb03000-7f9a9fb04000 rw-p 0007a000 08:03 1191341                    /home/yunlong/julia7/lib/julia/libmpfr.so.6.0.0
      From worker 2:	7f9a9fb04000-7f9a9fb76000 r-xp 00000000 08:03 1191388                    /home/yunlong/julia7/lib/julia/libgmp.so.10.3.2
      From worker 2:	7f9a9fb76000-7f9a9fd75000 ---p 00072000 08:03 1191388                    /home/yunlong/julia7/lib/julia/libgmp.so.10.3.2
      From worker 2:	7f9a9fd75000-7f9a9fd76000 r--p 00071000 08:03 1191388                    /home/yunlong/julia7/lib/julia/libgmp.so.10.3.2
      From worker 2:	7f9a9fd76000-7f9a9fd77000 rw-p 00072000 08:03 1191388                    /home/yunlong/julia7/lib/julia/libgmp.so.10.3.2
      From worker 2:	7f9a9fd77000-7f9a9fe77000 r--s 00100000 00:15 23                         /dev/shm/julia-codegen-6344-1804289383 (deleted)
      From worker 2:	7f9a9fe77000-7f9aa0077000 r--s 00000000 00:15 23                         /dev/shm/julia-codegen-6344-1804289383 (deleted)
      From worker 2:	7f9aa0077000-7f9aa0177000 r-xs 00000000 00:15 23                         /dev/shm/julia-codegen-6344-1804289383 (deleted)
      From worker 2:	7f9aa0177000-7f9aa0277000 rw-p 00000000 00:00 0 
      From worker 2:	7f9aa0277000-7f9aa0301000 r-xp 00000000 08:03 1191361                    /home/yunlong/julia7/lib/julia/libpcre2-8.so.0.6.0
      From worker 2:	7f9aa0301000-7f9aa0501000 ---p 0008a000 08:03 1191361                    /home/yunlong/julia7/lib/julia/libpcre2-8.so.0.6.0
      From worker 2:	7f9aa0501000-7f9aa0502000 r--p 0008a000 08:03 1191361                    /home/yunlong/julia7/lib/julia/libpcre2-8.so.0.6.0
      From worker 2:	7f9aa0502000-7f9aa0503000 rw-p 0008b000 08:03 1191361                    /home/yunlong/julia7/lib/julia/libpcre2-8.so.0.6.0
      From worker 2:	7f9aa0503000-7f9aa124e000 rw-p 00000000 00:00 0 
      From worker 2:	7f9aa124e000-7f9aa5252000 rw-p 00000000 00:00 0 
      From worker 2:	7f9aa5252000-7f9aa5253000 ---p 00000000 00:00 0 
      From worker 2:	7f9aa5253000-7f9aa5a53000 rw-p 00000000 00:00 0 
      From worker 2:	7f9aa5a53000-7f9aa698d000 r-xp 00000000 08:03 1191373                    /home/yunlong/julia7/lib/julia/sys.so
      From worker 2:	7f9aa698d000-7f9aa6b8d000 ---p 00f3a000 08:03 1191373                    /home/yunlong/julia7/lib/julia/sys.so
      From worker 2:	7f9aa6b8d000-7f9aa6bba000 r--p 00f3a000 08:03 1191373                    /home/yunlong/julia7/lib/julia/sys.so
      From worker 2:	7f9aa6bba000-7f9aafc74000 rw-p 00f67000 08:03 1191373                    /home/yunlong/julia7/lib/julia/sys.so
      From worker 2:	7f9aafc74000-7f9aafc91000 rw-p 00000000 00:00 0 
      From worker 2:	7f9aafc91000-7f9aafc92000 ---p 00000000 00:00 0 
      From worker 2:	7f9aafc92000-7f9ab0492000 rw-p 00000000 00:00 0 
      From worker 2:	7f9ab0492000-7f9ab076a000 r--p 00000000 08:02 787922                     /usr/lib/locale/locale-archive
      From worker 2:	7f9ab076a000-7f9ab0780000 r-xp 00000000 08:03 1191345                    /home/yunlong/julia7/lib/julia/libgcc_s.so.1
      From worker 2:	7f9ab0780000-7f9ab097f000 ---p 00016000 08:03 1191345                    /home/yunlong/julia7/lib/julia/libgcc_s.so.1
      From worker 2:	7f9ab097f000-7f9ab0980000 r--p 00015000 08:03 1191345                    /home/yunlong/julia7/lib/julia/libgcc_s.so.1
      From worker 2:	7f9ab0980000-7f9ab0981000 rw-p 00016000 08:03 1191345                    /home/yunlong/julia7/lib/julia/libgcc_s.so.1
      From worker 2:	7f9ab0981000-7f9ab0982000 rw-p 000b7000 08:03 1191345                    /home/yunlong/julia7/lib/julia/libgcc_s.so.1
      From worker 2:	7f9ab0982000-7f9ab0a8a000 r-xp 00000000 08:02 1708514                    /lib/x86_64-linux-gnu/libm-2.23.so
      From worker 2:	7f9ab0a8a000-7f9ab0c89000 ---p 00108000 08:02 1708514                    /lib/x86_64-linux-gnu/libm-2.23.so
      From worker 2:	7f9ab0c89000-7f9ab0c8a000 r--p 00107000 08:02 1708514                    /lib/x86_64-linux-gnu/libm-2.23.so
      From worker 2:	7f9ab0c8a000-7f9ab0c8b000 rw-p 00108000 08:02 1708514                    /lib/x86_64-linux-gnu/libm-2.23.so
      From worker 2:	7f9ab0c8b000-7f9ab0dfb000 r-xp 00000000 08:03 1191350                    /home/yunlong/julia7/lib/julia/libstdc++.so.6
      From worker 2:	7f9ab0dfb000-7f9ab0ffa000 ---p 00170000 08:03 1191350                    /home/yunlong/julia7/lib/julia/libstdc++.so.6
      From worker 2:	7f9ab0ffa000-7f9ab1004000 r--p 0016f000 08:03 1191350                    /home/yunlong/julia7/lib/julia/libstdc++.so.6
      From worker 2:	7f9ab1004000-7f9ab1006000 rw-p 00179000 08:03 1191350                    /home/yunlong/julia7/lib/julia/libstdc++.so.6
      From worker 2:	7f9ab1006000-7f9ab1009000 rw-p 00000000 00:00 0 
      From worker 2:	7f9ab1009000-7f9ab383c000 r-xp 00000000 08:03 1191362                    /home/yunlong/julia7/lib/julia/libLLVM-6.0.so
      From worker 2:	7f9ab383c000-7f9ab3a3c000 ---p 02833000 08:03 1191362                    /home/yunlong/julia7/lib/julia/libLLVM-6.0.so
      From worker 2:	7f9ab3a3c000-7f9ab3c42000 r--p 02833000 08:03 1191362                    /home/yunlong/julia7/lib/julia/libLLVM-6.0.so
      From worker 2:	7f9ab3c42000-7f9ab3c62000 rw-p 02a39000 08:03 1191362                    /home/yunlong/julia7/lib/julia/libLLVM-6.0.so
      From worker 2:	7f9ab3c62000-7f9ab3ca3000 rw-p 00000000 00:00 0 
      From worker 2:	7f9ab3ca3000-7f9ab3e63000 r-xp 00000000 08:02 1708518                    /lib/x86_64-linux-gnu/libc-2.23.so
      From worker 2:	7f9ab3e63000-7f9ab4063000 ---p 001c0000 08:02 1708518                    /lib/x86_64-linux-gnu/libc-2.23.so
      From worker 2:	7f9ab4063000-7f9ab4067000 r--p 001c0000 08:02 1708518                    /lib/x86_64-linux-gnu/libc-2.23.so
      From worker 2:	7f9ab4067000-7f9ab4069000 rw-p 001c4000 08:02 1708518                    /lib/x86_64-linux-gnu/libc-2.23.so
      From worker 2:	7f9ab4069000-7f9ab406d000 rw-p 00000000 00:00 0 
      From worker 2:	7f9ab406d000-7f9ab4085000 r-xp 00000000 08:02 1708517                    /lib/x86_64-linux-gnu/libpthread-2.23.so
      From worker 2:	7f9ab4085000-7f9ab4284000 ---p 00018000 08:02 1708517                    /lib/x86_64-linux-gnu/libpthread-2.23.so
      From worker 2:	7f9ab4284000-7f9ab4285000 r--p 00017000 08:02 1708517                    /lib/x86_64-linux-gnu/libpthread-2.23.so
      From worker 2:	7f9ab4285000-7f9ab4286000 rw-p 00018000 08:02 1708517                    /lib/x86_64-linux-gnu/libpthread-2.23.so
      From worker 2:	7f9ab4286000-7f9ab428a000 rw-p 00000000 00:00 0 
      From worker 2:	7f9ab428a000-7f9ab4291000 r-xp 00000000 08:02 1708539                    /lib/x86_64-linux-gnu/librt-2.23.so
      From worker 2:	7f9ab4291000-7f9ab4490000 ---p 00007000 08:02 1708539                    /lib/x86_64-linux-gnu/librt-2.23.so
      From worker 2:	7f9ab4490000-7f9ab4491000 r--p 00006000 08:02 1708539                    /lib/x86_64-linux-gnu/librt-2.23.so
      From worker 2:	7f9ab4491000-7f9ab4492000 rw-p 00007000 08:02 1708539                    /lib/x86_64-linux-gnu/librt-2.23.so
      From worker 2:	7f9ab4492000-7f9ab4495000 r-xp 00000000 08:02 1708520                    /lib/x86_64-linux-gnu/libdl-2.23.so
      From worker 2:	7f9ab4495000-7f9ab4694000 ---p 00003000 08:02 1708520                    /lib/x86_64-linux-gnu/libdl-2.23.so
      From worker 2:	7f9ab4694000-7f9ab4695000 r--p 00002000 08:02 1708520                    /lib/x86_64-linux-gnu/libdl-2.23.so
      From worker 2:	7f9ab4695000-7f9ab4696000 rw-p 00003000 08:02 1708520                    /lib/x86_64-linux-gnu/libdl-2.23.so
      From worker 2:	7f9ab4696000-7f9ab48c9000 r-xp 00000000 08:03 1191336                    /home/yunlong/julia7/lib/libjulia.so.0.7.0
      From worker 2:	7f9ab48c9000-7f9ab4ac8000 ---p 00233000 08:03 1191336                    /home/yunlong/julia7/lib/libjulia.so.0.7.0
      From worker 2:	7f9ab4ac8000-7f9ab4acd000 r--p 00232000 08:03 1191336                    /home/yunlong/julia7/lib/libjulia.so.0.7.0
      From worker 2:	7f9ab4acd000-7f9ab4b1b000 rw-p 00237000 08:03 1191336                    /home/yunlong/julia7/lib/libjulia.so.0.7.0
      From worker 2:	7f9ab4b1b000-7f9ab4e07000 rw-p 00000000 00:00 0 
      From worker 2:	7f9ab4e07000-7f9ab4e2d000 r-xp 00000000 08:02 1708516                    /lib/x86_64-linux-gnu/ld-2.23.so
      From worker 2:	7f9ab4e70000-7f9ab500c000 rw-p 00000000 00:00 0 
      From worker 2:	7f9ab5017000-7f9ab5018000 rw-p 00000000 00:00 0 
      From worker 2:	7f9ab5018000-7f9ab5028000 rwxp 00000000 00:00 0 
      From worker 2:	7f9ab5028000-7f9ab502b000 r--p 00000000 00:00 0 
      From worker 2:	7f9ab502b000-7f9ab502c000 rw-p 00000000 00:00 0 
      From worker 2:	7f9ab502c000-7f9ab502d000 r--p 00025000 08:02 1708516                    /lib/x86_64-linux-gnu/ld-2.23.so
      From worker 2:	7f9ab502d000-7f9ab502e000 rw-p 00026000 08:02 1708516                    /lib/x86_64-linux-gnu/ld-2.23.so
      From worker 2:	7f9ab502e000-7f9ab502f000 rw-p 00000000 00:00 0 
      From worker 2:	7ffd57a2b000-7ffd57a4c000 rw-p 00000000 00:00 0                          [stack]
      From worker 2:	7ffd57ac3000-7ffd57ac6000 r--p 00000000 00:00 0                          [vvar]
      From worker 2:	7ffd57ac6000-7ffd57ac8000 r-xp 00000000 00:00 0                          [vdso]
      From worker 2:	ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
      From worker 2:	
      From worker 2:	signal (6): Aborted
      From worker 2:	in expression starting at no file:0
      From worker 3:	raise at /build/glibc-Cl5G7W/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54
      From worker 3:	abort at /build/glibc-Cl5G7W/glibc-2.23/stdlib/abort.c:89
      From worker 3:	__libc_message at /build/glibc-Cl5G7W/glibc-2.23/libio/../sysdeps/posix/libc_fatal.c:175
      From worker 3:	malloc_printerr at /build/glibc-Cl5G7W/glibc-2.23/malloc/malloc.c:5006 [inlined]
      From worker 3:	_int_free at /build/glibc-Cl5G7W/glibc-2.23/malloc/malloc.c:3867
      From worker 3:	__libc_free at /build/glibc-Cl5G7W/glibc-2.23/malloc/malloc.c:2968
      From worker 3:	unknown function (ip: 0x7f7a3fcb4887)
      From worker 3:	unknown function (ip: 0x7f7a3fcb4973)
      From worker 3:	unknown function (ip: 0x7f7a3fb97280)
      From worker 3:	unknown function (ip: 0x7f7a3fb6f9fa)
      From worker 3:	cuInit at /usr/lib/x86_64-linux-gnu/libcuda.so.387.26 (unknown line)
      From worker 3:	macro expansion at /home/yunlong/.julia7/packages/CUDAdrv/l6Pl/src/base.jl:145 [inlined]
      From worker 3:	init at /home/yunlong/.julia7/packages/CUDAdrv/l6Pl/src/init.jl:10 [inlined]
      From worker 3:	init at /home/yunlong/.julia7/packages/CUDAdrv/l6Pl/src/init.jl:10 [inlined]
      From worker 3:	__init__ at /home/yunlong/.julia7/packages/CUDAdrv/l6Pl/src/init.jl:26
      From worker 3:	jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1813
      From worker 3:	jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2151
      From worker 2:	raise at /build/glibc-Cl5G7W/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54
      From worker 2:	abort at /build/glibc-Cl5G7W/glibc-2.23/stdlib/abort.c:89
      From worker 3:	jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1533 [inlined]
      From worker 3:	jl_module_run_initializer at /buildworker/worker/package_linux64/build/src/toplevel.c:90
      From worker 2:	__libc_message at /build/glibc-Cl5G7W/glibc-2.23/libio/../sysdeps/posix/libc_fatal.c:175
      From worker 2:	malloc_printerr at /build/glibc-Cl5G7W/glibc-2.23/malloc/malloc.c:5006 [inlined]
      From worker 2:	_int_free at /build/glibc-Cl5G7W/glibc-2.23/malloc/malloc.c:3867
      From worker 2:	__libc_free at /build/glibc-Cl5G7W/glibc-2.23/malloc/malloc.c:2968
      From worker 2:	unknown function (ip: 0x7f9a8701a887)
      From worker 2:	unknown function (ip: 0x7f9a8701a973)
      From worker 2:	unknown function (ip: 0x7f9a86efd280)
      From worker 2:	unknown function (ip: 0x7f9a86ed59fa)
      From worker 2:	cuInit at /usr/lib/x86_64-linux-gnu/libcuda.so.387.26 (unknown line)
      From worker 3:	jl_init_restored_modules at /buildworker/worker/package_linux64/build/src/dump.c:2276 [inlined]
      From worker 3:	_jl_restore_incremental at /buildworker/worker/package_linux64/build/src/dump.c:2942
      From worker 3:	jl_restore_incremental at /buildworker/worker/package_linux64/build/src/dump.c:2962
      From worker 2:	macro expansion at /home/yunlong/.julia7/packages/CUDAdrv/l6Pl/src/base.jl:145 [inlined]
      From worker 2:	init at /home/yunlong/.julia7/packages/CUDAdrv/l6Pl/src/init.jl:10 [inlined]
      From worker 2:	init at /home/yunlong/.julia7/packages/CUDAdrv/l6Pl/src/init.jl:10 [inlined]
      From worker 2:	__init__ at /home/yunlong/.julia7/packages/CUDAdrv/l6Pl/src/init.jl:26
      From worker 2:	jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1813
      From worker 2:	jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2151
      From worker 2:	jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1533 [inlined]
      From worker 2:	jl_module_run_initializer at /buildworker/worker/package_linux64/build/src/toplevel.c:90
      From worker 2:	jl_init_restored_modules at /buildworker/worker/package_linux64/build/src/dump.c:2276 [inlined]
      From worker 2:	_jl_restore_incremental at /buildworker/worker/package_linux64/build/src/dump.c:2942
      From worker 2:	jl_restore_incremental at /buildworker/worker/package_linux64/build/src/dump.c:2962
      From worker 3:	_include_from_serialized at ./loading.jl:641
      From worker 2:	_include_from_serialized at ./loading.jl:641
      From worker 3:	_require_search_from_serialized at ./loading.jl:730
      From worker 2:	_require_search_from_serialized at ./loading.jl:730
      From worker 3:	_tryrequire_from_serialized at ./loading.jl:667
      From worker 3:	_require_search_from_serialized at ./loading.jl:721
      From worker 3:	_require at ./loading.jl:960
      From worker 3:	#2 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Distributed/src/Distributed.jl:79
      From worker 3:	jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1813
      From worker 3:	jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2151
      From worker 3:	jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1533 [inlined]
      From worker 3:	jl_f__apply at /buildworker/worker/package_linux64/build/src/builtins.c:561
      From worker 3:	#116 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Distributed/src/process_messages.jl:276
      From worker 3:	run_work_thunk at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Distributed/src/process_messages.jl:56
      From worker 3:	unknown function (ip: 0x7f7a58d231d7)
      From worker 3:	jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1813
      From worker 3:	jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2151
      From worker 3:	run_work_thunk at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Distributed/src/process_messages.jl:65
      From worker 3:	jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1813
      From worker 3:	jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2151
      From worker 3:	#102 at ./task.jl:257
      From worker 3:	jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1813
      From worker 3:	jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2151
      From worker 3:	jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1533 [inlined]
      From worker 3:	start_task at /buildworker/worker/package_linux64/build/src/task.c:268
      From worker 3:	unknown function (ip: 0xffffffffffffffff)
      From worker 3:	Allocations: 4304903 (Pool: 4304402; Big: 501); GC: 9
      From worker 2:	_tryrequire_from_serialized at ./loading.jl:667
      From worker 2:	_require_search_from_serialized at ./loading.jl:721
      From worker 2:	_require at ./loading.jl:960
      From worker 2:	#2 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Distributed/src/Distributed.jl:79
      From worker 2:	jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1813
      From worker 2:	jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2151
      From worker 2:	jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1533 [inlined]
      From worker 2:	jl_f__apply at /buildworker/worker/package_linux64/build/src/builtins.c:561
      From worker 2:	#116 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Distributed/src/process_messages.jl:276
      From worker 2:	run_work_thunk at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Distributed/src/process_messages.jl:56
      From worker 2:	unknown function (ip: 0x7f9aa0088a67)
      From worker 2:	jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1813
      From worker 2:	jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2151
      From worker 2:	run_work_thunk at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Distributed/src/process_messages.jl:65
      From worker 2:	jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1813
      From worker 2:	jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2151
      From worker 2:	#102 at ./task.jl:257
      From worker 2:	jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1813
      From worker 2:	jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2151
      From worker 2:	jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1533 [inlined]
      From worker 2:	start_task at /buildworker/worker/package_linux64/build/src/task.c:268
      From worker 2:	unknown function (ip: 0xffffffffffffffff)
      From worker 2:	Allocations: 4267481 (Pool: 4266986; Big: 495); GC: 8
Worker 3 terminated.
Worker 2 terminated.ERROR (unhandled task failure): EOFError: read end of file

ERROR (unhandled task failure): EOFError: read end of file
ERROR: ProcessExitedException()
try_yieldto(::typeof(Base.ensure_rescheduled), ::Base.RefValue{Task}) at ./event.jl:196
wait() at ./event.jl:255
wait(::Condition) at ./event.jl:46
wait_impl at ./channels.jl:353 [inlined]
wait at ./channels.jl:349 [inlined]
fetch_buffered at ./channels.jl:292 [inlined]
fetch(::Channel{Any}) at ./channels.jl:290
#remotecall_wait#154(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Function, ::Distributed.Worker) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Distributed/src/remotecall.jl:403
remotecall_wait(::Function, ::Distributed.Worker) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Distributed/src/remotecall.jl:398
#remotecall_wait#157(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Function, ::Int64) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Distributed/src/remotecall.jl:419
remotecall_wait(::Function, ::Int64) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Distributed/src/remotecall.jl:419
(::getfield(Distributed, Symbol("##1#3")){Base.PkgId})() at ./task.jl:257

...and 1 more exception(s).

Stacktrace:
 [1] sync_end(::Array{Any,1}) at ./task.jl:224
 [2] _require_callback(::Base.PkgId) at ./task.jl:242
 [3] #invokelatest#1 at ./essentials.jl:670 [inlined]
 [4] invokelatest at ./essentials.jl:669 [inlined]
 [5] require(::Base.PkgId) at ./loading.jl:882
 [6] require(::Module, ::Symbol) at ./loading.jl:874



#2

I need CPU parallel computing for the pre-process, so I load julia program with the -p 6 option.


#3

Works here. Does it also crash by loading CUDAdrv? If so, please open an issue with more information for us to actually try and reproduce this (ie. platform details, exact package versions, etc).


#4

xref https://github.com/JuliaGPU/CUDAdrv.jl/issues/107

Summary: probably an OOM situation, as indicated by the status returned by cuInit on Julia 0.6.
The segfault on Julia 0.7 is unfortunate, but happens in CUDA so we can’t do much about that.
Running with fewer processes fixed this particular issue.