POV-Ray : Newsgroups : povray.beta-test : splinefollow : Re: splinefollow Server Time
26 Apr 2024 07:27:04 EDT (-0400)
  Re: splinefollow  
From: ThH
Date: 27 Feb 2016 08:33:50
Message: <56d1a5be$1@news.povray.org>
Am 27.02.2016 um 14:04 schrieb Le_Forgeron:

> I can confirm for the master branch ( 3.7.1-alpha.8497793.unofficial )
>
> Segmentation fault (core dumped)

Thank you for checking and confirming Le_Forgeron :)

> No such problem on stable branch, and not yet either on my two branches.
> So, it's new, it's fresh... (less than a year old)
>
> traced to se.resize()
>
> void mkfree(GenericSpline * sp, SplineEntryList::size_type i)
> {
>      SplineEntryList::size_type j;
>      SplineEntryList& se = sp->SplineEntries;
>
>      se.resize(se.size()+1);
>      for (j=sp->SplineEntries.size()-1; j>i; j--)
>          se[j] = se[j-1];
> }
>
> But it might be due to a previous memory corruption because the
> segfault is due to malloc.c, a code that is safe as long as memory is
> not corrupted.
>
> I would bet for, somewhere else, a write out of allocated area.

This part is for real coders, right? At least I can read it but am not 
understanding it ;)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.