Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SIGSEV indatetime.timedelta (possibly from datetime's Cdelta_new) #132413

Open
Labels
extension-modulesC modules in the Modules dirtype-crashA hard crash of the interpreter, possibly with a core dump
@Jacoblightning

Description

@Jacoblightning

Crash report

What happened?

I was testing some AI code with ollama and stumbled across a really weird crash.
The fact that it happens during an IndexError and a specific function has to be there leads me to believe that this is a CPython bug and not an ollama bug.

fromollamaimportchat# Has to be here to segfault???defcolorSwitch(color):print(color,end="",flush=True)stream=chat(model="llama3.2",# I think it works with any but this is what I used.messages=[{"role":"user","content":""}],options={"seed":0},# Does not need this but I figured it would be helpfulstream=True,)# Any iteration works. I just simplified it down to this.part=next(iter(stream))['message']['content']temp=part.split("</think>",1)# Crash Heretemp[1]

PythonCore.zip

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Output from running 'python -VV' on the command line:

Python 3.13.2 (main, Feb 5 2025, 08:05:21) [GCC 14.2.1 20250128]

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirtype-crashA hard crash of the interpreter, possibly with a core dump

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp