Invalid call to PyList_New #39202

Closed
opened 2014-03-15 13:55:39 +01:00 by jrp · 4 comments
jrp commented 2014-03-15 13:55:39 +01:00 (Migrated from localhost:3001)

System Information
Win 8.1 x64, Visual Studio 2013

Blender Version
Broken: Latest repository version

PyAPI_FUNC(PyObject *) PyList_New(Py_ssize_t size) is called with int argc and generates an invalid pointer reference at line 300 of bpy_interface.c. At least one part of the problem may be that on x64 int and Py_ssize_t are not interchangeable.

Reproduce bystarting up blender, detected by running Intel SDE:

    D:\Projects\sde-external-6.22.0-2014-03-06-win>sde  -null_check 1 -ptr_check 1 -ptr_check_warn 1  -- d:\BlenderGIT\build_cmake\bin\RelWithDebInfo\blender.exe
    AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead
    found bundled python: d:\BlenderGIT\build_cmake\bin\RelWithDebInfo\2.70\python
    SDE ERROR: DEREFERENCING BAD MEMORY POINTER PC=0x1e15fa40 MEMEA=0xb055bdc22ff8 mov rcx, qword ptr [rbx-0x8]

This seems to cause no visible problems when blender is run outside SDE.

**System Information** Win 8.1 x64, Visual Studio 2013 **Blender Version** Broken: Latest repository version PyAPI_FUNC(PyObject *) PyList_New(Py_ssize_t size) is called with int argc and generates an invalid pointer reference at line 300 of bpy_interface.c. At least one part of the problem may be that on x64 int and Py_ssize_t are not interchangeable. **Reproduce by**starting up blender, detected by running Intel SDE: ``` D:\Projects\sde-external-6.22.0-2014-03-06-win>sde -null_check 1 -ptr_check 1 -ptr_check_warn 1 -- d:\BlenderGIT\build_cmake\bin\RelWithDebInfo\blender.exe AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead found bundled python: d:\BlenderGIT\build_cmake\bin\RelWithDebInfo\2.70\python SDE ERROR: DEREFERENCING BAD MEMORY POINTER PC=0x1e15fa40 MEMEA=0xb055bdc22ff8 mov rcx, qword ptr [rbx-0x8] ``` This seems to cause no visible problems when blender is run outside SDE.
jrp commented 2014-03-15 13:55:39 +01:00 (Migrated from localhost:3001)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Campbell Barton was assigned by blender-admin 2014-03-15 13:55:39 +01:00
jrp commented 2014-03-15 13:55:39 +01:00 (Migrated from localhost:3001)
Author

Added subscriber: @jrp

Added subscriber: @jrp

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

This is a warning from an error detection tool, not a bug.

Python's memory allocation system raises false-positives with memory validation tools such as valgrind, I suspect this is the cause.

closing.

If you manage to cause buggy behavior, we can look into it - but this has been working as intended for years.


Note, we do appreciate developers testing for bugs with tools like this, but if you report bugs please make sure you can redo buggy behavior too.

This is a warning from an error detection tool, not a bug. Python's memory allocation system raises false-positives with memory validation tools such as valgrind, I suspect this is the cause. closing. If you manage to cause buggy behavior, we can look into it - but this has been working as intended for years. ---- Note, we do appreciate developers testing for bugs with tools like this, but if you report bugs please make sure you can redo buggy behavior too.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#39202
No description provided.