Skip to content

Instantly share code, notes, and snippets.

@GiuseppeChillemi
GiuseppeChillemi / RED-ODBC18-Crash-002.txt
Created April 10, 2026 15:29
RED-ODBC Windows "SQL ODBC DRIVER 18" new driver CRASH DEBUG output
root: 6817/9502, runs: 0, nodes-runs: 0, mem: 3235716 => 3187692, mark: 3.3ms, sweep: 1.0ms
root: 6817/9502, runs: 1, nodes-runs: 0, mem: 5433132 => 4310808, mark: 6.9ms, sweep: 2.1ms
actor/open: connection
init-odbc
OPEN-ENVIRONMENT [
SQLAllocHandle 0
henv/value = 57279696
SQLSetEnvAttr 0
]
init-odbc: 0
@GiuseppeChillemi
GiuseppeChillemi / RED-ODBC18-Crash-001.txt
Created April 10, 2026 15:02
RED-ODBC Windows "SQL ODBC DRIVER 18" new driver CRASH DEBUG output
root: 6817/9502, runs: 0, nodes-runs: 0, mem: 3235604 => 3187580, mark: 5.2ms, sweep: 1.0ms
root: 6817/9502, runs: 1, nodes-runs: 0, mem: 5433124 => 4310800, mark: 5.8ms, sweep: 1.0ms
actor/open: connection
init-odbc
OPEN-ENVIRONMENT [
SQLAllocHandle 0
henv/value = 57017552
SQLSetEnvAttr 0
]
init-odbc: 0
@GiuseppeChillemi
GiuseppeChillemi / RED-ODBC-Crash-001.txt
Created April 10, 2026 14:57
RED-ODBC Windows "SQL Server" old driver CRASH DEBUG output
root: 6817/9502, runs: 0, nodes-runs: 0, mem: 3235588 => 3187564, mark: 9.7ms, sweep: 1.0ms
root: 6817/9502, runs: 1, nodes-runs: 0, mem: 5433108 => 4310784, mark: 5.5ms, sweep: 2.2ms
actor/open: connection
init-odbc
OPEN-ENVIRONMENT [
SQLAllocHandle 0
henv/value = 57017552
SQLSetEnvAttr 0
]
init-odbc: 0
@GiuseppeChillemi
GiuseppeChillemi / odbc-crash-test.red
Last active April 5, 2026 09:13
Code to generate a crash on Red-ODBC
Red [
Title: "Code to generate an Access Violation"
Note: "Below you will find the DB creation script, tested on SQL Server 2016"
]
connection: open make port! [
scheme: 'odbc
target: "driver={SQL Server};server=192.168.x.x\SQLXXXX;database=mytest;uid=someid;pwd=somepw;AutoTranslate=yes"
]
@GiuseppeChillemi
GiuseppeChillemi / args-test-10.r
Last active April 25, 2025 01:30
Test for ARG types
;Red []
Rebol [
Title: "Args Test"
Notes: {
https://github.com/red/red/wiki/%5BDOC%5D-Guru-Meditations#literal-arguments-and-get-arguments
https://github.com/red/red/issues/1850
https://github.com/red/red/issues/2622
https://github.com/red/red/issues/3840
}
@GiuseppeChillemi
GiuseppeChillemi / args-test.t
Last active April 23, 2025 14:52
args-test.r
;Red []
Rebol [
Title: "Args Test"
Description: "Test the working of ARGS"
]
;---- Z is here for STUB ----
z: %testfile.txt
@GiuseppeChillemi
GiuseppeChillemi / quote-elements.red
Last active March 20, 2025 23:37
Delimits elements to be used with parse
Red [
Title: "Delimit elements"
Description: "Delimit and quotes elements for parse"
Version: 1.1
]
delimit-elements: func [
"Delimits and quotes a block of elements to be used with parse"
block [block!]
/local
@GiuseppeChillemi
GiuseppeChillemi / context-reusing-simulations.red
Last active February 8, 2025 13:34
Context reuse speed test
Red [
Title: "Speed comparison with context keeping"
Description: {
This test compares the same function with and without the
initialization phase
The purpose of this the is to test context reusing:
A function has ofen an check and init phase. In stict loops
many of these checks and inits could be bypassed after the first
one if part of the function context could be passed again
at each run.
@GiuseppeChillemi
GiuseppeChillemi / Refinements-by-lenght
Last active February 8, 2025 13:37
Functions-Sorted-by-refinements-length.txt
Red [
Title: "List of function by refinements length"
Description: {
This is a list of function sorted by number of refinements
It was obtained with the help of my parse-specs function
}
Date: 07/02/2025
RED-VERSION: [ branch: "master" tag: #v0.6.5 ahead: 222 date: 4-Dec-2024/13:53:00 commit: #ba5228d9a1afe5f6005df0f72f47f1c18f3e85a5 ]
]
Red [
Title: "Leak checks"
Description: {
Checks the system/words context for words leaking
* You can use inline in your code or
* Check a block
* Check a file (it must have an #assert [code] test inside and
run at least once
}
Usage: {