Skip to content

Conversation

@hyunikn
Copy link
Contributor

@hyunikn hyunikn commented Dec 8, 2025

http://jira.cubrid.org/browse/CBRD-26142

Purpose

  • PL 서버로부터의 fetch 요청에 대해서 커서로부터 얻어진 DB_VALUE가 모두 pack 되고 난 이후에 커서를 닫도록 수정
    • 변경 이전에는 cursor의 next_row() 안에서 마지막 row 다음에 close 하도록 구현되어 있었음
  • 수정 이유:
    • pack 과정에서 문자열 buf의 주소가 접근 불가하여 segmentation fault 가 나는 문제
    • 디버깅 결과, buf 의 주소가 접근 불가로 바뀌는 것은 cursor의 close 과정 (특히, xqmgr_end_query 호출) 도중인 것으로 파악

Implementation

cursor close 과정을 cursor의 next_row() 로부터 callback_fetch() 의 데이터 pack 이후로 이동.

Remarks

cursor 의 next_row() 호출은 callback_fetch() 내부 단 한 군데.

@hyunikn hyunikn self-assigned this Dec 8, 2025
@hyunikn
Copy link
Contributor Author

hyunikn commented Dec 8, 2025

/run all

@hyunikn hyunikn marked this pull request as ready for review December 8, 2025 04:12
@hyunikn hyunikn requested a review from beyondykk9 as a code owner December 8, 2025 04:12
@hyunikn
Copy link
Contributor Author

hyunikn commented Dec 8, 2025

Shell test 결과 실패 한 건은 unstable 로 추정됩니다. : 로컬에서 실행했을 때는 성공
SQL test 결과 실패 한 건은 오늘 답지가 수정된 건이고 이 PR의 변경과 관련 없어 보입니다.

@hyunikn
Copy link
Contributor Author

hyunikn commented Dec 8, 2025

/run all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants