Commit b3bb03f
committed
fix crash on second call to sourceCpp
- Revert previous code which attempted to avoid calling dyn.load on libraries already loaded (which in turn had triggered an R bug that corrupts the load table when this occurs). That code's logic was not correct.
- Generate unique shared object paths using a simple static counter rather than a call to sample. The previous issue must have been triggered by sample returning the same integer twice, which in turn may have been triggered by some maniplation of the rng state by expm?.1 parent 0010c56 commit b3bb03f
3 files changed
+20
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2813 | 2813 | | |
2814 | 2814 | | |
2815 | 2815 | | |
2816 | | - | |
| 2816 | + | |
2817 | 2817 | | |
2818 | 2818 | | |
2819 | 2819 | | |
| |||
2847 | 2847 | | |
2848 | 2848 | | |
2849 | 2849 | | |
2850 | | - | |
| 2850 | + | |
2851 | 2851 | | |
2852 | 2852 | | |
2853 | 2853 | | |
| |||
2877 | 2877 | | |
2878 | 2878 | | |
2879 | 2879 | | |
2880 | | - | |
2881 | | - | |
2882 | | - | |
2883 | | - | |
| 2880 | + | |
| 2881 | + | |
2884 | 2882 | | |
2885 | 2883 | | |
2886 | 2884 | | |
2887 | 2885 | | |
2888 | 2886 | | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
2889 | 2891 | | |
2890 | 2892 | | |
2891 | 2893 | | |
| |||
3035 | 3037 | | |
3036 | 3038 | | |
3037 | 3039 | | |
3038 | | - | |
3039 | | - | |
| 3040 | + | |
3040 | 3041 | | |
3041 | | - | |
| 3042 | + | |
3042 | 3043 | | |
3043 | 3044 | | |
3044 | 3045 | | |
| |||
3058 | 3059 | | |
3059 | 3060 | | |
3060 | 3061 | | |
| 3062 | + | |
3061 | 3063 | | |
3062 | 3064 | | |
| 3065 | + | |
| 3066 | + | |
| 3067 | + | |
3063 | 3068 | | |
3064 | 3069 | | |
3065 | 3070 | | |
| |||
0 commit comments