Skip to content

UBSAN: runtime error: member access within null pointer of type #1061

@JohnSmithBH84

Description

@JohnSmithBH84

I’ve scanned Effekseer with UBSAN and it has triggered on Effekseer/Examples/OpenGL/DeviceGLFW.cpp line 98. I'm not sure whether this is an actual issue, or whether code of Effekseer is too sophisticated for UBSAN to understand. Do you guys have any idea?

Project version

Effekseer: master

Operating system

compiler: gcc (Debian 12.2.0-14) 12.2.0

Ubuntu 22.04.4 LTS
Linux 5.15.0-125-generic #135-Ubuntu SMP Fri Sep 27 13:53:58 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

I did this

Launched Effekseer/build/Examples/CustomLoader/Example_CustomLoader

I expected the following

No problem reported by UBSAN

I got the following

Effekseer/build/Examples/CustomLoader/Example_CustomLoader
Effekseer/Examples/OpenGL/DeviceGLFW.cpp:98:65: runtime error: member access within null pointer of type 'struct Renderer'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions