Skip to content

segmentation fault #26943

@Jengro777

Description

@Jengro777

Describe the bug

#26928
Due to attempts to reduce code duplication, the issue was fixed, but in reality, the segmentation fault in the project still persists. I have uploaded the entire project here

#26929
We tried to fix it before, and the project could be compiled normally, but CI reported too many errors and was closed

__

Note: This project can run normally in v0.5.0

Reproduction Steps

backend.zip

v -o app ./main

Expected Behavior

success

Current Behavior

segmentation fault v -o app ./main

Possible Solution

No response

Additional Information/Context

backend/service/core_tenant_api
backend/service/sys_admin_api

The code in these two directories should be the root cause of the segmentation fault

V version

V 0.5.1 b469eb9

Environment details (OS name and version, etc.)

V full version V 0.5.1 1b3385c.45e8bb2
OS macos, macOS, 13.2.1, 22D68
Processor 8 cpus, 64bit, little endian, Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
Memory 0.2GB/8GB
V executable /Applications/v/v
V last modified time 2026-04-22 13:34:42
V home dir OK, value: /Applications/v
VMODULES OK, value: /Users/avey/.vmodules
VTMP OK, value: /tmp/v_501
Current working dir OK, value: /Users/avey/Documents/Dev/RuoQi/RuoQi-v/backend
env LDFLAGS "-L/usr/local/opt/openssl@3/lib"
Git version git version 2.50.0
V git status 0.5.1-1211-g45e8bb2c
.git/config present true
cc version Apple clang version 14.0.3 (clang-1403.0.22.14.1)
gcc version Apple clang version 14.0.3 (clang-1403.0.22.14.1)
clang version Apple clang version 14.0.3 (clang-1403.0.22.14.1)
tcc version tcc version 0.9.27 (x86_64 Darwin)
tcc git status thirdparty-macos-amd64 975f1ad8
emcc version N/A
glibc version N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis tag is applied to issues which reports bugs.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions