GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Compilation: "buffer overflow detected"
Compilation: "buffer overflow detected" [message #8465] Fri, 08 May 2009 11:08 Go to next message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: *to.infn.it
Hello,

Trying to install Pandaroot on an Ubuntu 8.10 system in Torino there are strange problems. Only the Mvd compilation is affected and there only the libMvdReco. The automatic backtracing points to rootcint:
Toggle Spoiler

To exclude many things this was done with a fresh installation of fairsoft and the trunk version 5454 of pandaroot.

When doing the make command a second time the rest of the project compiles, but the libMvdReco is screwed.

Has anybody of you encountered this "*** buffer overflow detected ***" message before?

Greetings, Ralf.

[Updated on: Fri, 08 May 2009 11:10]

Report message to a moderator

Re: Compilation: "buffer overflow detected" [message #8466 is a reply to message #8465] Fri, 08 May 2009 11:26 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: 119.95.80*
Hi Ralf

Please have a look into thefollowing discussion on the Root mailing list. Maybe this helps to solve the problem.

http://root.cern.ch/phpBB2/viewtopic.php?t=8021&postdays=0&posto rder=asc&start=0

Ciao

Florian
Re: Compilation: "buffer overflow detected" [message #8468 is a reply to message #8465] Fri, 08 May 2009 15:06 Go to previous messageGo to next message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: *to.infn.it
Hi Florian,

Looks like we have too long map variable names for some systems. Here what the root guys did:
"pcanal"

Hi,

The problem is most likely the triple!!! nested map:
map<unsigned int,map<string,map<unsigned int,short> > *>

When CINT explicits the 3rd and 4th argument of the maps, the total size name is more than 512 characters!

To solve the problem you need to #define G__LONGBUF
in G__ci.h (and recompile root).

Cheers,
Philippe.


Well, we're trying that (I'll report the result).
It is right, that the Mvd code has exactly such kind of nested vectors/maps. Unfortunately the file exists 4 times in root.


Ralf.

[Updated on: Thu, 04 June 2009 11:33]

Report message to a moderator

Re: Compilation: "buffer overflow detected" [message #8749 is a reply to message #8465] Wed, 03 June 2009 08:32 Go to previous messageGo to next message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: *to.infn.it
Hello,

This dirty fix actually works.
Just to inform you.


Ralf.
Re: Compilation: "buffer overflow detected" [message #8775 is a reply to message #8465] Thu, 04 June 2009 11:11 Go to previous messageGo to next message
Dmitry Khaneft is currently offline  Dmitry Khaneft
Messages: 75
Registered: January 2009
continuous participant
From: *in2p3.fr
I tried install pandaroot 5713 on ubuntu 9.04 and I still have the same error.

Toggle Spoiler

[Updated on: Thu, 04 June 2009 11:27]

Report message to a moderator

Re: Compilation: "buffer overflow detected" [message #8776 is a reply to message #8465] Thu, 04 June 2009 11:32 Go to previous message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: *to.infn.it
Hi Dmitry,

This bug is not fixed inside pandaroot. You need to search in fairsoft/tools/root for all 4 files named G__ci.h and add the line
#define G__LONGBUF
there. Then recompile root e.g. by doing
fairsoft> ./configure
again (this time it's not so long).

Kind regards, Ralf.

Previous Topic: Pandaroot compilation error on Ubuntu9.04
Next Topic: Problems with g4libs in qa macros
Goto Forum:
  


Current Time: Tue Oct 15 02:48:17 CEST 2024

Total time taken to generate the page: 0.00736 seconds