Skip to content

cannot free environment handle -- with some CLOB #78

@sebasmannem

Description

@sebasmannem

When copying data from fdw tables into local tables, we run into issues such as these:

The following occurs 5 times:

2025-10-30 13:32:11.979 CET [1530640] FATAL:  cannot free environment handle
2025-10-30 13:32:11.979 CET [1530640] DETAIL:  SQLSTATE = HY010  SQLCODE = -99999
        line=47
        file=source/db2FreeEnvHdl.c
        [IBM][CLI Driver] CLI0125E  Function sequence error. SQLSTATE=HY010

After which we have

2025-10-30 13:32:19.953 CET [1528723] LOG:  server process (PID 1530675) was terminated by signal 11: Segmentation fault
2025-10-30 13:32:19.953 CET [1528723] DETAIL:  Failed process was running: insert into someschema.sometbl (col1, col2, ...
2025-10-30 13:32:19.953 CET [1528723] LOG:  terminating any other active server processes

Over 1500 tables, this occurs for about 15 tables, and they all seem to work fine when leaving out the CLOB fields

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions