Skip to content

segmentation fault in [email protected] and [email protected] #199354

@cosmosgenius

Description

@cosmosgenius

brew gist-logs <formula> link OR brew config AND brew doctor output

HOMEBREW_VERSION: 4.4.8
ORIGIN: https://github.com/Homebrew/brew
HEAD: e78a0adb4f260913fffdc956cc8c20fb54109feb
Last commit: 3 days ago
Branch: stable
Core tap JSON: 28 Nov 07:19 UTC
Core cask tap JSON: 28 Nov 07:19 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: dodeca-core 64-bit arm_blizzard_avalanche
Clang: 16.0.0 build 1600
Git: 2.47.1 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.1-arm64
CLT: 16.1.0.0.1.1729049160
Xcode: 16.1
Rosetta 2: false

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  packer
  vault

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  numpy

Verification

What were you trying to do (and why)?

I was trying to compile and run koboldcpp https://github.com/LostRuins/koboldcpp.

What happened (include all command output)?

The following python snippet segfaults. This for both [email protected] and [email protected]

import tkinter
import threading

original_windowwidth = 580
original_windowheight = 560
windowwidth = original_windowwidth
windowheight = original_windowheight

root = tkinter.Tk()
root.geometry(str(windowwidth) + "x" + str(windowheight))
gpu_choice_var = tkinter.StringVar(value="1")
quick_gpuname_label = tkinter.Label(root, text="hello")

def outPrint(*args):
    quick_gpuname_label.configure(text="1")
    print(args)
gpu_choice_var.trace_add("write", outPrint)

gpuinfo_thread = threading.Thread(target=outPrint)
gpuinfo_thread.start()

# gpu_choice_var.set("1")
# outPrint()
# root.mainloop()

What did you expect to happen?

segmentation fault to not happen.

This problem came up due to the recent change from tcl 8.x to tcl 9.0.0 as the default tcl package.
I am not sure where in the segfault issue is from
PFA of segfault dump

segfault.txt

Step-by-step reproduction instructions (by running brew commands)

brew install [email protected] [email protected]
python3.12 <above script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugReproducible Homebrew/homebrew-core bugupstream issueAn upstream issue report is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions