Skip to content

Nil pointer dereference around execStagingOperation #265

@achettyiitr

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

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