microsoft / microsoft/sql-server-samples

sqlcmd: Memory allocation failed (OSX)

Open
#576 6 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
11.2k
Forks
9.1k
Avg merge
2d 7h
Merged PRs (30d)
14

Description

brew install mssql-tools
microsoft/mssql-release/mssql-tools 17.3.1.1 is already installed and up-to-date

brew --version
Homebrew 2.1.5
Homebrew/homebrew-core (git revision b2f0; last commit 2019-06-13)
Homebrew/homebrew-cask (git revision 3fdb1; last commit 2019-06-13)

sqlcmd -S "<server>" -U "<user>" -P "<password>" Q "<query>" // replaced to not reveal company info

sqlcmd(78448,0x10f9b85c0) malloc: can't allocate region
*** mach_vm_map(size=18446744073709535232) failed (error code=3)
sqlcmd(78448,0x10f9b85c0) malloc: *** set a breakpoint in malloc_error_break to debug
Sqlcmd: Error: Internal error at PrintODBCDiagRecs (Reason: Memory allocation failed).
sqlcmd(78448,0x10f9b85c0) malloc: can't allocate region
*** mach_vm_map(size=18446744073709535232) failed (error code=3)
sqlcmd(78448,0x10f9b85c0) malloc: *** set a breakpoint in malloc_error_break to debug
Sqlcmd: Error: Internal error at PrintODBCDiagRecs (Reason: Memory allocation failed).
sqlcmd(78448,0x10f9b85c0) malloc: can't allocate region
*** mach_vm_map(size=18446744073709535232) failed (error code=3)
sqlcmd(78448,0x10f9b85c0) malloc: *** set a breakpoint in malloc_error_break to debug
Sqlcmd: Error: Internal error at PrintODBCDiagRecs (Reason: Memory allocation failed).

Mojave 10.14.5

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported sqlcmd invocation after installing microsoft/mssql-release/mssql-tools 17.3.1.1 with Homebrew 2.1.5 on macOS Mojave 10.14.5. No source file or test is named; done means identifying and resolving the memory-allocation failure so the command runs without the repeated internal error.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, sql
Domain
cli, databases, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.