Message: Re: double free or corruption (out) Issue Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: double free or corruption (out) Issue 

Forum: Run Management
Re: Question double free or corruption (out) Issue (David)
Re: None Re: double free or corruption (out) Issue (Makoto Asai)
Re: None Re: double free or corruption (out) Issue (Tom Roberts)
Re: Ok Re: double free or corruption (out) Issue (Tom Roberts)
Date: 17 Dec, 2013
From: Michael H. Kelsey <Michael H. Kelsey>

On Tue, 17 Dec 2013 19:28:40 GMT, Tom Roberts wrote:
> Using the Geant4 internal version of CLHEP fixed/avoided two problems:
>  1. The crash while closing discussed in this thread.
>  2. A build problem with CLHEP 2.1.3.1 on a supercomputer (apparently
>     CLHEP now has MPI code, which failed to compile).
> 
> Remarkably, the Geant4 internal version of CLHEP has everything my
> program needs; the version of Evaluator is recent enough to not have the
> unary-minus bugs that plagued earlier versions. So I have removed my own
> build of CLHEP from my Makefile-s, and am using the Geant4 internal
> version.

In a sibling thread in this topic (http://hypernews.slac.stanford.edu/HyperNews/geant4/get/runmanage/362/2/1/1/1/1.html), Makoto noted that the original user's code had an uninitialized pointer which the dtor tried to delete (hence the "corruption" part of the error message). Is it possible that either your code, or the CLHEP class you were using, had a similar issue?

I've had a similar experience, where Linux will complain about exactly this problem, either at compile time (with -Wall) or at runtime (with a crash), but not my MacBook. I finally figured out that the Mac seems to have GCC configured to automatically initialize memory to zero, which masked this delete-uninitialized-pointer bug in my code.

  -- Michael Kelsey

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: double free or corruption (out) Issue   (David - 17 Dec, 2013)
 Add Message Add Message
to: "Re: double free or corruption (out) Issue"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]