Skip to content

scala-cli compile . -w in directory with non-ASCII characters results in malloc: non-aligned pointer #2444

Open
@Poiku

Description

@Poiku

OS: macOS 12.6 Monterey

scala --version: Scala code runner version 3.3.0 -- Copyright 2002-2023, LAMP/EPFL

scala-cli --version: Scala CLI version: 1.0.4 Scala version (default): 3.3.0

java -version:openjdk version "17.0.8" 2023-07-18

OpenJDK Runtime Environment Temurin-17.0.8+7 (build 17.0.8+7)

OpenJDK 64-Bit Server VM Temurin-17.0.8+7 (build 17.0.8+7, mixed mode)

(Above installed with brew)

When running the command scala-cli compile . -w in a directory using non-ASCII characters (tested with "å", "ä", "ö", "ñ"), the compiler aborts with the following message (in this case in a directory named ñ) :

scala-cli(11470,0x10a418580) malloc: Non-aligned pointer 0x10f9c7648 being freed

scala-cli(11470,0x10a418580) malloc: *** set a breakpoint in malloc_error_break to debug

Abort trap: 6

This bug has occurred every time I've ran scala-cli compile . -w command in a directory containing non-ASCII characters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    --watchIssues tied to watching sourcesMacOSIssues tied to the Apple MacOS platform.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions