Describe the bug
The following code fails with segmentation fault at rep=512 (using arm64 on a MacBook Pro with Tahoe).
To Reproduce
Log/Screenshots
/opt/homebrew/Caskroom/miniconda/base/envs/py313/bin/python /Users/laurent/Development/changepoint/taichi_bug2.py
[Taichi] version 1.7.4, llvm 15.0.7, commit b4b956f, osx, python 3.13.11
[Taichi] Starting on arch=arm64
rep=0
rep=1
rep=2
rep=3
rep=4
rep=5
rep=6
rep=7
rep=8
rep=9
rep=10
rep=11
rep=12
rep=13
rep=14
rep=15
rep=16
rep=17
rep=18
rep=19
rep=20
rep=21
rep=22
rep=23
rep=24
rep=25
rep=26
rep=27
rep=28
rep=29
rep=30
rep=31
rep=32
rep=33
rep=34
rep=35
rep=36
rep=37
rep=38
rep=39
rep=40
rep=41
rep=42
rep=43
rep=44
rep=45
rep=46
rep=47
rep=48
rep=49
rep=50
rep=51
rep=52
rep=53
rep=54
rep=55
rep=56
rep=57
rep=58
rep=59
rep=60
rep=61
rep=62
rep=63
rep=64
rep=65
rep=66
rep=67
rep=68
rep=69
rep=70
rep=71
rep=72
rep=73
rep=74
rep=75
rep=76
rep=77
rep=78
rep=79
rep=80
rep=81
rep=82
rep=83
rep=84
rep=85
rep=86
rep=87
rep=88
rep=89
rep=90
rep=91
rep=92
rep=93
rep=94
rep=95
rep=96
rep=97
rep=98
rep=99
rep=100
rep=101
rep=102
rep=103
rep=104
rep=105
rep=106
rep=107
rep=108
rep=109
rep=110
rep=111
rep=112
rep=113
rep=114
rep=115
rep=116
rep=117
rep=118
rep=119
rep=120
rep=121
rep=122
rep=123
rep=124
rep=125
rep=126
rep=127
rep=128
rep=129
rep=130
rep=131
rep=132
rep=133
rep=134
rep=135
rep=136
rep=137
rep=138
rep=139
rep=140
rep=141
rep=142
rep=143
rep=144
rep=145
rep=146
rep=147
rep=148
rep=149
rep=150
rep=151
rep=152
rep=153
rep=154
rep=155
rep=156
rep=157
rep=158
rep=159
rep=160
rep=161
rep=162
rep=163
rep=164
rep=165
rep=166
rep=167
rep=168
rep=169
rep=170
rep=171
rep=172
rep=173
rep=174
rep=175
rep=176
rep=177
rep=178
rep=179
rep=180
rep=181
rep=182
rep=183
rep=184
rep=185
rep=186
rep=187
rep=188
rep=189
rep=190
rep=191
rep=192
rep=193
rep=194
rep=195
rep=196
rep=197
rep=198
rep=199
rep=200
rep=201
rep=202
rep=203
rep=204
rep=205
rep=206
rep=207
rep=208
rep=209
rep=210
rep=211
rep=212
rep=213
rep=214
rep=215
rep=216
rep=217
rep=218
rep=219
rep=220
rep=221
rep=222
rep=223
rep=224
rep=225
rep=226
rep=227
rep=228
rep=229
rep=230
rep=231
rep=232
rep=233
rep=234
rep=235
rep=236
rep=237
rep=238
rep=239
rep=240
rep=241
rep=242
rep=243
rep=244
rep=245
rep=246
rep=247
rep=248
rep=249
rep=250
rep=251
rep=252
rep=253
rep=254
rep=255
rep=256
rep=257
rep=258
rep=259
rep=260
rep=261
rep=262
rep=263
rep=264
rep=265
rep=266
rep=267
rep=268
rep=269
rep=270
rep=271
rep=272
rep=273
rep=274
rep=275
rep=276
rep=277
rep=278
rep=279
rep=280
rep=281
rep=282
rep=283
rep=284
rep=285
rep=286
rep=287
rep=288
rep=289
rep=290
rep=291
rep=292
rep=293
rep=294
rep=295
rep=296
rep=297
rep=298
rep=299
rep=300
rep=301
rep=302
rep=303
rep=304
rep=305
rep=306
rep=307
rep=308
rep=309
rep=310
rep=311
rep=312
rep=313
rep=314
rep=315
rep=316
rep=317
rep=318
rep=319
rep=320
rep=321
rep=322
rep=323
rep=324
rep=325
rep=326
rep=327
rep=328
rep=329
rep=330
rep=331
rep=332
rep=333
rep=334
rep=335
rep=336
rep=337
rep=338
rep=339
rep=340
rep=341
rep=342
rep=343
rep=344
rep=345
rep=346
rep=347
rep=348
rep=349
rep=350
rep=351
rep=352
rep=353
rep=354
rep=355
rep=356
rep=357
rep=358
rep=359
rep=360
rep=361
rep=362
rep=363
rep=364
rep=365
rep=366
rep=367
rep=368
rep=369
rep=370
rep=371
rep=372
rep=373
rep=374
rep=375
rep=376
rep=377
rep=378
rep=379
rep=380
rep=381
rep=382
rep=383
rep=384
rep=385
rep=386
rep=387
rep=388
rep=389
rep=390
rep=391
rep=392
rep=393
rep=394
rep=395
rep=396
rep=397
rep=398
rep=399
rep=400
rep=401
rep=402
rep=403
rep=404
rep=405
rep=406
rep=407
rep=408
rep=409
rep=410
rep=411
rep=412
rep=413
rep=414
rep=415
rep=416
rep=417
rep=418
rep=419
rep=420
rep=421
rep=422
rep=423
rep=424
rep=425
rep=426
rep=427
rep=428
rep=429
rep=430
rep=431
rep=432
rep=433
rep=434
rep=435
rep=436
rep=437
rep=438
rep=439
rep=440
rep=441
rep=442
rep=443
rep=444
rep=445
rep=446
rep=447
rep=448
rep=449
rep=450
rep=451
rep=452
rep=453
rep=454
rep=455
rep=456
rep=457
rep=458
rep=459
rep=460
rep=461
rep=462
rep=463
rep=464
rep=465
rep=466
rep=467
rep=468
rep=469
rep=470
rep=471
rep=472
rep=473
rep=474
rep=475
rep=476
rep=477
rep=478
rep=479
rep=480
rep=481
rep=482
rep=483
rep=484
rep=485
rep=486
rep=487
rep=488
rep=489
rep=490
rep=491
rep=492
rep=493
rep=494
rep=495
rep=496
rep=497
rep=498
rep=499
rep=500
rep=501
rep=502
rep=503
rep=504
rep=505
rep=506
rep=507
rep=508
rep=509
rep=510
rep=511
rep=512
* Taichi Core - Stack Traceback *
==========================================================================================
| Module | Offset | Function |
|----------------------------------------------------------------------------------------|
- taichi_python.cpython-313-darwin.so | 136 | taichi::Logger::error(std::_1::basic |
| string<char, std::__1::char_traits, std |
| ::__1::allocator> const&, bool) |
- taichi_python.cpython-313-darwin.so | 372 | taichi::(anonymous namespace)::signal_ |
| handler(int) |
-
libsystem_platform.dylib | 56 | (null) |
-
libc++.1.dylib | 16 | std::__1::mutex::lock() |
-
libc++.1.dylib | 16 | std::__1::mutex::lock() |
- taichi_python.cpython-313-darwin.so | 80 | taichi::ThreadPool::run(int, int, void |
| , void ()(void*, int, int)) |
-
??? | -1909178284 | (null) |
- taichi_python.cpython-313-darwin.so | 56 | taichi::lang::Program::launch_kernel(t |
| aichi::lang::CompiledKernelData const&, taich |
| i::lang::LaunchContextBuilder&) |
- taichi_python.cpython-313-darwin.so | 232 | void pybind11::cpp_function::initializ |
| e<pybind11::cpp_function::cpp_function<void, |
| taichi::lang::Program, taichi::lang::Compiled |
| KernelData const&, taichi::lang::LaunchContex |
| tBuilder&, pybind11::name, pybind11::is_metho |
| d, pybind11::sibling>(void (taichi::lang::Pro |
| gram::)(taichi::lang::CompiledKernelData con |
| st&, taichi::lang::LaunchContextBuilder&), py |
| bind11::name const&, pybind11::is_method cons |
| t&, pybind11::sibling const&)::'lambda'(taich |
| i::lang::Program, taichi::lang::CompiledKern |
| elData const&, taichi::lang::LaunchContextBui |
| lder&), void, taichi::lang::Program*, taichi: |
| :lang::CompiledKernelData const&, taichi::lan |
| g::LaunchContextBuilder&, pybind11::name, pyb |
| ind11::is_method, pybind11::sibling>(void&&, |
| taichi::lang::Program (*)(taichi::lang::Compi |
| ledKernelData const&, taichi::lang::LaunchCon |
| textBuilder&), pybind11::name const&, pybind1 |
| 1::is_method const&, pybind11::sibling const& |
| )::'lambda'(pybind11::detail::function_call&) |
| ::operator()(pybind11::detail::function_call& |
| ) const |
- taichi_python.cpython-313-darwin.so | 3852 | pybind11::cpp_function::dispatcher(_ob |
| ject*, _object*, _object*) |
-
python3.13 | 76 | (null) |
-
python3.13 | 55044 | (null) |
-
python3.13 | 412 | (null) |
-
python3.13 | 69588 | (null) |
-
python3.13 | 152 | (null) |
-
python3.13 | 232 | (null) |
-
python3.13 | 69996 | (null) |
-
python3.13 | 148 | (null) |
-
python3.13 | 100 | (null) |
-
python3.13 | 148 | (null) |
-
python3.13 | 144 | (null) |
-
python3.13 | 256 | (null) |
-
python3.13 | 80 | (null) |
-
python3.13 | 180 | (null) |
-
python3.13 | 76 | (null) |
-
python3.13 | 1036 | (null) |
-
python3.13 | 476 | (null) |
-
python3.13 | 60 | (null) |
-
==========================================================================================
Internal error occurred. Check out this page for possible solutions:
https://docs.taichi-lang.org/docs/install
[E 05/11/26 12:03:34.514 44703148] Received signal 11 (Segmentation fault: 11)
Process finished with exit code 255
Additional comments
Describe the bug
The following code fails with segmentation fault at rep=512 (using arm64 on a MacBook Pro with Tahoe).To Reproduce
Log/Screenshots
/opt/homebrew/Caskroom/miniconda/base/envs/py313/bin/python /Users/laurent/Development/changepoint/taichi_bug2.py
[Taichi] version 1.7.4, llvm 15.0.7, commit b4b956f, osx, python 3.13.11
[Taichi] Starting on arch=arm64
rep=0
rep=1
rep=2
rep=3
rep=4
rep=5
rep=6
rep=7
rep=8
rep=9
rep=10
rep=11
rep=12
rep=13
rep=14
rep=15
rep=16
rep=17
rep=18
rep=19
rep=20
rep=21
rep=22
rep=23
rep=24
rep=25
rep=26
rep=27
rep=28
rep=29
rep=30
rep=31
rep=32
rep=33
rep=34
rep=35
rep=36
rep=37
rep=38
rep=39
rep=40
rep=41
rep=42
rep=43
rep=44
rep=45
rep=46
rep=47
rep=48
rep=49
rep=50
rep=51
rep=52
rep=53
rep=54
rep=55
rep=56
rep=57
rep=58
rep=59
rep=60
rep=61
rep=62
rep=63
rep=64
rep=65
rep=66
rep=67
rep=68
rep=69
rep=70
rep=71
rep=72
rep=73
rep=74
rep=75
rep=76
rep=77
rep=78
rep=79
rep=80
rep=81
rep=82
rep=83
rep=84
rep=85
rep=86
rep=87
rep=88
rep=89
rep=90
rep=91
rep=92
rep=93
rep=94
rep=95
rep=96
rep=97
rep=98
rep=99
rep=100
rep=101
rep=102
rep=103
rep=104
rep=105
rep=106
rep=107
rep=108
rep=109
rep=110
rep=111
rep=112
rep=113
rep=114
rep=115
rep=116
rep=117
rep=118
rep=119
rep=120
rep=121
rep=122
rep=123
rep=124
rep=125
rep=126
rep=127
rep=128
rep=129
rep=130
rep=131
rep=132
rep=133
rep=134
rep=135
rep=136
rep=137
rep=138
rep=139
rep=140
rep=141
rep=142
rep=143
rep=144
rep=145
rep=146
rep=147
rep=148
rep=149
rep=150
rep=151
rep=152
rep=153
rep=154
rep=155
rep=156
rep=157
rep=158
rep=159
rep=160
rep=161
rep=162
rep=163
rep=164
rep=165
rep=166
rep=167
rep=168
rep=169
rep=170
rep=171
rep=172
rep=173
rep=174
rep=175
rep=176
rep=177
rep=178
rep=179
rep=180
rep=181
rep=182
rep=183
rep=184
rep=185
rep=186
rep=187
rep=188
rep=189
rep=190
rep=191
rep=192
rep=193
rep=194
rep=195
rep=196
rep=197
rep=198
rep=199
rep=200
rep=201
rep=202
rep=203
rep=204
rep=205
rep=206
rep=207
rep=208
rep=209
rep=210
rep=211
rep=212
rep=213
rep=214
rep=215
rep=216
rep=217
rep=218
rep=219
rep=220
rep=221
rep=222
rep=223
rep=224
rep=225
rep=226
rep=227
rep=228
rep=229
rep=230
rep=231
rep=232
rep=233
rep=234
rep=235
rep=236
rep=237
rep=238
rep=239
rep=240
rep=241
rep=242
rep=243
rep=244
rep=245
rep=246
rep=247
rep=248
rep=249
rep=250
rep=251
rep=252
rep=253
rep=254
rep=255
rep=256
rep=257
rep=258
rep=259
rep=260
rep=261
rep=262
rep=263
rep=264
rep=265
rep=266
rep=267
rep=268
rep=269
rep=270
rep=271
rep=272
rep=273
rep=274
rep=275
rep=276
rep=277
rep=278
rep=279
rep=280
rep=281
rep=282
rep=283
rep=284
rep=285
rep=286
rep=287
rep=288
rep=289
rep=290
rep=291
rep=292
rep=293
rep=294
rep=295
rep=296
rep=297
rep=298
rep=299
rep=300
rep=301
rep=302
rep=303
rep=304
rep=305
rep=306
rep=307
rep=308
rep=309
rep=310
rep=311
rep=312
rep=313
rep=314
rep=315
rep=316
rep=317
rep=318
rep=319
rep=320
rep=321
rep=322
rep=323
rep=324
rep=325
rep=326
rep=327
rep=328
rep=329
rep=330
rep=331
rep=332
rep=333
rep=334
rep=335
rep=336
rep=337
rep=338
rep=339
rep=340
rep=341
rep=342
rep=343
rep=344
rep=345
rep=346
rep=347
rep=348
rep=349
rep=350
rep=351
rep=352
rep=353
rep=354
rep=355
rep=356
rep=357
rep=358
rep=359
rep=360
rep=361
rep=362
rep=363
rep=364
rep=365
rep=366
rep=367
rep=368
rep=369
rep=370
rep=371
rep=372
rep=373
rep=374
rep=375
rep=376
rep=377
rep=378
rep=379
rep=380
rep=381
rep=382
rep=383
rep=384
rep=385
rep=386
rep=387
rep=388
rep=389
rep=390
rep=391
rep=392
rep=393
rep=394
rep=395
rep=396
rep=397
rep=398
rep=399
rep=400
rep=401
rep=402
rep=403
rep=404
rep=405
rep=406
rep=407
rep=408
rep=409
rep=410
rep=411
rep=412
rep=413
rep=414
rep=415
rep=416
rep=417
rep=418
rep=419
rep=420
rep=421
rep=422
rep=423
rep=424
rep=425
rep=426
rep=427
rep=428
rep=429
rep=430
rep=431
rep=432
rep=433
rep=434
rep=435
rep=436
rep=437
rep=438
rep=439
rep=440
rep=441
rep=442
rep=443
rep=444
rep=445
rep=446
rep=447
rep=448
rep=449
rep=450
rep=451
rep=452
rep=453
rep=454
rep=455
rep=456
rep=457
rep=458
rep=459
rep=460
rep=461
rep=462
rep=463
rep=464
rep=465
rep=466
rep=467
rep=468
rep=469
rep=470
rep=471
rep=472
rep=473
rep=474
rep=475
rep=476
rep=477
rep=478
rep=479
rep=480
rep=481
rep=482
rep=483
rep=484
rep=485
rep=486
rep=487
rep=488
rep=489
rep=490
rep=491
rep=492
rep=493
rep=494
rep=495
rep=496
rep=497
rep=498
rep=499
rep=500
rep=501
rep=502
rep=503
rep=504
rep=505
rep=506
rep=507
rep=508
rep=509
rep=510
rep=511
rep=512
==========================================================================================
| Module | Offset | Function |
|----------------------------------------------------------------------------------------|
| string<char, std::__1::char_traits, std |
| ::__1::allocator> const&, bool) |
| handler(int) |
| , void ()(void*, int, int)) |
| aichi::lang::CompiledKernelData const&, taich |
| i::lang::LaunchContextBuilder&) |
| e<pybind11::cpp_function::cpp_function<void, |
| taichi::lang::Program, taichi::lang::Compiled |
| KernelData const&, taichi::lang::LaunchContex |
| tBuilder&, pybind11::name, pybind11::is_metho |
| d, pybind11::sibling>(void (taichi::lang::Pro |
| gram::)(taichi::lang::CompiledKernelData con |
| st&, taichi::lang::LaunchContextBuilder&), py |
| bind11::name const&, pybind11::is_method cons |
| t&, pybind11::sibling const&)::'lambda'(taich |
| i::lang::Program, taichi::lang::CompiledKern |
| elData const&, taichi::lang::LaunchContextBui |
| lder&), void, taichi::lang::Program*, taichi: |
| :lang::CompiledKernelData const&, taichi::lan |
| g::LaunchContextBuilder&, pybind11::name, pyb |
| ind11::is_method, pybind11::sibling>(void&&, |
| taichi::lang::Program (*)(taichi::lang::Compi |
| ledKernelData const&, taichi::lang::LaunchCon |
| textBuilder&), pybind11::name const&, pybind1 |
| 1::is_method const&, pybind11::sibling const& |
| )::'lambda'(pybind11::detail::function_call&) |
| ::operator()(pybind11::detail::function_call& |
| ) const |
| ject*, _object*, _object*) |
==========================================================================================
Internal error occurred. Check out this page for possible solutions:
https://docs.taichi-lang.org/docs/install
[E 05/11/26 12:03:34.514 44703148] Received signal 11 (Segmentation fault: 11)
Process finished with exit code 255
Additional comments