[R] inconsistency in mclapply.....

akshay kulkarni @k@h@y_e4 @end|ng |rom hotm@||@com
Sat Jun 10 13:49:10 CEST 2023


Dear Ivan,
                 I opened R with OPENBLAS_NUM_THREADS=1
but am bootless....

The parent process id:  2745

Child processes:  3857  and  3858


FOR 3857:
(gdb) backtrace
#0  0x00007f94b6454053 in gomp_team_barrier_wait_end () from /lib64/libgomp.so.1
#1  0x00007f94b6452a7d in gomp_team_end () from /lib64/libgomp.so.1
#2  0x00007f94b3c280cf in exec_blas () from /lib64/libopenblaso.so.0
#3  0x00007f94b3c263e4 in gemm_thread_n () from /lib64/libopenblaso.so.0
#4  0x00007f94b3c39077 in dgetrs_N_parallel () from /lib64/libopenblaso.so.0
#5  0x00007f94b39f7f65 in dgesv_ () from /lib64/libopenblaso.so.0
#6  0x00007f948556aebe in La_solve () from /usr/lib64/R/modules//lapack.so
#7  0x00007f948556e555 in mod_do_lapack () from /usr/lib64/R/modules//lapack.so
#8  0x00007f94b67a9c93 in bcEval () from /usr/lib64/R/lib/libR.so
#9  0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#10 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#11 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#12 0x00007f94b68045d3 in dispatchMethod.isra.4 () from /usr/lib64/R/lib/libR.so
#13 0x00007f94b6804a1c in Rf_usemethod () from /usr/lib64/R/lib/libR.so
#14 0x00007f94b6804db9 in do_usemethod () from /usr/lib64/R/lib/libR.so
#15 0x00007f94b67ad9b2 in bcEval () from /usr/lib64/R/lib/libR.so
#16 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#17 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#18 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#19 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#20 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#21 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#22 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#23 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#24 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#25 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#26 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#27 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#28 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#29 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#30 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#31 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#32 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#33 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#34 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#35 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#36 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#37 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#38 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#39 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#40 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#41 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#42 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
--Type <RET> for more, q to quit, c to continue without paging--c
#43 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#44 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#45 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#46 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#47 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#48 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#49 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#50 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#51 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#52 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#53 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#54 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#55 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#56 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#57 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#58 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#59 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#60 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#61 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#62 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#63 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#64 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#65 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#66 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#67 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#68 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#69 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#70 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#71 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#72 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#73 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#74 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#75 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#76 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#77 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#78 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#79 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#80 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#81 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#82 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#83 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#84 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#85 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#86 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#87 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#88 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#89 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#90 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#91 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#92 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#93 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#94 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#95 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#96 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#97 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#98 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#99 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#100 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#101 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#102 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#103 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#104 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#105 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#106 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#107 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#108 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#109 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#110 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#111 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#112 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#113 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#114 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#115 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#116 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#117 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#118 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#119 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#120 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#121 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#122 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#123 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#124 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#125 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#126 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#127 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#128 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#129 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#130 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#131 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#132 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#133 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#134 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#135 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#136 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#137 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#138 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#139 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#140 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#141 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#142 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#143 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#144 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#145 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#146 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#147 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#148 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#149 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#150 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#151 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#152 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#153 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#154 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#155 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#156 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#157 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#158 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#159 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#160 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#161 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#162 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#163 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#164 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#165 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#166 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#167 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#168 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#169 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#170 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#171 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#172 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#173 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#174 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#175 0x00007f94b67c2255 in R_forceAndCall () from /usr/lib64/R/lib/libR.so
#176 0x00007f94b66f429f in do_lapply () from /usr/lib64/R/lib/libR.so
#177 0x00007f94b680232a in do_internal () from /usr/lib64/R/lib/libR.so
#178 0x00007f94b67ad9b2 in bcEval () from /usr/lib64/R/lib/libR.so
#179 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#180 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#181 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#182 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#183 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#184 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#185 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#186 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#187 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#188 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#189 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#190 0x00007f94b67bcc20 in Rf_eval () from /usr/lib64/R/lib/libR.so
#191 0x00007f94b67f192a in Rf_ReplIteration () from /usr/lib64/R/lib/libR.so
#192 0x00007f94b67f1c71 in R_ReplConsole () from /usr/lib64/R/lib/libR.so
#193 0x00007f94b67f1d30 in run_Rmainloop () from /usr/lib64/R/lib/libR.so
#194 0x000055f0700ed8ff in main ()





FOR 3858
(gdb) backtrace
#0  0x00007f94b6454053 in gomp_team_barrier_wait_end () from /lib64/libgomp.so.1
#1  0x00007f94b6452a7d in gomp_team_end () from /lib64/libgomp.so.1
#2  0x00007f94b3c280cf in exec_blas () from /lib64/libopenblaso.so.0
#3  0x00007f94b3c263e4 in gemm_thread_n () from /lib64/libopenblaso.so.0
#4  0x00007f94b3c39077 in dgetrs_N_parallel () from /lib64/libopenblaso.so.0
#5  0x00007f94b39f7f65 in dgesv_ () from /lib64/libopenblaso.so.0
#6  0x00007f948556aebe in La_solve () from /usr/lib64/R/modules//lapack.so
#7  0x00007f948556e555 in mod_do_lapack () from /usr/lib64/R/modules//lapack.so
#8  0x00007f94b67a9c93 in bcEval () from /usr/lib64/R/lib/libR.so
#9  0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#10 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#11 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#12 0x00007f94b68045d3 in dispatchMethod.isra.4 () from /usr/lib64/R/lib/libR.so
#13 0x00007f94b6804a1c in Rf_usemethod () from /usr/lib64/R/lib/libR.so
#14 0x00007f94b6804db9 in do_usemethod () from /usr/lib64/R/lib/libR.so
#15 0x00007f94b67ad9b2 in bcEval () from /usr/lib64/R/lib/libR.so
#16 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#17 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#18 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#19 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#20 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#21 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#22 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#23 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#24 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#25 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#26 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#27 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#28 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#29 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#30 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#31 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#32 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#33 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#34 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#35 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#36 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#37 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#38 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#39 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#40 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#41 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#42 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
--Type <RET> for more, q to quit, c to continue without paging--c
#43 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#44 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#45 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#46 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#47 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#48 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#49 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#50 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#51 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#52 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#53 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#54 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#55 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#56 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#57 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#58 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#59 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#60 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#61 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#62 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#63 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#64 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#65 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#66 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#67 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#68 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#69 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#70 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#71 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#72 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#73 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#74 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#75 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#76 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#77 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#78 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#79 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#80 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#81 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#82 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#83 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#84 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#85 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#86 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#87 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#88 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#89 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#90 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#91 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#92 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#93 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#94 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#95 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#96 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#97 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#98 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#99 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#100 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#101 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#102 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#103 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#104 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#105 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#106 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#107 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#108 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#109 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#110 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#111 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#112 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#113 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#114 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#115 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#116 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#117 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#118 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#119 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#120 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#121 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#122 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#123 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#124 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#125 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#126 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#127 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#128 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#129 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#130 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#131 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#132 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#133 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#134 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#135 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#136 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#137 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#138 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#139 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#140 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#141 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#142 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#143 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#144 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#145 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#146 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#147 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#148 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#149 0x00007f94b67bd44c in forcePromise () from /usr/lib64/R/lib/libR.so
#150 0x00007f94b67bd8d8 in getvar () from /usr/lib64/R/lib/libR.so
#151 0x00007f94b67b1325 in bcEval () from /usr/lib64/R/lib/libR.so
#152 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#153 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#154 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#155 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#156 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#157 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#158 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#159 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#160 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#161 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#162 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#163 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#164 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#165 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#166 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#167 0x00007f94b67c2255 in R_forceAndCall () from /usr/lib64/R/lib/libR.so
#168 0x00007f94b66f429f in do_lapply () from /usr/lib64/R/lib/libR.so
#169 0x00007f94b680232a in do_internal () from /usr/lib64/R/lib/libR.so
#170 0x00007f94b67ad9b2 in bcEval () from /usr/lib64/R/lib/libR.so
#171 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#172 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#173 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#174 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#175 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#176 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#177 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#178 0x00007f94b67b3834 in bcEval () from /usr/lib64/R/lib/libR.so
#179 0x00007f94b67bca60 in Rf_eval () from /usr/lib64/R/lib/libR.so
#180 0x00007f94b67be8af in R_execClosure () from /usr/lib64/R/lib/libR.so
#181 0x00007f94b67bf837 in Rf_applyClosure () from /usr/lib64/R/lib/libR.so
#182 0x00007f94b67bcc20 in Rf_eval () from /usr/lib64/R/lib/libR.so
#183 0x00007f94b67f192a in Rf_ReplIteration () from /usr/lib64/R/lib/libR.so
#184 0x00007f94b67f1c71 in R_ReplConsole () from /usr/lib64/R/lib/libR.so
#185 0x00007f94b67f1d30 in run_Rmainloop () from /usr/lib64/R/lib/libR.so
#186 0x000055f0700ed8ff in main ()


I hope this is enough for you to pinpoint the cause of the inconsistency......

WAITING EAGERLY FOR A POSITIVE REPLY....

THanking you,
Yours sincerely,
AKSHAY M KULKARNI





________________________________
From: Ivan Krylov <krylov.r00t using gmail.com>
Sent: Saturday, June 10, 2023 2:46 PM
To: akshay kulkarni <akshay_e4 using hotmail.com>
Cc: R help Mailing list <r-help using r-project.org>
Subject: Re: [R] inconsistency in mclapply.....

On Sat, 10 Jun 2023 08:42:37 +0000
akshay kulkarni <akshay_e4 using hotmail.com> wrote:

> This is the output of top when I run function LOWp() with mclapply
> also in it. it hangs:

> %Cpu0  :  0.0 us,  0.3 sy,  0.0 ni, 99.7 id,  0.0 wa,  0.0 hi,  0.0
> si,  0.0 st
> %Cpu1  :  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa, 0.0 hi,  0.0
> si,  0.0 st

I see. The system is idle.

> TRaceback of after interrupting LOWp:
>
>
> > LOWp(OHLCDataEP[[63]])
> ^C
> There were 50 or more warnings (use warnings() to see the first 50)

What are the warnings()?

> > traceback()
> 3: selectChildren(jobs[!is.na(jobsp)], -1)
> 2: mclapply(LYGH, FUN = arfima, mc.cores = 2, mc.preschedule = FALSE)
> at <tmp>#26
> 1: LOWp(OHLCDataEP[[63]])

...and the parent is stuck waiting for at least some of the children.
The problem must be inside the child processes.

> BLAS/LAPACK: /usr/lib64/libopenblaso-r0.3.15.so

If you start R like this:

OPENBLAS_NUM_THREADS=1 R

...and confirm that Sys.getenv('OPENBLAS_NUM_THREADS') returns 1, then
try running your analysis, does it still get stuck?

There are reports complaining about OpenBLAS failing fork() tests when
built with OpenMP support, and this 'o' at the end of the shared
library name looks suspicious.

> You had asked me to attach a debugger to the child processes. How do
> you get the child processes spawned by mclapply? For example, how do
> i identify, among the listed R processes above, the child processes?

Make sure that there's only one R session running. Stray R processes
can be cleaned up by running killall R or rebooting the AWS virtual
machine.

Start R and run Sys.getpid(). This is the PID of the parent process.
Start your analysis and get it stuck. Do not interrupt the function,
let it keep waiting for the child process.

In a separate ssh connection or virtual terminal, run top. It should be
possible to type lowercase v to display a process tree, then navigate
it using arrow keys. Confirm that there is a parent R process with the
PID you saw above and a number of child processes branching from it with
different PIDs. If there's more than one child, try them both and see
if the results are different (hopefully not).

Run gdb and enter the following commands (substitute the value of the
PID for PID_OF_THE_CHILD_PROCESS):

attach PID_OF_THE_CHILD_PROCESS
thread apply all backtrace

If there's too much text and you can't copy it out of the terminal, use
the commands "set logging file gdb.log" and "set logging on", then get
the text output from the file "gdb.log" that will be created in the
current directory.

--
Best regards,
Ivan

	[[alternative HTML version deleted]]



More information about the R-help mailing list