GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » [NOTABUG] Linking to libField.so causes seg violation (My minimal example programme crashes when linked to the fopiROOT libField)
[NOTABUG] Linking to libField.so causes seg violation [message #18629] Mon, 02 November 2015 18:20 Go to next message
Philipp Bielefeldt is currently offline  Philipp Bielefeldt
Messages: 5
Registered: August 2015
Location: Universität Bonn
occasional visitor

From: *privacyfoundation.ch
Hi everyone,

I have a strange behaviour with fopiROOT/FairROOT: I have a minimal helloworld example (MickeyMouse.cc), that I can compile and use... as long as I do not link its executable to fopiROOTs .../build/lib/libField.so.0 -- if so, the execution will crash with a segmentation violation. To the best of my knowledge, this does not happen if I link it to another library in FairROOT, but I haven't tried every possible combination^^.

Is this a known behaviour? Has anyone tried to link to the .so's with success? Am I doing s.th. wrong?

Attached, there are my CMakeLists.txt, where l. 63 triggers the crash, and the Valgrind log, with ll. 96 ff. pointing to an error in PndFieldContFact.cxx. I am using revision 28577 of https://subversion.gsi.de/fairroot/fopiroot/trunk on a CentOS 7 machine with CMake 2.8.11.

Any help is welcomed! Cheers,
Philipp

[Updated on: Wed, 03 February 2016 23:34] by Moderator

Report message to a moderator

Re: Linking to libField.so causes seg violation [message #18630 is a reply to message #18629] Mon, 02 November 2015 18:30 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *netrun.cytanet.com.cy
Which version of FairSoft or FairRoot are you using? libField is normally loaded by pandaroot, but we moved to the new git packages and the instalaltion scheme has changed, while it seems you are using some obsolete version.
Re: Linking to libField.so causes seg violation [message #18631 is a reply to message #18630] Mon, 02 November 2015 18:41 Go to previous messageGo to next message
Philipp Bielefeldt is currently offline  Philipp Bielefeldt
Messages: 5
Registered: August 2015
Location: Universität Bonn
occasional visitor

From: *privacyfoundation.ch
Hi,

I am using mar15 of FairROOT.
Re: Linking to libField.so causes seg violation [message #18632 is a reply to message #18631] Tue, 03 November 2015 09:20 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *netrun.cytanet.com.cy
You mean for for FairSoft and for FairRot? Do you have a "base" folder inside your repository?
Re: Linking to libField.so causes seg violation [message #18633 is a reply to message #18632] Tue, 03 November 2015 10:05 Go to previous messageGo to next message
Philipp Bielefeldt is currently offline  Philipp Bielefeldt
Messages: 5
Registered: August 2015
Location: Universität Bonn
occasional visitor

From: *cb.uni-bonn.de
Hi,

sorry, not quite sure what you asked for -- is there an official version number? How would I determine it?
Meanwhile, here's the result of some "svn info":

Working Copy Root Path: ~/g2fopiroot
URL: https://subversion.gsi.de/fairroot/fopiroot/trunk
Repository Root: https://subversion.gsi.de/fairroot
Repository UUID: 0381ead4-6506-0410-b988-94b70fbc4730
Revision: 28577
Node Kind: directory
Schedule: normal
Last Changed Author: sdorheim
Last Changed Rev: 28425
Last Changed Date: 2015-09-01 14:25:59 +0200 (Tue, 01 Sep 2015)


Working Copy Root Path: ~/g2fopiroot/base
URL: https://subversion.gsi.de/fairroot/fairbase/release/base
Repository Root: https://subversion.gsi.de/fairroot
Repository UUID: 0381ead4-6506-0410-b988-94b70fbc4730
Revision: 15199
Node Kind: directory
Schedule: normal
Last Changed Author: karabowi
Last Changed Rev: 15197
Last Changed Date: 2012-04-03 12:06:01 +0200 (Tue, 03 Apr 2012)


Working Copy Root Path: ~/g2fopiroot/field
URL: https://subversion.gsi.de/fairroot/pandaroot/trunk/field
Repository Root: https://subversion.gsi.de/fairroot
Repository UUID: 0381ead4-6506-0410-b988-94b70fbc4730
Revision: 13982
Node Kind: directory
Schedule: normal
Last Changed Author: turany
Last Changed Rev: 11527
Last Changed Date: 2011-04-13 15:48:58 +0200 (Wed, 13 Apr 2011)

Best regards!
Re: Linking to libField.so causes seg violation [message #18634 is a reply to message #18633] Tue, 03 November 2015 10:21 Go to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *netrun.cytanet.com.cy
Pandaroot repository has moved to FairSoft and FairRoot from git repository, while it seems you are still using the old svn base repository. This could produce your problem,
Previous Topic: [FIXED] mar15 - problem with intallation
Next Topic: [FIXED] Cannot run sample macros
Goto Forum:
  


Current Time: Wed Dec 04 21:58:39 CET 2024

Total time taken to generate the page: 0.00901 seconds