<h3 dir="auto">Describe your issue.</h3>
<p dir="auto"><code class="notranslate">scipy.spatial.KDTree()</code> throws Segmentation fault on given input.</p>
<h3 dir="auto">Reproducing Code Example</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
from scipy.spatial import KDTree

data = [
    [456., 9.],
    [572., 10.],
    [555., 15.],
    [604., 16.],
    [547., 29.],
    [34., 41.],
    [490., 44.],
    [590., 46.],
    [566., 49.],
    [38., 53.],
    [519., 66.],
    [535., 66.],
    [512., 67.],
    [572., 70.],
    [104., 73.],
    [47., 74.],
    [559., 79.],
    [617., 79.],
    [136., 87.],
    [206., 89.],
    [545., 93.],
    [573., 93.],
    [510., 95.],
    [149., 99.],
    [96., 102.],
    [504., 105.],
    [119., 108.],
    [100., 110.],
    [526., 113.],
    [598., 113.],
    [493., 115.],
    [487., 122.],
    [473., 132.],
    [521., 137.],
    [477., 145.],
    [405., 149.],
    [451., 150.],
    [490., 153.],
    [420., 155.],
    [406., 157.],
    [386., 162.],
    [508., 162.],
    [377., 163.],
    [366., 166.],
    [357., 168.],
    [397., 172.],
    [371., 173.],
    [322., 174.],
    [424., 174.],
    [376., 175.],
    [405., 176.],
    [346., 177.],
    [296., 179.],
    [339., 180.],
    [353., 182.],
    [323., 183.],
    [382., 183.],
    [255., 186.],
    [290., 186.],
    [331., 186.],
    [276., 187.],
    [405., 187.],
    [302., 189.],
    [316., 189.],
    [336., 190.],
    [393., 191.],
    [230., 192.],
    [285., 193.],
    [214., 194.],
    [262., 194.],
    [302., 194.],
    [209., 195.],
    [293., 195.],
    [276., 197.],
    [197., 198.],
    [244., 198.],
    [251., 198.],
    [302., 199.],
    [404., 199.],
    [230., 200.],
    [182., 201.],
    [215., 202.],
    [168., 203.],
    [225., 204.],
    [253., 204.],
    [259., 205.],
    [152., 206.],
    [281., 206.],
    [235., 207.],
    [380., 208.],
    [391., 208.],
    [138., 209.],
    [200., 210.],
    [126., 211.],
    [186., 213.],
    [218., 213.],
    [229., 213.],
    [171., 215.],
    [210., 215.],
    [238., 215.],
    [157., 219.],
    [131., 220.],
    [181., 220.],
    [74., 221.],
    [141., 221.],
    [238., 221.],
    [404., 221.],
    [115., 222.],
    [285., 224.],
    [133., 226.],
    [152., 226.],
    [208., 227.],
    [37., 228.],
    [138., 228.],
    [143., 228.],
    [192., 230.],
    [81., 231.],
    [120., 233.],
    [177., 233.],
    [240., 234.],
    [216., 238.],
    [222., 238.],
    [361., 238.],
    [381., 238.],
    [85., 239.],
    [145., 240.],
    [288., 240.],
    [206., 241.],
    [350., 242.],
    [189., 244.],
    [365., 244.],
    [404., 245.],
    [113., 246.],
    [458., 247.],
    [172., 248.],
    [246., 248.],
    [314., 249.],
    [239., 250.],
    [92., 251.],
    [356., 251.],
    [403., 252.],
    [223., 253.],
    [452., 253.],
    [291., 254.],
    [137., 255.],
    [216., 255.],
    [335., 256.],
    [392., 256.],
    [269., 257.],
    [403., 257.],
    [465., 257.],
    [203., 258.],
    [318., 260.],
    [378., 260.],
    [184., 262.],
    [290., 263.],
    [99., 264.],
    [364., 264.],
    [166., 266.],
    [449., 266.],
    [348., 267.],
    [403., 267.],
    [279., 268.],
    [343., 268.],
    [239., 269.],
    [338., 269.],
    [143., 271.],
    [254., 272.],
    [324., 273.],
    [128., 274.],
    [218., 274.],
    [454., 274.],
    [462., 274.],
    [372., 277.],
    [199., 278.],
    [304., 278.],
    [108., 279.],
    [239., 282.],
    [404., 282.],
    [178., 283.],
    [283., 283.],
    [448., 285.],
    [159., 287.],
    [264., 287.],
    [330., 288.],
    [379., 288.],
    [256., 289.],
    [455., 289.],
    [460., 290.],
    [240., 293.],
    [355., 294.],
    [117., 295.],
    [285., 296.],
    [55., 298.],
    [215., 299.],
    [335., 299.],
    [117., 300.],
    [447., 300.],
    [139., 302.],
    [195., 303.],
    [458., 303.],
    [390., 304.],
    [119., 305.],
    [311., 305.],
    [111., 306.],
    [125., 306.],
    [176., 308.],
    [171., 309.],
    [445., 310.],
    [288., 311.],
    [149., 314.],
    [342., 315.],
    [450., 316.],
    [264., 317.],
    [456., 317.],
    [401., 319.],
    [192., 320.],
    [112., 323.],
    [240., 323.],
    [55., 324.],
    [101., 325.],
    [292., 326.],
    [376., 326.],
    [93., 327.],
    [371., 327.],
    [216., 329.],
    [349., 333.],
    [190., 335.],
    [324., 340.],
    [167., 341.],
    [82., 342.],
    [241., 343.],
    [296., 347.],
    [137., 348.],
    [75., 352.],
    [89., 353.],
    [187., 353.],
    [270., 354.],
    [263., 356.],
    [359., 356.],
    [82., 358.],
    [99., 359.],
    [241., 362.],
    [83., 363.],
    [216., 368.],
    [403., 368.],
    [130., 369.],
    [301., 369.],
    [302., 374.],
    [183., 377.],
    [368., 378.],
    [241., 387.],
    [335., 388.],
    [122., 393.],
    [307., 396.],
    [108., 397.],
    [179., 401.],
    [379., 403.],
    [272., 406.],
    [117., 408.],
    [381., 408.],
    [383., 413.],
    [242., 415.],
    [311., 416.],
    [140., 419.],
    [15., 421.],
    [126., 422.],
    [211., 423.],
    [313., 424.],
    [147., 425.],
    [314., 429.],
    [134., 433.],
    [315., 434.],
    [173., 435.],
    [316., 439.],
    [398., 441.],
    [142., 444.],
    [380., 447.],
    [243., 450.],
    [400., 455.],
    [349., 457.],
    [322., 466.],
    [373., 470.],
    [303., 471.],
    [np.nan, np.nan],
    [np.nan, np.nan],
    [np.nan, np.nan],
    [np.nan, np.nan],
    [np.nan, np.nan],
    [np.nan, np.nan],
    [np.nan, np.nan],
    [np.nan, np.nan],
    [np.nan, np.nan],
    [np.nan, np.nan],
    [np.nan, np.nan],
    [np.nan, np.nan],
    [np.nan, np.nan],
    [np.nan, np.nan],
    [np.nan, np.nan],
    [np.nan, np.nan]]

KDTree(data)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">from</span> <span class="pl-s1">scipy</span>.<span class="pl-s1">spatial</span> <span class="pl-k">import</span> <span class="pl-v">KDTree</span>

<span class="pl-s1">data</span> <span class="pl-c1">=</span> [
    [<span class="pl-c1">456.</span>, <span class="pl-c1">9.</span>],
    [<span class="pl-c1">572.</span>, <span class="pl-c1">10.</span>],
    [<span class="pl-c1">555.</span>, <span class="pl-c1">15.</span>],
    [<span class="pl-c1">604.</span>, <span class="pl-c1">16.</span>],
    [<span class="pl-c1">547.</span>, <span class="pl-c1">29.</span>],
    [<span class="pl-c1">34.</span>, <span class="pl-c1">41.</span>],
    [<span class="pl-c1">490.</span>, <span class="pl-c1">44.</span>],
    [<span class="pl-c1">590.</span>, <span class="pl-c1">46.</span>],
    [<span class="pl-c1">566.</span>, <span class="pl-c1">49.</span>],
    [<span class="pl-c1">38.</span>, <span class="pl-c1">53.</span>],
    [<span class="pl-c1">519.</span>, <span class="pl-c1">66.</span>],
    [<span class="pl-c1">535.</span>, <span class="pl-c1">66.</span>],
    [<span class="pl-c1">512.</span>, <span class="pl-c1">67.</span>],
    [<span class="pl-c1">572.</span>, <span class="pl-c1">70.</span>],
    [<span class="pl-c1">104.</span>, <span class="pl-c1">73.</span>],
    [<span class="pl-c1">47.</span>, <span class="pl-c1">74.</span>],
    [<span class="pl-c1">559.</span>, <span class="pl-c1">79.</span>],
    [<span class="pl-c1">617.</span>, <span class="pl-c1">79.</span>],
    [<span class="pl-c1">136.</span>, <span class="pl-c1">87.</span>],
    [<span class="pl-c1">206.</span>, <span class="pl-c1">89.</span>],
    [<span class="pl-c1">545.</span>, <span class="pl-c1">93.</span>],
    [<span class="pl-c1">573.</span>, <span class="pl-c1">93.</span>],
    [<span class="pl-c1">510.</span>, <span class="pl-c1">95.</span>],
    [<span class="pl-c1">149.</span>, <span class="pl-c1">99.</span>],
    [<span class="pl-c1">96.</span>, <span class="pl-c1">102.</span>],
    [<span class="pl-c1">504.</span>, <span class="pl-c1">105.</span>],
    [<span class="pl-c1">119.</span>, <span class="pl-c1">108.</span>],
    [<span class="pl-c1">100.</span>, <span class="pl-c1">110.</span>],
    [<span class="pl-c1">526.</span>, <span class="pl-c1">113.</span>],
    [<span class="pl-c1">598.</span>, <span class="pl-c1">113.</span>],
    [<span class="pl-c1">493.</span>, <span class="pl-c1">115.</span>],
    [<span class="pl-c1">487.</span>, <span class="pl-c1">122.</span>],
    [<span class="pl-c1">473.</span>, <span class="pl-c1">132.</span>],
    [<span class="pl-c1">521.</span>, <span class="pl-c1">137.</span>],
    [<span class="pl-c1">477.</span>, <span class="pl-c1">145.</span>],
    [<span class="pl-c1">405.</span>, <span class="pl-c1">149.</span>],
    [<span class="pl-c1">451.</span>, <span class="pl-c1">150.</span>],
    [<span class="pl-c1">490.</span>, <span class="pl-c1">153.</span>],
    [<span class="pl-c1">420.</span>, <span class="pl-c1">155.</span>],
    [<span class="pl-c1">406.</span>, <span class="pl-c1">157.</span>],
    [<span class="pl-c1">386.</span>, <span class="pl-c1">162.</span>],
    [<span class="pl-c1">508.</span>, <span class="pl-c1">162.</span>],
    [<span class="pl-c1">377.</span>, <span class="pl-c1">163.</span>],
    [<span class="pl-c1">366.</span>, <span class="pl-c1">166.</span>],
    [<span class="pl-c1">357.</span>, <span class="pl-c1">168.</span>],
    [<span class="pl-c1">397.</span>, <span class="pl-c1">172.</span>],
    [<span class="pl-c1">371.</span>, <span class="pl-c1">173.</span>],
    [<span class="pl-c1">322.</span>, <span class="pl-c1">174.</span>],
    [<span class="pl-c1">424.</span>, <span class="pl-c1">174.</span>],
    [<span class="pl-c1">376.</span>, <span class="pl-c1">175.</span>],
    [<span class="pl-c1">405.</span>, <span class="pl-c1">176.</span>],
    [<span class="pl-c1">346.</span>, <span class="pl-c1">177.</span>],
    [<span class="pl-c1">296.</span>, <span class="pl-c1">179.</span>],
    [<span class="pl-c1">339.</span>, <span class="pl-c1">180.</span>],
    [<span class="pl-c1">353.</span>, <span class="pl-c1">182.</span>],
    [<span class="pl-c1">323.</span>, <span class="pl-c1">183.</span>],
    [<span class="pl-c1">382.</span>, <span class="pl-c1">183.</span>],
    [<span class="pl-c1">255.</span>, <span class="pl-c1">186.</span>],
    [<span class="pl-c1">290.</span>, <span class="pl-c1">186.</span>],
    [<span class="pl-c1">331.</span>, <span class="pl-c1">186.</span>],
    [<span class="pl-c1">276.</span>, <span class="pl-c1">187.</span>],
    [<span class="pl-c1">405.</span>, <span class="pl-c1">187.</span>],
    [<span class="pl-c1">302.</span>, <span class="pl-c1">189.</span>],
    [<span class="pl-c1">316.</span>, <span class="pl-c1">189.</span>],
    [<span class="pl-c1">336.</span>, <span class="pl-c1">190.</span>],
    [<span class="pl-c1">393.</span>, <span class="pl-c1">191.</span>],
    [<span class="pl-c1">230.</span>, <span class="pl-c1">192.</span>],
    [<span class="pl-c1">285.</span>, <span class="pl-c1">193.</span>],
    [<span class="pl-c1">214.</span>, <span class="pl-c1">194.</span>],
    [<span class="pl-c1">262.</span>, <span class="pl-c1">194.</span>],
    [<span class="pl-c1">302.</span>, <span class="pl-c1">194.</span>],
    [<span class="pl-c1">209.</span>, <span class="pl-c1">195.</span>],
    [<span class="pl-c1">293.</span>, <span class="pl-c1">195.</span>],
    [<span class="pl-c1">276.</span>, <span class="pl-c1">197.</span>],
    [<span class="pl-c1">197.</span>, <span class="pl-c1">198.</span>],
    [<span class="pl-c1">244.</span>, <span class="pl-c1">198.</span>],
    [<span class="pl-c1">251.</span>, <span class="pl-c1">198.</span>],
    [<span class="pl-c1">302.</span>, <span class="pl-c1">199.</span>],
    [<span class="pl-c1">404.</span>, <span class="pl-c1">199.</span>],
    [<span class="pl-c1">230.</span>, <span class="pl-c1">200.</span>],
    [<span class="pl-c1">182.</span>, <span class="pl-c1">201.</span>],
    [<span class="pl-c1">215.</span>, <span class="pl-c1">202.</span>],
    [<span class="pl-c1">168.</span>, <span class="pl-c1">203.</span>],
    [<span class="pl-c1">225.</span>, <span class="pl-c1">204.</span>],
    [<span class="pl-c1">253.</span>, <span class="pl-c1">204.</span>],
    [<span class="pl-c1">259.</span>, <span class="pl-c1">205.</span>],
    [<span class="pl-c1">152.</span>, <span class="pl-c1">206.</span>],
    [<span class="pl-c1">281.</span>, <span class="pl-c1">206.</span>],
    [<span class="pl-c1">235.</span>, <span class="pl-c1">207.</span>],
    [<span class="pl-c1">380.</span>, <span class="pl-c1">208.</span>],
    [<span class="pl-c1">391.</span>, <span class="pl-c1">208.</span>],
    [<span class="pl-c1">138.</span>, <span class="pl-c1">209.</span>],
    [<span class="pl-c1">200.</span>, <span class="pl-c1">210.</span>],
    [<span class="pl-c1">126.</span>, <span class="pl-c1">211.</span>],
    [<span class="pl-c1">186.</span>, <span class="pl-c1">213.</span>],
    [<span class="pl-c1">218.</span>, <span class="pl-c1">213.</span>],
    [<span class="pl-c1">229.</span>, <span class="pl-c1">213.</span>],
    [<span class="pl-c1">171.</span>, <span class="pl-c1">215.</span>],
    [<span class="pl-c1">210.</span>, <span class="pl-c1">215.</span>],
    [<span class="pl-c1">238.</span>, <span class="pl-c1">215.</span>],
    [<span class="pl-c1">157.</span>, <span class="pl-c1">219.</span>],
    [<span class="pl-c1">131.</span>, <span class="pl-c1">220.</span>],
    [<span class="pl-c1">181.</span>, <span class="pl-c1">220.</span>],
    [<span class="pl-c1">74.</span>, <span class="pl-c1">221.</span>],
    [<span class="pl-c1">141.</span>, <span class="pl-c1">221.</span>],
    [<span class="pl-c1">238.</span>, <span class="pl-c1">221.</span>],
    [<span class="pl-c1">404.</span>, <span class="pl-c1">221.</span>],
    [<span class="pl-c1">115.</span>, <span class="pl-c1">222.</span>],
    [<span class="pl-c1">285.</span>, <span class="pl-c1">224.</span>],
    [<span class="pl-c1">133.</span>, <span class="pl-c1">226.</span>],
    [<span class="pl-c1">152.</span>, <span class="pl-c1">226.</span>],
    [<span class="pl-c1">208.</span>, <span class="pl-c1">227.</span>],
    [<span class="pl-c1">37.</span>, <span class="pl-c1">228.</span>],
    [<span class="pl-c1">138.</span>, <span class="pl-c1">228.</span>],
    [<span class="pl-c1">143.</span>, <span class="pl-c1">228.</span>],
    [<span class="pl-c1">192.</span>, <span class="pl-c1">230.</span>],
    [<span class="pl-c1">81.</span>, <span class="pl-c1">231.</span>],
    [<span class="pl-c1">120.</span>, <span class="pl-c1">233.</span>],
    [<span class="pl-c1">177.</span>, <span class="pl-c1">233.</span>],
    [<span class="pl-c1">240.</span>, <span class="pl-c1">234.</span>],
    [<span class="pl-c1">216.</span>, <span class="pl-c1">238.</span>],
    [<span class="pl-c1">222.</span>, <span class="pl-c1">238.</span>],
    [<span class="pl-c1">361.</span>, <span class="pl-c1">238.</span>],
    [<span class="pl-c1">381.</span>, <span class="pl-c1">238.</span>],
    [<span class="pl-c1">85.</span>, <span class="pl-c1">239.</span>],
    [<span class="pl-c1">145.</span>, <span class="pl-c1">240.</span>],
    [<span class="pl-c1">288.</span>, <span class="pl-c1">240.</span>],
    [<span class="pl-c1">206.</span>, <span class="pl-c1">241.</span>],
    [<span class="pl-c1">350.</span>, <span class="pl-c1">242.</span>],
    [<span class="pl-c1">189.</span>, <span class="pl-c1">244.</span>],
    [<span class="pl-c1">365.</span>, <span class="pl-c1">244.</span>],
    [<span class="pl-c1">404.</span>, <span class="pl-c1">245.</span>],
    [<span class="pl-c1">113.</span>, <span class="pl-c1">246.</span>],
    [<span class="pl-c1">458.</span>, <span class="pl-c1">247.</span>],
    [<span class="pl-c1">172.</span>, <span class="pl-c1">248.</span>],
    [<span class="pl-c1">246.</span>, <span class="pl-c1">248.</span>],
    [<span class="pl-c1">314.</span>, <span class="pl-c1">249.</span>],
    [<span class="pl-c1">239.</span>, <span class="pl-c1">250.</span>],
    [<span class="pl-c1">92.</span>, <span class="pl-c1">251.</span>],
    [<span class="pl-c1">356.</span>, <span class="pl-c1">251.</span>],
    [<span class="pl-c1">403.</span>, <span class="pl-c1">252.</span>],
    [<span class="pl-c1">223.</span>, <span class="pl-c1">253.</span>],
    [<span class="pl-c1">452.</span>, <span class="pl-c1">253.</span>],
    [<span class="pl-c1">291.</span>, <span class="pl-c1">254.</span>],
    [<span class="pl-c1">137.</span>, <span class="pl-c1">255.</span>],
    [<span class="pl-c1">216.</span>, <span class="pl-c1">255.</span>],
    [<span class="pl-c1">335.</span>, <span class="pl-c1">256.</span>],
    [<span class="pl-c1">392.</span>, <span class="pl-c1">256.</span>],
    [<span class="pl-c1">269.</span>, <span class="pl-c1">257.</span>],
    [<span class="pl-c1">403.</span>, <span class="pl-c1">257.</span>],
    [<span class="pl-c1">465.</span>, <span class="pl-c1">257.</span>],
    [<span class="pl-c1">203.</span>, <span class="pl-c1">258.</span>],
    [<span class="pl-c1">318.</span>, <span class="pl-c1">260.</span>],
    [<span class="pl-c1">378.</span>, <span class="pl-c1">260.</span>],
    [<span class="pl-c1">184.</span>, <span class="pl-c1">262.</span>],
    [<span class="pl-c1">290.</span>, <span class="pl-c1">263.</span>],
    [<span class="pl-c1">99.</span>, <span class="pl-c1">264.</span>],
    [<span class="pl-c1">364.</span>, <span class="pl-c1">264.</span>],
    [<span class="pl-c1">166.</span>, <span class="pl-c1">266.</span>],
    [<span class="pl-c1">449.</span>, <span class="pl-c1">266.</span>],
    [<span class="pl-c1">348.</span>, <span class="pl-c1">267.</span>],
    [<span class="pl-c1">403.</span>, <span class="pl-c1">267.</span>],
    [<span class="pl-c1">279.</span>, <span class="pl-c1">268.</span>],
    [<span class="pl-c1">343.</span>, <span class="pl-c1">268.</span>],
    [<span class="pl-c1">239.</span>, <span class="pl-c1">269.</span>],
    [<span class="pl-c1">338.</span>, <span class="pl-c1">269.</span>],
    [<span class="pl-c1">143.</span>, <span class="pl-c1">271.</span>],
    [<span class="pl-c1">254.</span>, <span class="pl-c1">272.</span>],
    [<span class="pl-c1">324.</span>, <span class="pl-c1">273.</span>],
    [<span class="pl-c1">128.</span>, <span class="pl-c1">274.</span>],
    [<span class="pl-c1">218.</span>, <span class="pl-c1">274.</span>],
    [<span class="pl-c1">454.</span>, <span class="pl-c1">274.</span>],
    [<span class="pl-c1">462.</span>, <span class="pl-c1">274.</span>],
    [<span class="pl-c1">372.</span>, <span class="pl-c1">277.</span>],
    [<span class="pl-c1">199.</span>, <span class="pl-c1">278.</span>],
    [<span class="pl-c1">304.</span>, <span class="pl-c1">278.</span>],
    [<span class="pl-c1">108.</span>, <span class="pl-c1">279.</span>],
    [<span class="pl-c1">239.</span>, <span class="pl-c1">282.</span>],
    [<span class="pl-c1">404.</span>, <span class="pl-c1">282.</span>],
    [<span class="pl-c1">178.</span>, <span class="pl-c1">283.</span>],
    [<span class="pl-c1">283.</span>, <span class="pl-c1">283.</span>],
    [<span class="pl-c1">448.</span>, <span class="pl-c1">285.</span>],
    [<span class="pl-c1">159.</span>, <span class="pl-c1">287.</span>],
    [<span class="pl-c1">264.</span>, <span class="pl-c1">287.</span>],
    [<span class="pl-c1">330.</span>, <span class="pl-c1">288.</span>],
    [<span class="pl-c1">379.</span>, <span class="pl-c1">288.</span>],
    [<span class="pl-c1">256.</span>, <span class="pl-c1">289.</span>],
    [<span class="pl-c1">455.</span>, <span class="pl-c1">289.</span>],
    [<span class="pl-c1">460.</span>, <span class="pl-c1">290.</span>],
    [<span class="pl-c1">240.</span>, <span class="pl-c1">293.</span>],
    [<span class="pl-c1">355.</span>, <span class="pl-c1">294.</span>],
    [<span class="pl-c1">117.</span>, <span class="pl-c1">295.</span>],
    [<span class="pl-c1">285.</span>, <span class="pl-c1">296.</span>],
    [<span class="pl-c1">55.</span>, <span class="pl-c1">298.</span>],
    [<span class="pl-c1">215.</span>, <span class="pl-c1">299.</span>],
    [<span class="pl-c1">335.</span>, <span class="pl-c1">299.</span>],
    [<span class="pl-c1">117.</span>, <span class="pl-c1">300.</span>],
    [<span class="pl-c1">447.</span>, <span class="pl-c1">300.</span>],
    [<span class="pl-c1">139.</span>, <span class="pl-c1">302.</span>],
    [<span class="pl-c1">195.</span>, <span class="pl-c1">303.</span>],
    [<span class="pl-c1">458.</span>, <span class="pl-c1">303.</span>],
    [<span class="pl-c1">390.</span>, <span class="pl-c1">304.</span>],
    [<span class="pl-c1">119.</span>, <span class="pl-c1">305.</span>],
    [<span class="pl-c1">311.</span>, <span class="pl-c1">305.</span>],
    [<span class="pl-c1">111.</span>, <span class="pl-c1">306.</span>],
    [<span class="pl-c1">125.</span>, <span class="pl-c1">306.</span>],
    [<span class="pl-c1">176.</span>, <span class="pl-c1">308.</span>],
    [<span class="pl-c1">171.</span>, <span class="pl-c1">309.</span>],
    [<span class="pl-c1">445.</span>, <span class="pl-c1">310.</span>],
    [<span class="pl-c1">288.</span>, <span class="pl-c1">311.</span>],
    [<span class="pl-c1">149.</span>, <span class="pl-c1">314.</span>],
    [<span class="pl-c1">342.</span>, <span class="pl-c1">315.</span>],
    [<span class="pl-c1">450.</span>, <span class="pl-c1">316.</span>],
    [<span class="pl-c1">264.</span>, <span class="pl-c1">317.</span>],
    [<span class="pl-c1">456.</span>, <span class="pl-c1">317.</span>],
    [<span class="pl-c1">401.</span>, <span class="pl-c1">319.</span>],
    [<span class="pl-c1">192.</span>, <span class="pl-c1">320.</span>],
    [<span class="pl-c1">112.</span>, <span class="pl-c1">323.</span>],
    [<span class="pl-c1">240.</span>, <span class="pl-c1">323.</span>],
    [<span class="pl-c1">55.</span>, <span class="pl-c1">324.</span>],
    [<span class="pl-c1">101.</span>, <span class="pl-c1">325.</span>],
    [<span class="pl-c1">292.</span>, <span class="pl-c1">326.</span>],
    [<span class="pl-c1">376.</span>, <span class="pl-c1">326.</span>],
    [<span class="pl-c1">93.</span>, <span class="pl-c1">327.</span>],
    [<span class="pl-c1">371.</span>, <span class="pl-c1">327.</span>],
    [<span class="pl-c1">216.</span>, <span class="pl-c1">329.</span>],
    [<span class="pl-c1">349.</span>, <span class="pl-c1">333.</span>],
    [<span class="pl-c1">190.</span>, <span class="pl-c1">335.</span>],
    [<span class="pl-c1">324.</span>, <span class="pl-c1">340.</span>],
    [<span class="pl-c1">167.</span>, <span class="pl-c1">341.</span>],
    [<span class="pl-c1">82.</span>, <span class="pl-c1">342.</span>],
    [<span class="pl-c1">241.</span>, <span class="pl-c1">343.</span>],
    [<span class="pl-c1">296.</span>, <span class="pl-c1">347.</span>],
    [<span class="pl-c1">137.</span>, <span class="pl-c1">348.</span>],
    [<span class="pl-c1">75.</span>, <span class="pl-c1">352.</span>],
    [<span class="pl-c1">89.</span>, <span class="pl-c1">353.</span>],
    [<span class="pl-c1">187.</span>, <span class="pl-c1">353.</span>],
    [<span class="pl-c1">270.</span>, <span class="pl-c1">354.</span>],
    [<span class="pl-c1">263.</span>, <span class="pl-c1">356.</span>],
    [<span class="pl-c1">359.</span>, <span class="pl-c1">356.</span>],
    [<span class="pl-c1">82.</span>, <span class="pl-c1">358.</span>],
    [<span class="pl-c1">99.</span>, <span class="pl-c1">359.</span>],
    [<span class="pl-c1">241.</span>, <span class="pl-c1">362.</span>],
    [<span class="pl-c1">83.</span>, <span class="pl-c1">363.</span>],
    [<span class="pl-c1">216.</span>, <span class="pl-c1">368.</span>],
    [<span class="pl-c1">403.</span>, <span class="pl-c1">368.</span>],
    [<span class="pl-c1">130.</span>, <span class="pl-c1">369.</span>],
    [<span class="pl-c1">301.</span>, <span class="pl-c1">369.</span>],
    [<span class="pl-c1">302.</span>, <span class="pl-c1">374.</span>],
    [<span class="pl-c1">183.</span>, <span class="pl-c1">377.</span>],
    [<span class="pl-c1">368.</span>, <span class="pl-c1">378.</span>],
    [<span class="pl-c1">241.</span>, <span class="pl-c1">387.</span>],
    [<span class="pl-c1">335.</span>, <span class="pl-c1">388.</span>],
    [<span class="pl-c1">122.</span>, <span class="pl-c1">393.</span>],
    [<span class="pl-c1">307.</span>, <span class="pl-c1">396.</span>],
    [<span class="pl-c1">108.</span>, <span class="pl-c1">397.</span>],
    [<span class="pl-c1">179.</span>, <span class="pl-c1">401.</span>],
    [<span class="pl-c1">379.</span>, <span class="pl-c1">403.</span>],
    [<span class="pl-c1">272.</span>, <span class="pl-c1">406.</span>],
    [<span class="pl-c1">117.</span>, <span class="pl-c1">408.</span>],
    [<span class="pl-c1">381.</span>, <span class="pl-c1">408.</span>],
    [<span class="pl-c1">383.</span>, <span class="pl-c1">413.</span>],
    [<span class="pl-c1">242.</span>, <span class="pl-c1">415.</span>],
    [<span class="pl-c1">311.</span>, <span class="pl-c1">416.</span>],
    [<span class="pl-c1">140.</span>, <span class="pl-c1">419.</span>],
    [<span class="pl-c1">15.</span>, <span class="pl-c1">421.</span>],
    [<span class="pl-c1">126.</span>, <span class="pl-c1">422.</span>],
    [<span class="pl-c1">211.</span>, <span class="pl-c1">423.</span>],
    [<span class="pl-c1">313.</span>, <span class="pl-c1">424.</span>],
    [<span class="pl-c1">147.</span>, <span class="pl-c1">425.</span>],
    [<span class="pl-c1">314.</span>, <span class="pl-c1">429.</span>],
    [<span class="pl-c1">134.</span>, <span class="pl-c1">433.</span>],
    [<span class="pl-c1">315.</span>, <span class="pl-c1">434.</span>],
    [<span class="pl-c1">173.</span>, <span class="pl-c1">435.</span>],
    [<span class="pl-c1">316.</span>, <span class="pl-c1">439.</span>],
    [<span class="pl-c1">398.</span>, <span class="pl-c1">441.</span>],
    [<span class="pl-c1">142.</span>, <span class="pl-c1">444.</span>],
    [<span class="pl-c1">380.</span>, <span class="pl-c1">447.</span>],
    [<span class="pl-c1">243.</span>, <span class="pl-c1">450.</span>],
    [<span class="pl-c1">400.</span>, <span class="pl-c1">455.</span>],
    [<span class="pl-c1">349.</span>, <span class="pl-c1">457.</span>],
    [<span class="pl-c1">322.</span>, <span class="pl-c1">466.</span>],
    [<span class="pl-c1">373.</span>, <span class="pl-c1">470.</span>],
    [<span class="pl-c1">303.</span>, <span class="pl-c1">471.</span>],
    [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>],
    [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>],
    [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>],
    [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>],
    [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>],
    [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>],
    [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>],
    [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>],
    [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>],
    [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>],
    [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>],
    [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>],
    [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>],
    [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>],
    [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>],
    [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>]]

<span class="pl-v">KDTree</span>(<span class="pl-s1">data</span>)</pre></div>
<h3 dir="auto">Error message</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Thread 1 &quot;python&quot; received signal SIGSEGV, Segmentation fault.
0x00007fffb862de57 in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/slamsup/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so

--------GDB backtrace--------
#0  0x00007fffb862de57 in build(ckdtree*, long, long, double*, double*, int, int) ()
   from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#1  0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) ()
   from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#2  0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) ()
   from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#3  0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) ()
   from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#4  0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) ()
   from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#5  0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) ()
   from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#6  0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) ()
   from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#7  0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) ()
   from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#8  0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) ()
   from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#9  0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#10 0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#11 0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#12 0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#13 0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#14 0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
...
#15870 0x00007fffb862e550 in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#15871 0x00007fffb862e550 in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#15872 0x00007fffb862e550 in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#15873 0x00007fffb862e550 in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#15874 0x00007fffb862effe in build_ckdtree(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#15875 0x00007fffb8619d9a in __pyx_pf_5scipy_7spatial_7ckdtree_7cKDTree_2__init__(__pyx_obj_5scipy_7spatial_7ckdtree_cKDTree*, _object*, long, _object*, _object*, _object*, _object*) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#15876 0x00007fffb861d372 in __pyx_pw_5scipy_7spatial_7ckdtree_7cKDTree_3__init__(_object*, _object*, _object*) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
#15877 0x00005555556e6414 in wrap_init (kwds=0x0, wrapped=&lt;optimized out&gt;, args=&lt;optimized out&gt;, self=0x7fffb6d34040) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/typeobject.c:6189
#15878 wrapperdescr_raw_call.isra.8 (kwds=0x0, args=&lt;optimized out&gt;, self=0x7fffb6d34040) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/descrobject.c:510
#15879 wrapper_call (wp=&lt;optimized out&gt;, args=&lt;optimized out&gt;, kwds=0x0) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/descrobject.c:1384
#15880 0x000055555568fcaf in _PyObject_MakeTpCall (tstate=0x55555591eae0, callable=0x7ffff73f3640, args=&lt;optimized out&gt;, nargs=&lt;optimized out&gt;, keywords=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/call.c:191
#15881 0x000055555572dd89 in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=&lt;optimized out&gt;, args=0x7fffb7184bf8, callable=&lt;optimized out&gt;, tstate=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Include/cpython/abstract.h:116
#15882 PyObject_Vectorcall () at /opt/conda/conda-bld/python-split_1649141344976/work/Include/cpython/abstract.h:127
#15883 call_function (kwnames=0x0, oparg=&lt;optimized out&gt;, pp_stack=&lt;synthetic pointer&gt;, tstate=0x55555591eae0) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/ceval.c:5077
#15884 _PyEval_EvalFrameDefault (tstate=&lt;optimized out&gt;, f=0x7fffb7184a40, throwflag=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/ceval.c:3489
#15885 0x00005555556ea663 in _PyEval_EvalFrame () at /opt/conda/conda-bld/python-split_1649141344976/work/Include/internal/pycore_ceval.h:40
#15886 _PyEval_EvalCode (tstate=&lt;optimized out&gt;, _co=&lt;optimized out&gt;, globals=&lt;optimized out&gt;, locals=&lt;optimized out&gt;, args=&lt;optimized out&gt;, argcount=&lt;optimized out&gt;, kwnames=0x0, kwargs=0x7fffffffd900, kwcount=&lt;optimized out&gt;, kwstep=1, defs=0x7fffb86a50a8, defcount=5, kwdefs=0x0, closure=0x7fffb86a98e0, name=&lt;optimized out&gt;, qualname=0x7fffb86a4130) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/ceval.c:4329
#15887 0x00005555556eb354 in _PyFunction_Vectorcall (func=&lt;optimized out&gt;, stack=0x7fffffffd8f0, nargsf=&lt;optimized out&gt;, kwnames=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/call.c:396
#15888 0x00005555556d5eca in _PyObject_FastCallDictTstate (tstate=0x55555591eae0, callable=0x7fffb7daea60, args=&lt;optimized out&gt;, nargsf=&lt;optimized out&gt;, kwargs=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/call.c:118
#15889 0x00005555556dfb79 in _PyObject_Call_Prepend (kwargs=0x0, args=0x7ffff75f8a60, obj=&lt;optimized out&gt;, callable=0x7fffb7daea60, tstate=0x55555591eae0) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/call.c:489
#15890 slot_tp_init (self=&lt;optimized out&gt;, args=0x7ffff75f8a60, kwds=0x0) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/typeobject.c:6969
#15891 0x000055555568fd5f in type_call (kwds=0x0, args=0x7ffff75f8a60, type=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/typeobject.c:1026
#15892 _PyObject_MakeTpCall (tstate=0x55555591eae0, callable=0x555555e64660, args=&lt;optimized out&gt;, nargs=&lt;optimized out&gt;, keywords=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/call.c:191
#15893 0x000055555572dd89 in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=&lt;optimized out&gt;, args=0x555555a23238, callable=&lt;optimized out&gt;, tstate=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Include/cpython/abstract.h:116
#15894 PyObject_Vectorcall () at /opt/conda/conda-bld/python-split_1649141344976/work/Include/cpython/abstract.h:127
#15895 call_function (kwnames=0x0, oparg=&lt;optimized out&gt;, pp_stack=&lt;synthetic pointer&gt;, tstate=0x55555591eae0) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/ceval.c:5077
#15896 _PyEval_EvalFrameDefault (tstate=&lt;optimized out&gt;, f=0x555555a230c0, throwflag=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/ceval.c:3489
#15897 0x00005555556ea663 in _PyEval_EvalFrame () at /opt/conda/conda-bld/python-split_1649141344976/work/Include/internal/pycore_ceval.h:40
#15898 _PyEval_EvalCode (tstate=&lt;optimized out&gt;, _co=&lt;optimized out&gt;, globals=&lt;optimized out&gt;, locals=&lt;optimized out&gt;, args=&lt;optimized out&gt;, argcount=&lt;optimized out&gt;, kwnames=0x0, kwargs=0x0, kwcount=&lt;optimized out&gt;, kwstep=2, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=&lt;optimized out&gt;, qualname=0x0) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/ceval.c:4329
#15899 0x000055555579745c in _PyEval_EvalCodeWithName (qualname=0x0, name=0x0, closure=0x0, kwdefs=0x0, defcount=0, defs=0x0, kwstep=2, kwcount=0, kwargs=&lt;optimized out&gt;, kwnames=&lt;optimized out&gt;, argcount=&lt;optimized out&gt;, args=&lt;optimized out&gt;, locals=&lt;optimized out&gt;, globals=&lt;optimized out&gt;, _co=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/ceval.c:4361
#15900 PyEval_EvalCodeEx (_co=&lt;optimized out&gt;, globals=&lt;optimized out&gt;, locals=&lt;optimized out&gt;, args=&lt;optimized out&gt;, argcount=&lt;optimized out&gt;, kws=&lt;optimized out&gt;, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/ceval.c:4377
#15901 0x00005555556eb45b in PyEval_EvalCode (co=&lt;optimized out&gt;, globals=&lt;optimized out&gt;, locals=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/ceval.c:828
#15902 0x000055555579750b in run_eval_code_obj (tstate=0x55555591eae0, co=0x7ffff7607870, globals=0x7ffff75fae80, locals=0x7ffff75fae80) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/pythonrun.c:1221
#15903 0x00005555557c7f75 in run_mod (mod=&lt;optimized out&gt;, filename=&lt;optimized out&gt;, globals=0x7ffff75fae80, locals=0x7ffff75fae80, flags=&lt;optimized out&gt;, arena=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/pythonrun.c:1242
#15904 0x0000555555668987 in pyrun_file (fp=0x55555591e700, filename=0x7ffff7532330, start=&lt;optimized out&gt;, globals=0x7ffff75fae80, locals=0x7ffff75fae80, closeit=1, flags=0x7fffffffdd68) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/pythonrun.c:1140
#15905 0x00005555557cda2f in pyrun_simple_file (flags=0x7fffffffdd68, closeit=1, filename=0x7ffff7532330, fp=0x55555591e700) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/pythonrun.c:450
#15906 PyRun_SimpleFileExFlags (fp=0x55555591e700, filename=&lt;optimized out&gt;, closeit=1, flags=0x7fffffffdd68) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/pythonrun.c:483
#15907 0x00005555557ce10b in pymain_run_file (cf=0x7fffffffdd68, config=0x55555591f650) at /opt/conda/conda-bld/python-split_1649141344976/work/Modules/main.c:379
#15908 pymain_run_python (exitcode=0x7fffffffdd60) at /opt/conda/conda-bld/python-split_1649141344976/work/Modules/main.c:604
#15909 Py_RunMain () at /opt/conda/conda-bld/python-split_1649141344976/work/Modules/main.c:683
#15910 0x00005555557ce309 in Py_BytesMain (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Modules/main.c:1129
#15911 0x00007ffff7c62083 in __libc_start_main (main=0x5555556754a0 &lt;main&gt;, argc=2, argv=0x7fffffffdf68, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7fffffffdf58) at ../csu/libc-start.c:308
#15912 0x00005555557550a0 in _start ()"><pre class="notranslate">Thread 1 <span class="pl-s"><span class="pl-pds">"</span>python<span class="pl-pds">"</span></span> received signal SIGSEGV, Segmentation fault.
0x00007fffb862de57 <span class="pl-k">in</span> build(ckdtree<span class="pl-k">*</span>, long, long, double<span class="pl-k">*</span>, double<span class="pl-k">*</span>, int, <span class="pl-en">int)</span> () from /home/dasongg/miniconda3/envs/slamsup/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so

--------GDB backtrace--------
<span class="pl-c"><span class="pl-c">#</span>0  0x00007fffb862de57 in build(ckdtree*, long, long, double*, double*, int, int) ()</span>
   from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
<span class="pl-c"><span class="pl-c">#</span>1  0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) ()</span>
   from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
<span class="pl-c"><span class="pl-c">#</span>2  0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) ()</span>
   from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
<span class="pl-c"><span class="pl-c">#</span>3  0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) ()</span>
   from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
<span class="pl-c"><span class="pl-c">#</span>4  0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) ()</span>
   from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
<span class="pl-c"><span class="pl-c">#</span>5  0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) ()</span>
   from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
<span class="pl-c"><span class="pl-c">#</span>6  0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) ()</span>
   from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
<span class="pl-c"><span class="pl-c">#</span>7  0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) ()</span>
   from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
<span class="pl-c"><span class="pl-c">#</span>8  0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) ()</span>
   from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so
<span class="pl-c"><span class="pl-c">#</span>9  0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so</span>
<span class="pl-c"><span class="pl-c">#</span>10 0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so</span>
<span class="pl-c"><span class="pl-c">#</span>11 0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so</span>
<span class="pl-c"><span class="pl-c">#</span>12 0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so</span>
<span class="pl-c"><span class="pl-c">#</span>13 0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so</span>
<span class="pl-c"><span class="pl-c">#</span>14 0x00007fffb862e9ef in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so</span>
...
<span class="pl-c"><span class="pl-c">#</span>15870 0x00007fffb862e550 in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so</span>
<span class="pl-c"><span class="pl-c">#</span>15871 0x00007fffb862e550 in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so</span>
<span class="pl-c"><span class="pl-c">#</span>15872 0x00007fffb862e550 in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so</span>
<span class="pl-c"><span class="pl-c">#</span>15873 0x00007fffb862e550 in build(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so</span>
<span class="pl-c"><span class="pl-c">#</span>15874 0x00007fffb862effe in build_ckdtree(ckdtree*, long, long, double*, double*, int, int) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so</span>
<span class="pl-c"><span class="pl-c">#</span>15875 0x00007fffb8619d9a in __pyx_pf_5scipy_7spatial_7ckdtree_7cKDTree_2__init__(__pyx_obj_5scipy_7spatial_7ckdtree_cKDTree*, _object*, long, _object*, _object*, _object*, _object*) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so</span>
<span class="pl-c"><span class="pl-c">#</span>15876 0x00007fffb861d372 in __pyx_pw_5scipy_7spatial_7ckdtree_7cKDTree_3__init__(_object*, _object*, _object*) () from /home/dasongg/miniconda3/envs/py39/lib/python3.9/site-packages/scipy/spatial/ckdtree.cpython-39-x86_64-linux-gnu.so</span>
<span class="pl-c"><span class="pl-c">#</span>15877 0x00005555556e6414 in wrap_init (kwds=0x0, wrapped=&lt;optimized out&gt;, args=&lt;optimized out&gt;, self=0x7fffb6d34040) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/typeobject.c:6189</span>
<span class="pl-c"><span class="pl-c">#</span>15878 wrapperdescr_raw_call.isra.8 (kwds=0x0, args=&lt;optimized out&gt;, self=0x7fffb6d34040) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/descrobject.c:510</span>
<span class="pl-c"><span class="pl-c">#</span>15879 wrapper_call (wp=&lt;optimized out&gt;, args=&lt;optimized out&gt;, kwds=0x0) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/descrobject.c:1384</span>
<span class="pl-c"><span class="pl-c">#</span>15880 0x000055555568fcaf in _PyObject_MakeTpCall (tstate=0x55555591eae0, callable=0x7ffff73f3640, args=&lt;optimized out&gt;, nargs=&lt;optimized out&gt;, keywords=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/call.c:191</span>
<span class="pl-c"><span class="pl-c">#</span>15881 0x000055555572dd89 in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=&lt;optimized out&gt;, args=0x7fffb7184bf8, callable=&lt;optimized out&gt;, tstate=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Include/cpython/abstract.h:116</span>
<span class="pl-c"><span class="pl-c">#</span>15882 PyObject_Vectorcall () at /opt/conda/conda-bld/python-split_1649141344976/work/Include/cpython/abstract.h:127</span>
<span class="pl-c"><span class="pl-c">#</span>15883 call_function (kwnames=0x0, oparg=&lt;optimized out&gt;, pp_stack=&lt;synthetic pointer&gt;, tstate=0x55555591eae0) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/ceval.c:5077</span>
<span class="pl-c"><span class="pl-c">#</span>15884 _PyEval_EvalFrameDefault (tstate=&lt;optimized out&gt;, f=0x7fffb7184a40, throwflag=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/ceval.c:3489</span>
<span class="pl-c"><span class="pl-c">#</span>15885 0x00005555556ea663 in _PyEval_EvalFrame () at /opt/conda/conda-bld/python-split_1649141344976/work/Include/internal/pycore_ceval.h:40</span>
<span class="pl-c"><span class="pl-c">#</span>15886 _PyEval_EvalCode (tstate=&lt;optimized out&gt;, _co=&lt;optimized out&gt;, globals=&lt;optimized out&gt;, locals=&lt;optimized out&gt;, args=&lt;optimized out&gt;, argcount=&lt;optimized out&gt;, kwnames=0x0, kwargs=0x7fffffffd900, kwcount=&lt;optimized out&gt;, kwstep=1, defs=0x7fffb86a50a8, defcount=5, kwdefs=0x0, closure=0x7fffb86a98e0, name=&lt;optimized out&gt;, qualname=0x7fffb86a4130) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/ceval.c:4329</span>
<span class="pl-c"><span class="pl-c">#</span>15887 0x00005555556eb354 in _PyFunction_Vectorcall (func=&lt;optimized out&gt;, stack=0x7fffffffd8f0, nargsf=&lt;optimized out&gt;, kwnames=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/call.c:396</span>
<span class="pl-c"><span class="pl-c">#</span>15888 0x00005555556d5eca in _PyObject_FastCallDictTstate (tstate=0x55555591eae0, callable=0x7fffb7daea60, args=&lt;optimized out&gt;, nargsf=&lt;optimized out&gt;, kwargs=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/call.c:118</span>
<span class="pl-c"><span class="pl-c">#</span>15889 0x00005555556dfb79 in _PyObject_Call_Prepend (kwargs=0x0, args=0x7ffff75f8a60, obj=&lt;optimized out&gt;, callable=0x7fffb7daea60, tstate=0x55555591eae0) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/call.c:489</span>
<span class="pl-c"><span class="pl-c">#</span>15890 slot_tp_init (self=&lt;optimized out&gt;, args=0x7ffff75f8a60, kwds=0x0) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/typeobject.c:6969</span>
<span class="pl-c"><span class="pl-c">#</span>15891 0x000055555568fd5f in type_call (kwds=0x0, args=0x7ffff75f8a60, type=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/typeobject.c:1026</span>
<span class="pl-c"><span class="pl-c">#</span>15892 _PyObject_MakeTpCall (tstate=0x55555591eae0, callable=0x555555e64660, args=&lt;optimized out&gt;, nargs=&lt;optimized out&gt;, keywords=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Objects/call.c:191</span>
<span class="pl-c"><span class="pl-c">#</span>15893 0x000055555572dd89 in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=&lt;optimized out&gt;, args=0x555555a23238, callable=&lt;optimized out&gt;, tstate=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Include/cpython/abstract.h:116</span>
<span class="pl-c"><span class="pl-c">#</span>15894 PyObject_Vectorcall () at /opt/conda/conda-bld/python-split_1649141344976/work/Include/cpython/abstract.h:127</span>
<span class="pl-c"><span class="pl-c">#</span>15895 call_function (kwnames=0x0, oparg=&lt;optimized out&gt;, pp_stack=&lt;synthetic pointer&gt;, tstate=0x55555591eae0) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/ceval.c:5077</span>
<span class="pl-c"><span class="pl-c">#</span>15896 _PyEval_EvalFrameDefault (tstate=&lt;optimized out&gt;, f=0x555555a230c0, throwflag=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/ceval.c:3489</span>
<span class="pl-c"><span class="pl-c">#</span>15897 0x00005555556ea663 in _PyEval_EvalFrame () at /opt/conda/conda-bld/python-split_1649141344976/work/Include/internal/pycore_ceval.h:40</span>
<span class="pl-c"><span class="pl-c">#</span>15898 _PyEval_EvalCode (tstate=&lt;optimized out&gt;, _co=&lt;optimized out&gt;, globals=&lt;optimized out&gt;, locals=&lt;optimized out&gt;, args=&lt;optimized out&gt;, argcount=&lt;optimized out&gt;, kwnames=0x0, kwargs=0x0, kwcount=&lt;optimized out&gt;, kwstep=2, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=&lt;optimized out&gt;, qualname=0x0) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/ceval.c:4329</span>
<span class="pl-c"><span class="pl-c">#</span>15899 0x000055555579745c in _PyEval_EvalCodeWithName (qualname=0x0, name=0x0, closure=0x0, kwdefs=0x0, defcount=0, defs=0x0, kwstep=2, kwcount=0, kwargs=&lt;optimized out&gt;, kwnames=&lt;optimized out&gt;, argcount=&lt;optimized out&gt;, args=&lt;optimized out&gt;, locals=&lt;optimized out&gt;, globals=&lt;optimized out&gt;, _co=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/ceval.c:4361</span>
<span class="pl-c"><span class="pl-c">#</span>15900 PyEval_EvalCodeEx (_co=&lt;optimized out&gt;, globals=&lt;optimized out&gt;, locals=&lt;optimized out&gt;, args=&lt;optimized out&gt;, argcount=&lt;optimized out&gt;, kws=&lt;optimized out&gt;, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/ceval.c:4377</span>
<span class="pl-c"><span class="pl-c">#</span>15901 0x00005555556eb45b in PyEval_EvalCode (co=&lt;optimized out&gt;, globals=&lt;optimized out&gt;, locals=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/ceval.c:828</span>
<span class="pl-c"><span class="pl-c">#</span>15902 0x000055555579750b in run_eval_code_obj (tstate=0x55555591eae0, co=0x7ffff7607870, globals=0x7ffff75fae80, locals=0x7ffff75fae80) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/pythonrun.c:1221</span>
<span class="pl-c"><span class="pl-c">#</span>15903 0x00005555557c7f75 in run_mod (mod=&lt;optimized out&gt;, filename=&lt;optimized out&gt;, globals=0x7ffff75fae80, locals=0x7ffff75fae80, flags=&lt;optimized out&gt;, arena=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/pythonrun.c:1242</span>
<span class="pl-c"><span class="pl-c">#</span>15904 0x0000555555668987 in pyrun_file (fp=0x55555591e700, filename=0x7ffff7532330, start=&lt;optimized out&gt;, globals=0x7ffff75fae80, locals=0x7ffff75fae80, closeit=1, flags=0x7fffffffdd68) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/pythonrun.c:1140</span>
<span class="pl-c"><span class="pl-c">#</span>15905 0x00005555557cda2f in pyrun_simple_file (flags=0x7fffffffdd68, closeit=1, filename=0x7ffff7532330, fp=0x55555591e700) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/pythonrun.c:450</span>
<span class="pl-c"><span class="pl-c">#</span>15906 PyRun_SimpleFileExFlags (fp=0x55555591e700, filename=&lt;optimized out&gt;, closeit=1, flags=0x7fffffffdd68) at /opt/conda/conda-bld/python-split_1649141344976/work/Python/pythonrun.c:483</span>
<span class="pl-c"><span class="pl-c">#</span>15907 0x00005555557ce10b in pymain_run_file (cf=0x7fffffffdd68, config=0x55555591f650) at /opt/conda/conda-bld/python-split_1649141344976/work/Modules/main.c:379</span>
<span class="pl-c"><span class="pl-c">#</span>15908 pymain_run_python (exitcode=0x7fffffffdd60) at /opt/conda/conda-bld/python-split_1649141344976/work/Modules/main.c:604</span>
<span class="pl-c"><span class="pl-c">#</span>15909 Py_RunMain () at /opt/conda/conda-bld/python-split_1649141344976/work/Modules/main.c:683</span>
<span class="pl-c"><span class="pl-c">#</span>15910 0x00005555557ce309 in Py_BytesMain (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at /opt/conda/conda-bld/python-split_1649141344976/work/Modules/main.c:1129</span>
<span class="pl-c"><span class="pl-c">#</span>15911 0x00007ffff7c62083 in __libc_start_main (main=0x5555556754a0 &lt;main&gt;, argc=2, argv=0x7fffffffdf68, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7fffffffdf58) at ../csu/libc-start.c:308</span>
<span class="pl-c"><span class="pl-c">#</span>15912 0x00005555557550a0 in _start ()</span></pre></div>
<h3 dir="auto">SciPy/NumPy/Python version information</h3>
<p dir="auto">1.7.3 1.21.2 sys.version_info(major=3, minor=9, micro=12, releaselevel='final', serial=0)</p>
<p dir="auto">When running the code below (boiled down from the original producer) I get a segmentation fault.</p>
<h4 dir="auto">Reproducing code example:</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
from scipy.spatial import KDTree

points = np.arange(34.).reshape(-1, 2)
points[0] = np.nan
points[8] = np.nan
KDTree(points)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">from</span> <span class="pl-s1">scipy</span>.<span class="pl-s1">spatial</span> <span class="pl-k">import</span> <span class="pl-v">KDTree</span>

<span class="pl-s1">points</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">34.</span>).<span class="pl-en">reshape</span>(<span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-c1">2</span>)
<span class="pl-s1">points</span>[<span class="pl-c1">0</span>] <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>
<span class="pl-s1">points</span>[<span class="pl-c1">8</span>] <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>
<span class="pl-v">KDTree</span>(<span class="pl-s1">points</span>)</pre></div>
<h4 dir="auto">Error message:</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="❯ python test_crash.py
[1]    89987 segmentation fault  python test_crash.py"><pre class="notranslate"><code class="notranslate">❯ python test_crash.py
[1]    89987 segmentation fault  python test_crash.py
</code></pre></div>
<h4 dir="auto">Scipy/Numpy/Python version information:</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.7.1 1.21.1 sys.version_info(major=3, minor=9, micro=6, releaselevel='final', serial=0)"><pre class="notranslate"><code class="notranslate">1.7.1 1.21.1 sys.version_info(major=3, minor=9, micro=6, releaselevel='final', serial=0)
</code></pre></div>
<p dir="auto">I'm running this locally on macOS 11.5 (x86_64), but original issue was seen on Ubuntu 20.04.2 (GitHub Actions). The MetPy test that now segfaults passes fine with Scipy 1.7.0.</p>