Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
G
graphviz
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 696
    • Issues 696
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 19
    • Merge Requests 19
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • graphviz
  • graphviz
  • Issues
  • #1914

Closed
Open
Opened Dec 26, 2020 by Vithanco@vithanco

textfont_freef in textspan.c creates error

Steps to reproduce

I run graphviz as static libraries. I call In order to circumvent #1520 I call text font_dict_open after calling gvNEWcontext.

GVC_t * gvc =  gvNEWcontext(&lt_preloaded_symbols[0], 5);
gvAddLibrary(gvc, &gvplugin_dot_layout_LTX_library);
gvAddLibrary(gvc, &gvplugin_neato_layout_LTX_library);
gvAddLibrary(gvc, &gvplugin_quartz_LTX_library);
textfont_dict_open(gvc);  // this is a workaround due to https://gitlab.com/graphviz/graphviz/issues/1520

Expected Behaviour

library properly initiated - like it used to.

Actual Behaviour

The code seem to fail in textfont_freef - which looks harmless to me:

static void textfont_freef(Dt_t* dt, void* obj, Dtdisc_t* disc)
{
    textfont_t *f = (textfont_t*)obj;

    if (f->name) free(f->name);
    if (f->color) free(f->color);
    free(f);
}

Any ideas? Should it even be called?

OS Version

MacOS Big Sur 11.1. The problem only occurs for x86_64 architecture and not on the new arm64 - which makes this really odd. I did work previously, so it seems to be something related to Big Sur.

Graphviz Version

graphviz-2.44.1

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: graphviz/graphviz#1914