Skip to content

Nil pointer dereference around execStagingOperation #265

Closed

Description

@achettyiitr

We recently upgraded to 1.7.0 and started getting a nil pointer. We downgraded to 1.6.1, and things are stable now. Corresponding stack trace:

panic: runtime error: invalid memory address or nil pointer dereference
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x2642668]

goroutine 5829 [running]:
github.com/databricks/databricks-sql-go.(*conn).execStagingOperation(0x4017f8b170, 0x4000db1d50, {0x47db718, 0x4017da5260})
	/go/pkg/mod/github.com/databricks/databricks-sql-go@v1.7.0/connection.go:584 +0xd8
github.com/databricks/databricks-sql-go.(*conn).ExecContext(0x4017f8b170, {0x47db7c0?, 0x40007d6690?}, {0x40013c6f60, 0x1a}, {0x4000f8f0c8, 0x0, 0x0})
	/go/pkg/mod/github.com/databricks/databricks-sql-go@v1.7.0/connection.go:119 +0x15c
github.com/databricks/databricks-sql-go.(*connector).Connect(0x4003e91ca0, {0x47db7c0, 0x40007d6690})
	/go/pkg/mod/github.com/databricks/databricks-sql-go@v1.7.0/connector.go:70 +0x798
database/sql.(*DB).conn(0x4014efd450, {0x47db7c0, 0x40007d6690}, 0x1)
	/usr/local/go/src/database/sql/sql.go:1431 +0x9b0
database/sql.(*DB).query(0x4014efd450, {0x47db7c0, 0x40007d6690}, {0x401aa5ebe0, 0x43}, {0x0, 0x0, 0x0}, 0x0?)
	/usr/local/go/src/database/sql/sql.go:1759 +0x40
database/sql.(*DB).QueryContext.func1(0xbb?)
	/usr/local/go/src/database/sql/sql.go:1742 +0x54
database/sql.(*DB).retry(0x4000f8f658?, 0x4000f8f630)
	/usr/local/go/src/database/sql/sql.go:1576 +0x4c
database/sql.(*DB).QueryContext(0x47db718?, {0x47db7c0?, 0x40007d6690?}, {0x401aa5ebe0?, 0x4001d65b30?}, {0x0?, 0x1?, 0x1?})
	/usr/local/go/src/database/sql/sql.go:1741 +0x9

Activity

  1. vikrantpuppala commented on Apr 16, 2025

    @vikrantpuppala
    Collaborator

    Hi @achettyiitr which DBR version are you using?

  2. vikrantpuppala commented on Apr 23, 2025

    @vikrantpuppala
    Collaborator

    Hi @achettyiitr would you be able to share additional details here like DBR version used, query details, etc. that would help us investigate?

  3. achettyiitr commented on Apr 23, 2025

    @achettyiitr
    Author

    HI @vikrantpuppala, apologies. I don't have DBR version in hand. We connect to the customer's databricks to run some queries, and we are getting those errors there. Let me check and get you the DBR version.

  4. added a commit that references this issue on Apr 29, 2025
    0911521
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions