Segmentation violation in c++ programm but only on 64 bit

Hi,

I have a very crazy problem with a c++ program which only reads in a file and does some operations. When compiling in ROOT 5.25.4 on a 32bit system and then running it there is no problem but if compile it on a 64 bit system it crashes with a segmentation violation when executed.
What I found out until now is that is has something to do with ifstream as at this point the program crashes. I managed to create debug information:

Converting run2837_cluster.hit to run2837_cluster.root *** glibc detected *** /home/users/adonai/ROOT_5.25.4/root/bin/root.exe: malloc(): memory corruption: 0x00000000027d0c20 *** ======= Backtrace: ========= /lib/libc.so.6[0x7ff8c9ac6948] /lib/libc.so.6[0x7ff8c9ac917c] /lib/libc.so.6(__libc_malloc+0x98)[0x7ff8c9acaa78] /usr/lib/libstdc++.so.6(_Znwm+0x1d)[0x7ff8ca522b9d] /usr/lib/libstdc++.so.6(_Znam+0x9)[0x7ff8ca522cd9] /home/users/adonai/ROOT_5.25.4/root/lib/libCore.so(_ZN10TStringRef6GetRepEii+0x44)[0x7ff8cbb467b4] /home/users/adonai/ROOT_5.25.4/root/lib/libCore.so(_ZN7TStringC1EPKc+0x40)[0x7ff8cbb48550] /home/users/adonai/ROOT_5.25.4/root/lib/libRIO.so(_ZN5TFileC1EPKcS1_S1_i+0xaf)[0x7ff8c881d44f] /home/users/adonai/./hit2tree_cpp.so(_Z8hit2treePKc+0x217)[0x7ff8c2fed1be] /home/users/adonai/./hit2tree_cpp.so[0x7ff8c2fed824] /home/users/adonai/ROOT_5.25.4/root/lib/libCint.so(_ZN4Cint19G__ExceptionWrapperEPFiP8G__valuePKcP8G__paramiES1_PcS5_i+0x42)[0x7ff8caff10c2] /home/users/adonai/ROOT_5.25.4/root/lib/libCint.so(G__execute_call+0x60)[0x7ff8cb09eaa0] /home/users/adonai/ROOT_5.25.4/root/lib/libCint.so(G__call_cppfunc+0x1f4)[0x7ff8cb0a02c4] /home/users/adonai/ROOT_5.25.4/root/lib/libCint.so(G__interpret_func+0x1f0d)[0x7ff8cb07ba1d] /home/users/adonai/ROOT_5.25.4/root/lib/libCint.so(G__getfunction+0x21df)[0x7ff8cb06aaaf] /home/users/adonai/ROOT_5.25.4/root/lib/libCint.so(G__getitem+0x81a)[0x7ff8cb03d55a] /home/users/adonai/ROOT_5.25.4/root/lib/libCint.so(G__getexpr+0x34f0)[0x7ff8cb041500] /home/users/adonai/ROOT_5.25.4/root/lib/libCint.so(G__exec_statement+0x589f)[0x7ff8cb0cc9ef] /home/users/adonai/ROOT_5.25.4/root/lib/libCint.so[0x7ff8cb028ef9] /home/users/adonai/ROOT_5.25.4/root/lib/libCint.so(G__exec_tempfile_fp+0xe)[0x7ff8cb02919e] /home/users/adonai/ROOT_5.25.4/root/lib/libCint.so(G__process_cmd+0x1059)[0x7ff8cb0d9ab9] /home/users/adonai/ROOT_5.25.4/root/lib/libCore.so(_ZN5TCint11ProcessLineEPKcPN12TInterpreter10EErrorCodeE+0x3f5)[0x7ff8cbbc6035] /home/users/adonai/ROOT_5.25.4/root/lib/libCore.so(_ZN12TApplication11ProcessLineEPKcbPi+0x7b4)[0x7ff8cbaf9754] /home/users/adonai/ROOT_5.25.4/root/lib/libRint.so(_ZN5TRint15HandleTermInputEv+0x1bf)[0x7ff8ca97ddbf] /home/users/adonai/ROOT_5.25.4/root/lib/libCore.so(_ZN11TUnixSystem16CheckDescriptorsEv+0x184)[0x7ff8cbbd82e4] /home/users/adonai/ROOT_5.25.4/root/lib/libCore.so(_ZN11TUnixSystem16DispatchOneEventEb+0xe0)[0x7ff8cbbd8900] /home/users/adonai/ROOT_5.25.4/root/lib/libCore.so(_ZN7TSystem9InnerLoopEv+0x16)[0x7ff8cbb571f6] /home/users/adonai/ROOT_5.25.4/root/lib/libCore.so(_ZN7TSystem3RunEv+0x7c)[0x7ff8cbb5935c] /home/users/adonai/ROOT_5.25.4/root/lib/libCore.so(_ZN12TApplication3RunEb+0x1f)[0x7ff8cbaf73df] /home/users/adonai/ROOT_5.25.4/root/lib/libRint.so(_ZN5TRint3RunEb+0x358)[0x7ff8ca97f718] /home/users/adonai/ROOT_5.25.4/root/bin/root.exe(main+0x4d)[0x40115d] /lib/libc.so.6(__libc_start_main+0xe6)[0x7ff8c9a711a6] /home/users/adonai/ROOT_5.25.4/root/bin/root.exe(__gxx_personality_v0+0x69)[0x401029] ======= Memory map: ======== 00400000-00402000 r-xp 00000000 fe:00 96489200 /home/users/adonai/ROOT_5.25.4/root/bin/root.exe 00601000-00602000 rw-p 00001000 fe:00 96489200 /home/users/adonai/ROOT_5.25.4/root/bin/root.exe 01eb7000-02944000 rw-p 00000000 00:00 0 [heap] 7ff8bc000000-7ff8bc021000 rw-p 00000000 00:00 0 7ff8bc021000-7ff8c0000000 ---p 00000000 00:00 0 7ff8c2fea000-7ff8c2fef000 r-xp 00000000 fe:00 43598480 /home/users/adonai/hit2tree_cpp.so 7ff8c2fef000-7ff8c31ee000 ---p 00005000 fe:00 43598480 /home/users/adonai/hit2tree_cpp.so 7ff8c31ee000-7ff8c31ef000 rw-p 00004000 fe:00 43598480 /home/users/adonai/hit2tree_cpp.so 7ff8c31ef000-7ff8c322c000 rw-p 00000000 00:00 0 7ff8c322c000-7ff8c3235000 r-xp 00000000 08:02 330384 /usr/lib/libXcursor.so.1.0.2 7ff8c3235000-7ff8c3435000 ---p 00009000 08:02 330384 /usr/lib/libXcursor.so.1.0.2 7ff8c3435000-7ff8c3436000 rw-p 00009000 08:02 330384 /usr/lib/libXcursor.so.1.0.2 7ff8c3436000-7ff8c345b000 r-xp 00000000 fe:00 96489189 /home/users/adonai/ROOT_5.25.4/root/lib/libGX11TTF.so 7ff8c345b000-7ff8c365b000 ---p 00025000 fe:00 96489189 /home/users/adonai/ROOT_5.25.4/root/lib/libGX11TTF.so 7ff8c365b000-7ff8c365d000 rw-p 00025000 fe:00 96489189 /home/users/adonai/ROOT_5.25.4/root/lib/libGX11TTF.so 7ff8c365d000-7ff8c3dc5000 r-xp 00000000 fe:00 96489154 /home/users/adonai/ROOT_5.25.4/root/lib/libGui.so 7ff8c3dc5000-7ff8c3fc5000 ---p 00768000 fe:00 96489154 /home/users/adonai/ROOT_5.25.4/root/lib/libGui.so 7ff8c3fc5000-7ff8c4021000 rw-p 00768000 fe:00 96489154 /home/users/adonai/ROOT_5.25.4/root/lib/libGui.so 7ff8c4021000-7ff8c4030000 rw-p 00000000 00:00 0 7ff8c4030000-7ff8c4057000 r-xp 00000000 08:02 330847 /usr/lib/libexpat.so.1.5.2 7ff8c4057000-7ff8c4257000 ---p 00027000 08:02 330847 /usr/lib/libexpat.so.1.5.2 7ff8c4257000-7ff8c4259000 rw-p 00027000 08:02 330847 /usr/lib/libexpat.so.1.5.2 7ff8c4259000-7ff8c425e000 r-xp 00000000 08:02 329986 /usr/lib/libXdmcp.so.6.0.0 7ff8c425e000-7ff8c445d000 ---p 00005000 08:02 329986 /usr/lib/libXdmcp.so.6.0.0 7ff8c445d000-7ff8c445e000 rw-p 00004000 08:02 329986 /usr/lib/libXdmcp.so.6.0.0 7ff8c445e000-7ff8c4467000 r-xp 00000000 08:02 330025 /usr/lib/libXrender.so.1.3.0 7ff8c4467000-7ff8c4666000 ---p 00009000 08:02 330025 /usr/lib/libXrender.so.1.3.0 7ff8c4666000-7ff8c4667000 rw-p 00008000 08:02 330025 /usr/lib/libXrender.so.1.3.0 7ff8c4667000-7ff8c467d000 r-xp 00000000 08:02 328648 /usr/lib/libz.so.1.2.3.3 7ff8c467d000-7ff8c487d000 ---p 00016000 08:02 328648 /usr/lib/libz.so.1.2.3.3 7ff8c487d000-7ff8c487e000 rw-p 00016000 08:02 328648 /usr/lib/libz.so.1.2.3.3 7ff8c487e000-7ff8c48fd000 r-xp 00000000 08:02 330002 /usr/lib/libfreetype.so.6.3.18 7ff8c48fd000-7ff8c4afc000 ---p 0007f000 08:02 330002 /usr/lib/libfreetype.so.6.3.18 7ff8c4afc000-7ff8c4b02000 rw-p 0007e000 08:02 330002 /usr/lib/libfreetype.so.6.3.18 7ff8c4b02000-7ff8c4b32000 r-xp 00000000 08:02 330004 /usr/lib/libfontconfig.so.1.3.0 7ff8c4b32000-7ff8c4d31000 ---p 00030000 08:02 330004 /usr/lib/libfontconfig.so.1.3.0 7ff8c4d31000-7ff8c4d33000 rw-p 0002f000 08:02 330004 /usr/lib/libfontconfig.so.1.3.0 7ff8c4d33000-7ff8c4d4e000 r-xp 00000000 08:02 329988 /usr/lib/libxcb.so.1.0.0 7ff8c4d4e000-7ff8c4f4e000 ---p 0001b000 08:02 329988 /usr/lib/libxcb.so.1.0.0 7ff8c4f4e000-7ff8c4f4f000 rw-p 0001b000 08:02 329988 /usr/lib/libxcb.so.1.0.0 7ff8c4f4f000-7ff8c4f50000 r-xp 00000000 08:02 329990 /usr/lib/libxcb-xlib.so.0.0.0 7ff8c4f50000-7ff8c514f000 ---p 00001000 08:02 329990 /usr/lib/libxcb-xlib.so.0.0.0 7ff8c514f000-7ff8c5150000 rw-p 00000000 08:02 329990 /usr/lib/libxcb-xlib.so.0.0.0 7ff8c5150000-7ff8c5152000 r-xp 00000000 08:02 329984 /usr/lib/libXau.so.6.0.0 7ff8c5152000-7ff8c5351000 ---p 00002000 08:02 329984 /usr/lib/libXau.so.6.0.0 7ff8c5351000-7ff8c5352000 rw-p 00001000 08:02 329984 /usr/lib/libXau.so.6.0.0 7ff8c5352000-7ff8c5366000 r-xp 00000000 08:02 330027 /usr/lib/libXft.so.2.1.2 7ff8c5366000-7ff8c5565000 ---p 00014000 08:02 330027 /usr/lib/libXft.so.2.1.2 7ff8c5565000-7ff8c5566000 rw-p 00013000 08:02 330027 /usr/lib/libXft.so.2.1.2 7ff8c5566000-7ff8c566c000 r-xp 00000000 08:02 329992 /usr/lib/libX11.so.6.2.0 7ff8c566c000-7ff8c586c000 ---p 00106000 08:02 329992 /usr/lib/libX11.so.6.2.0 7ff8c586c000-7ff8c5872000 rw-p 00106000 08:02 329992 /usr/lib/libX11.so.6.2.0 7ff8c5872000-7ff8c5882000 r-xp 00000000 08:02 330012 /usr/lib/libXext.so.6.4.0 7ff8c5882000-7ff8c5a82000 ---p 00010000 08:02 330012 /usr/lib/libXext.so.6.4.0 7ff8c5a82000-7ff8c5a83000 rw-p 00010000 08:02 330012 /usr/lib/libXext.so.6.4.0 7ff8c5a83000-7ff8c5a93000 r-xp 00000000 08:02 330020 /usr/lib/libXpm.so.4.11.0 7ff8c5a93000-7ff8c5c93000 ---p 00010000 08:02 330020 /usr/lib/libXpm.so.4.11.0 7ff8c5c93000-7ff8c5c94000 rw-p 00010000 08:02 330020 /usr/lib/libXpm.so.4.11.0 7ff8c5c94000-7ff8c5ccc000 r-xp 00000000 fe:00 96489188 /home/users/adonai/ROOT_5.25.4/root/lib/libGX11.so 7ff8c5ccc000-7ff8c5ecc000 ---p 00038000 fe:00 96489188 /home/users/adonai/ROOT_5.25.4/root/lib/libGX11.so 7ff8c5ecc000-7ff8c5ecf000 rw-p 00038000 fe:00 96489188 /home/users/adonai/ROOT_5.25.4/root/lib/libGX11.so 7ff8c5ecf000-7ff8c5ee4000 rw-p 00000000 00:00 0 7ff8c5ee4000-7ff8c60e1000 r-xp 00000000 fe:00 96489157 /home/users/adonai/ROOT_5.25.4/root/lib/libTreePlayer.so 7ff8c60e1000-7ff8c62e1000 ---p 001fd000 fe:00 96489157 /home/users/adonai/ROOT_5.25.4/root/lib/libTreePlayer.so 7ff8c62e1000-7ff8c62ef000 rw-p 001fd000 fe:00 96489157 /home/users/adonai/ROOT_5.25.4/root/lib/libTreePlayer.so 7ff8c62ef000-7ff8c62f4000 rw-p 00000000 00:00 0 7ff8c62f4000-7ff8c6418000 r-xp 00000000 fe:00 96489153 /home/users/adonai/ROOT_5.25.4/root/lib/libGraf3d.so 7ff8c6418000-7ff8c6618000 ---p 00124000 fe:00 96489153 /home/users/adonai/ROOT_5.25.4/root/lib/libGraf3d.so 7ff8c6618000-7ff8c6624000 rw-p 00124000 fe:00 96489153 /home/users/adonai/ROOT_5.25.4/root/lib/libGraf3d.so 7ff8c6624000-7ff8c6628000 rw-p 00000000 00:00 0 7ff8c6628000-7ff8c6713000 r-xp 00000000 fe:00 96489152 /home/users/adonai/ROOT_5.25.4/root/lib/libGpad.so 7ff8c6713000-7ff8c6913000 ---p 000eb000 fe:00 96489152 /home/users/adonai/ROOT_5.25.4/root/lib/libGpad.so 7ff8c6913000-7ff8c691e000 rw-p 000eb000 fe:00 96489152 /home/users/adonai/ROOT_5.25.4/root/lib/libGpad.so 7ff8c691e000-7ff8c6920000 rw-p 00000000 00:00 0 7ff8c6920000-7ff8c6b31000 r-xp 00000000 fe:00 96489151 /home/users/adonai/ROOT_5.25.4/root/lib/libGraf.so 7ff8c6b31000-7ff8c6d30000 ---p 00211000 fe:00 96489151 /home/users/adonai/ROOT_5.25.4/root/lib/libGraf.so 7ff8c6d30000-7ff8c6d44000 rw-p 00210000 fe:00 96489151 /home/users/adonai/ROOT_5.25.4/root/lib/libGraf.so 7ff8c6d44000-7ff8c6d51000 rw-p 00000000 00:00 0 7ff8c6d51000-7ff8c71a8000 r-xp 00000000 fe:00 96489149 /home/users/adonai/ROOT_5.25.4/root/lib/libHist.so 7ff8c71a8000-7ff8c73a7000 ---p 00457000 fe:00 96489149 /home/users/adonai/ROOT_5.25.4/root/lib/libHist.so 7ff8c73a7000-7ff8c73cd000 rw-p 00456000 fe:00 96489149 /home/users/adonai/ROOT_5.25.4/root/lib/libHist.so 7ff8c73cd000-7ff8c73d2000 rw-p 00000000 00:00 0 7ff8c73d2000-7ff8c762a000 r-xp 00000000 fe:00 96489148 /home/users/adonai/ROOT_5.25.4/root/lib/libMatrix.so 7ff8c762a000-7ff8c7829000 ---p 00258000 fe:00 96489148 /home/users/adonai/ROOT_5.25.4/root/lib/libMatrix.so 7ff8c7829000-7ff8c7837000 rw-p 00257000 fe:00 96489148 /home/users/adonai/ROOT_5.25.4/root/lib/libMatrix.so 7ff8c7837000-7ff8c783b000 rw-p 00000000 00:00 0 7ff8c783b000-7ff8c7a3e000 r-xp 00000000 fe:00 96489150 /home/users/adonai/ROOT_5.25.4/root/lib/libTree.so 7ff8c7a3e000-7ff8c7c3e000 ---p 00203000 fe:00 96489150 /home/users/adonai/ROOT_5.25.4/root/lib/libTree.so 7ff8c7c3e000-7ff8c7c51000 rw-p 00203000 fe:00 96489150 /home/users/adonai/ROOT_5.25.4/root/lib/libTree.so 7ff8c7c51000-7ff8c7c54000 rw-p 00000000 00:00 0 7ff8c7c54000-7ff8c7d80000 r-xp 00000000 fe:00 96489146 /home/users/adonai/ROOT_5.25.4/root/lib/libNet.so 7ff8c7d80000-7ff8c7f80000 ---p 0012c000 fe:00 96489146 /home/users/adonai/ROOT_5.25.4/root/lib/libNet.so 7ff8c7f80000-7ff8c7f8d000 rw-p 0012c000 fe:00 96489146 /home/users/adonai/ROOT_5.25.4/root/lib/libNet.so 7ff8c7f8d000-7ff8c7f90000 rw-p 00000000 00:00 0 7ff8c7f90000-7ff8c7fe2000 r-xp 00000000 fe:00 96489147 /home/users/adonai/ROOT_5.25.4/root/lib/libThread.so 7ff8c7fe2000-7ff8c81e1000 ---p 00052000 fe:00 96489147 /home/users/adonai/ROOT_5.25.4/root/lib/libThread.so 7ff8c81e1000-7ff8c81e6000 rw-p 00051000 fe:00 96489147 /home/users/adonai/ROOT_5.25.4/root/lib/libThread.so 7ff8c81e6000-7ff8c81e7000 rw-p 00000000 00:00 0 7ff8c81e7000-7ff8c820d000 r-xp 00000000 fe:00 96489134 /home/users/adonai/ROOT_5.25.4/root/lib/libvectorDict.so 7ff8c820d000-7ff8c840c000 ---p 00026000 fe:00 96489134 /home/users/adonai/ROOT_5.25.4/root/lib/libvectorDict.so 7ff8c840c000-7ff8c840e000 rw-p 00025000 fe:00 96489134 /home/users/adonai/ROOT_5.25.4/root/lib/libvectorDict.so 7ff8c840e000-7ff8c840f000 rw-p 00000000 00:00 0 7ff8c840f000-7ff8c85b9000 r-xp 00000000 fe:00 96463352 /home/users/adonai/ROOT_5.25.4/root/cint/cint/stl/vector.dll 7ff8c85b9000-7ff8c87b9000 ---p 001aa000 fe:00 96463352 /home/users/adonai/ROOT_5.25.4/root/cint/cint/stl/vector.dll 7ff8c87b9000-7ff8c87c0000 rw-p 001aa000 fe:00 96463352 /home/users/adonai/ROOT_5.25.4/root/cint/cint/stl/vector.dll 7ff8c87c0000-7ff8c894f000 r-xp 00000000 fe:00 96489144 /home/users/adonai/ROOT_5.25.4/root/lib/libRIO.so 7ff8c894f000-7ff8c8b4f000 ---p 0018f000 fe:00 96489144 /home/users/adonai/ROOT_5.25.4/root/lib/libRIO.so 7ff8c8b4f000-7ff8c8b57000 rw-p 0018f000 fe:00 96489144 /home/users/adonai/ROOT_5.25.4/root/lib/libRIO.so 7ff8c8b57000-7ff8c8b59000 rw-p 00000000 00:00 0 7ff8c8b59000-7ff8c8b64000 r-xp 00000000 fe:00 43598461 /home/users/adonai/HitData_cpp.so 7ff8c8b64000-7ff8c8d63000 ---p 0000b000 fe:00 43598461 /home/users/adonai/HitData_cpp.so 7ff8c8d63000-7ff8c8d64000 rw-p 0000a000 fe:00 43598461 /home/users/adonai/HitData_cpp.so 7ff8c8d64000-7ff8c8da1000 rw-p 00000000 00:00 0 7ff8c8da1000-7ff8c8da6000 r-xp 00000000 fe:00 43598459 /home/users/adonai/ClusterHit_t_h.so 7ff8c8da6000-7ff8c8fa6000 ---p 00005000 fe:00 43598459 /home/users/adonai/ClusterHit_t_h.so 7ff8c8fa6000-7ff8c8fa7000 rw-p 00005000 fe:00 43598459 /home/users/adonai/ClusterHit_t_h.so 7ff8c8fa7000-7ff8c8fe4000 rw-p 00000000 00:00 0 7ff8c8fe4000-7ff8c8fee000 r-xp 00000000 08:02 295772 /lib/libnss_files-2.7.so 7ff8c8fee000-7ff8c91ee000 ---p 0000a000 08:02 295772 /lib/libnss_files-2.7.so 7ff8c91ee000-7ff8c91f0000 rw-p 0000a000 08:02 295772 /lib/libnss_files-2.7.so 7ff8c91f0000-7ff8c91fa000 r-xp 00000000 08:02 295782 /lib/libnss_nis-2.7.so 7ff8c91fa000-7ff8c93f9000 ---p 0000a000 08:02 295782 /lib/libnss_nis-2.7.so 7ff8c93f9000-7ff8c93fb000 rw-p 00009000 08:02 295782 /lib/libnss_nis-2.7.so 7ff8c93fb000-7ff8c9410000 r-xp 00000000 08:02 295651 /lib/libnsl-2.7.so 7ff8c9410000-7ff8c960f000 ---p 00015000 08:02 295651 /lib/libnsl-2.7.so 7ff8c960f000-7ff8c9611000 rw-p 00014000 08:02 295651 /lib/libnsl-2.7.so 7ff8c9611000-7ff8c9613000 rw-p 00000000 00:00 0 7ff8c9613000-7ff8c961a000 r-xp 00000000 08:02 295731 /lib/libnss_compat-2.7.so 7ff8c961a000-7ff8c9819000 ---p 00007000 08:02 295731 /lib/libnss_compat-2.7.so 7ff8c9819000-7ff8c981b000 rw-p 00006000 08:02 295731 /lib/libnss_compat-2.7.so 7ff8c981b000-7ff8c9823000 r-xp 00000000 08:02 295659 /lib/libcrypt-2.7.so 7ff8c9823000-7ff8c9a23000 ---p 00008000 08:02 295659 /lib/libcrypt-2.7.so 7ff8c9a23000-7ff8c9a25000 rw-p 00008000 08:02 295659 /lib/libcrypt-2.7.so 7ff8c9a25000-7ff8c9a53000 rw-p 00000000 00:00 0 7ff8c9a53000-7ff8c9b9d000 r-xp 00000000 08:02 295663 /lib/libc-2.7.so 7ff8c9b9d000-7ff8c9d9c000 ---p 0014a000 08:02 295663 /lib/libc-2.7.so 7ff8c9d9c000-7ff8c9d9f000 r--p 00149000 08:02 295663 /lib/libc-2.7.so 7ff8c9d9f000-7ff8c9da1000 rw-p 0014c000 08:02 295663 /lib/libc-2.7.so 7ff8c9da1000-7ff8c9da6000 rw-p 00000000 00:00 0 7ff8c9da6000-7ff8c9dbc000 r-xp 00000000 08:02 295768 /lib/libpthread-2.7.so 7ff8c9dbc000-7ff8c9fbc000 ---p 00016000 08:02 295768 /lib/libpthread-2.7.so 7ff8c9fbc000-7ff8c9fbe000 rw-p 00016000 08:02 295768 /lib/libpthread-2.7.so 7ff8c9fbe000-7ff8c9fc2000 rw-p 00000000 00:00 0 7ff8c9fc2000-7ff8c9fd8000 r-xp 00000000 08:02 295730 /lib/libgcc_s.so.1 7ff8c9fd8000-7ff8ca1d8000 ---p 00016000 08:02 295730 /lib/libgcc_s.so.1 7ff8ca1d8000-7ff8ca1d9000 rw-p 00016000 08:02 295730 /lib/libgcc_s.so.1 7ff8ca1d9000-7ff8ca25b000 r-xp 00000000 08:02 295749 /lib/libm-2.7.so 7ff8ca25b000-7ff8ca45a000 ---p 00082000 08:02 295749 /lib/libm-2.7.so 7ff8ca45a000-7ff8ca45c000 rw-p 00081000 08:02 295749 /lib/libm-2.7.so 7ff8ca45c000-7ff8ca54d000 r-xp 00000000 08:02 328757 /usr/lib/libstdc++.so.6.0.10 7ff8ca54d000-7ff8ca74c000 ---p 000f1000 08:02 328757 /usr/lib/libstdc++.so.6.0.10 7ff8ca74c000-7ff8ca752000 r--p 000f0000 08:02 328757 /usr/lib/libstdc++.so.6.0.10 7ff8ca752000-7ff8ca755000 rw-p 000f6000 08:02 328757 /usr/lib/libstdc++.so.6.0.10 7ff8ca755000-7ff8ca768000 rw-p 00000000 00:00 0 7ff8ca768000-7ff8ca76a000 r-xp 00000000 08:02 295649 /lib/libdl-2.7.so 7ff8ca76a000-7ff8ca96a000 ---p 00002000 08:02 295649 /lib/libdl-2.7.so 7ff8ca96a000-7ff8ca96c000 rw-p 00002000 08:02 295649 /lib/libdl-2.7.so 7ff8ca96c000-7ff8ca99c000 r-xp 00000000 fe:00 96489162 /home/users/adonai/ROOT_5.25.4/root/lib/libRint.so 7ff8ca99c000-7ff8cab9b000 ---p 00030000 fe:00 96489162 /home/users/adonai/ROOT_5.25.4/root/lib/libRint.so 7ff8cab9b000-7ff8cab9e000 rw-p 0002f000 fe:00 96489162 /home/users/adonai/ROOT_5.25.4/root/lib/libRint.so 7ff8cab9e000-7ff8cad8b000 r-xp 00000000 fe:00 96489145 /home/users/adonai/ROOT_5.25.4/root/lib/libMathCore.so 7ff8cad8b000-7ff8caf8a000 ---p 001ed000 fe:00 96489145 /home/users/adonai/ROOT_5.25.4/root/lib/libMathCore.so 7ff8caf8a000-7ff8caf97000 rw-p 001ec000 fe:00 96489145 /home/users/adonai/ROOT_5.25.4/root/lib/libMathCore.so 7ff8caf97000-7ff8caf9b000 rw-p 00000000 00:00 0 7ff8caf9b000-7ff8cb1f5000 r-xp 00000000 fe:00 96488900 /home/users/adonai/ROOT_5.25.4/root/lib/libCint.so 7ff8cb1f5000-7ff8cb3f4000 ---p 0025a000 fe:00 96488900 /home/users/adonai/ROOT_5.25.4/root/lib/libCint.so 7ff8cb3f4000-7ff8cb3fc000 rw-p 00259000 fe:00 96488900 /home/users/adonai/ROOT_5.25.4/root/lib/libCint.so 7ff8cb3fc000-7ff8cb945000 rw-p 00000000 00:00 0 7ff8cb945000-7ff8cc0bc000 r-xp 00000000 fe:00 96489198 /home/users/adonai/ROOT_5.25.4/root/lib/libCore.so 7ff8cc0bc000-7ff8cc2bb000 ---p 00777000 fe:00 96489198 /home/users/adonai/ROOT_5.25.4/root/lib/libCore.so 7ff8cc2bb000-7ff8cc2f5000 rw-p 00776000 fe:00 96489198 /home/users/adonai/ROOT_5.25.4/root/lib/libCore.so 7ff8cc2f5000-7ff8cc374000 rw-p 00000000 00:00 0 7ff8cc374000-7ff8cc390000 r-xp 00000000 08:02 295713 /lib/ld-2.7.so 7ff8cc44a000-7ff8cc44f000 r-xp 00000000 08:02 329994 /usr/lib/libXfixes.so.3.1.0 7ff8cc44f000-7ff8cc54e000 ---p 00005000 08:02 329994 /usr/lib/libXfixes.so.3.1.0 7ff8cc54e000-7ff8cc54f000 rw-p 00004000 08:02 329994 /usr/lib/libXfixes.so.3.1.0 7ff8cc55a000-7ff8cc55b000 rw-p 00000000 00:00 0 7ff8cc55b000-7ff8cc56e000 r--p 00000000 fe:00 96454030 /home/users/adonai/ROOT_5.25.4/root/fonts/arialbd.ttf 7ff8cc56e000-7ff8cc580000 rw-p 00000000 00:00 0 7ff8cc580000-7ff8cc58f000 rw-p 00000000 00:00 0 7ff8cc58f000-7ff8cc591000 rw-p 0001b000 08:02 295713 /lib/ld-2.7.so 7fff22578000-7fff225b8000 rw-p 00000000 00:00 0 [stack] 7fff225ff000-7fff22600000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

and here is the programm when run after compilation crashes:

[code]
#include “./ClusterHit_t.h”
#include “./HitData.h”
#include
#include
#include “TFile.h”
#include “TTree.h”
#include “TString.h”
#include “TROOT.h”
#include "TH1D.h"
using namespace std;

TH1D hit2tree(const char filename)
{

ifstream infile(filename, ios::in | ios::binary);

int recsize = sizeof(ClusterHit_t);

char *buf = new char[recsize];

ClusterHit_t* readfit = new(buf) ClusterHit_t;

HitData* writefit = 0;


TString outname(filename);
outname.ReplaceAll(".hit",".root");
cout << endl << "Converting " << filename << " to " << outname.Data() << endl;
TFile* fout = new TFile(outname.Data(),"RECREATE");
TTree* tout = new TTree("tapv","APV hits");
tout->Bronch("hits","HitData",&writefit);

int evno = 0;
int oldevno = 0;
int nevhits = 0;
int hitcount = 0;
int eventcount = 0;
int misscount = 0;

TH1D *eventsize = new TH1D("hevsize","event size",100,0,100);

while (infile.good() && eventcount>-1) {
    infile.read(buf,recsize);
    evno = readfit->eventno;
	if (evno==oldevno) nevhits++;
    else 
	{ // new event
        if (oldevno%1000==0) cout << "\xd" << "-> Processed " << oldevno << " events..." << flush;
		if (evno-oldevno>1) misscount += evno-oldevno-1;
		eventsize->Fill(readfit->numberhits);
        oldevno = evno;
		eventcount++;
        nevhits = 0;
    }
    if (writefit) delete writefit;
    writefit = new HitData(readfit);

    tout->Fill();
    hitcount++;
}
cout << "\xd" << "-> Processed " << evno << " events..." << flush;

cout << endl << "-> Finished... " << hitcount << " records(Hits); " << eventcount << " events ("<< evno << " in total); " << "(" << misscount << " event numbers missing)" << endl;
cout << endl;
tout->Write(); 
fout->Flush();
delete fout;
delete [] buf;
delete writefit;
infile.close();
return eventsize;

}[/code]

… hopefully there are some ideas to get this program up and running on a 64 bit system.

BR

Erik

You forgot to post your include files and input data set.
Did you generate a dictionary for your classes?
Could you try your script when commenting the line “tout->Fill()” ?

Rene

Sorry,

so, there they are:

CluserterHit_t.h:

[code]
#ifndef CLUSTERHIT_T
#define CLUSTERHIT_T

#define MAX_SUBEVENTS 6 // maximum number of samples in one readout buffer
#define MAX_HITS_PER_EVENT 200 // maximum number of hits per event
#define MAX_CLUSTERWIDTH 20 // maximum cluster width

#define P_SIDE 0 // p-side of the sensor
#define N_SIDE 1 // n-side of the sensor

#pragma pack(4)

typedef struct {
unsigned long eventno; // APVDAQ event number
unsigned char numberofsubevents; // number of samples in this event
unsigned short numberhits; // total number of hits (clumps) in this event

unsigned char hitbegin; // sample number of the begin of the hit
unsigned char hitlength; // number of samples of this hit
unsigned short first_strip; // first strip of the cluster
unsigned char clwidth; // cluster width
double center_strip; // center-of-gravity of the cluster (counted in strip units)
double center_coord; // coordinate of the center strip

unsigned char side; // sensor side, P_SIDE = 0, N_SIDE = 1
unsigned char module; // module number (internal=0,1,…)
unsigned char zone; // zone number (internal=0,1,…)

unsigned short tlueventnumber; // TLU event number (was previously reserved2)

double eta; // eta of cluster peak
double clnoise; // calibrated cluster noise

double reserved; // used for calibration constant

double clsigcal[MAX_SUBEVENTS]; // calibrated cluster signal of all subevents

double tdc; // time of digital conversion

double strsigcal[MAX_CLUSTERWIDTH][MAX_SUBEVENTS]; // calibrated strip signal of all samples
double strnoise [MAX_CLUSTERWIDTH]; // calibrated strip noise

} ClusterHit_t;

ClusterHit_t clhits[MAX_HITS_PER_EVENT]; // cluster hits of the current event

#endif[/code]

HitData.h:

[code]#ifndef HITDATA
#define HITDATA

#include “Rtypes.h”
#include “ClusterHit_t.h”

class HitData
{
public:

	double strip2x(double strip);			//function to convert a factional strip number to a position on the sensor [in microns] (only for Hephy SILC08 sensor, has to be modified otherwise)
	double x2strip(double x);				//function to convert a position on the sensor [in microns] to factional strip number (only for Hephy SILC08 sensor, has to be modified otherwise)

	unsigned long eventno;					// master event number
	unsigned char numberofsubevents;		// number of subevents in this master event
	unsigned short numberhits;				// total number of hits (clumps) in this event

	unsigned char hitbegin;					// subevent number of the begin of the hit
	unsigned char hitlength;				// number of subevents of this hit
	unsigned short first_strip;				// first strip of the cluster
	unsigned char clwidth;					// cluster width

	double center_strip;					// center strip of the cluster
	double center_strip_um;					// center_strip coordinate in um
	double center_coord;					// center of charge [um]
	double center_coord_str;				// center of charge in fractional strip numbers
	
	unsigned char side;						// sensor side, N_SIDE, P_SIDE
	unsigned char module;					// module number (internal=0,1,...)
	unsigned char zone;						// zone number (internal=0,1,...)

	unsigned short tlueventnumber;			// TLU event number

	double eta;								// eta of cluster peak
	double clnoise;							// calibrated cluster noise
	double clsigcal_max;					// maximum sample of clsigcal

	double clsigcal[MAX_SUBEVENTS];			// calibrated cluster signal of all subevents
	   
	double strsigcal[MAX_CLUSTERWIDTH][MAX_SUBEVENTS];	// calibrated strip signal of all samples
	double strnoise [MAX_CLUSTERWIDTH];		// calibrated strip noise

	HitData();								// default constructor
	HitData(const ClusterHit_t* readhit);	// constructor to convert from ClusterHit_t
	HitData(const HitData& other);			// copy constructor
	virtual ~HitData() {}
	
ClassDef(HitData,1) 

};

#endif[/code]

HitData.cpp:

[code]#include
#include
#include “HitData.h”

ClassImp(HitData)

//--------------------------------------------------------------------
double HitData::strip2x(double strip) //function to convert a factional strip number to a position on the sensor [in microns] (only for Hephy SILC08 sensor, has to be modified otherwise)
{
unsigned short ints((unsigned short)strip);
return (50 * (strip + (ints >> 4)) + (((ints+1) & 15) ? 0 : (strip - ints) * 50));
}

//--------------------------------------------------------------------
double HitData::x2strip(double x) //function to convert a position on the sensor [in microns] to factional strip number (only for Hephy SILC08 sensor, has to be modified otherwise)
{
double zone;
double fstr = modf(x/850,&zone)17;
return zone
16+fstr;
}

//--------------------------------------------------------------------
HitData::HitData() //default constructor
{
this->eventno = 0;
this->numberofsubevents = 0;
this->numberhits = 0;

this->hitbegin = 0;
this->hitlength = 0;
this->first_strip = 0;
this->clwidth = 0;

this->center_strip = 0;
this->center_strip_um = 0;
this->center_coord = 0;
this->center_coord_str = 0;

this->side = 0;
this->module = 0;
this->zone = 0;

this->tlueventnumber = 0;

this->eta = 0;
this->clnoise = 0; 
this->clsigcal_max = 0;

for (int i=0; i<MAX_SUBEVENTS; i++) this->clsigcal[i] = 0; 	
		
for (int i=0; i<MAX_CLUSTERWIDTH; i++) {
	for (int j=0; j<MAX_SUBEVENTS; j++) {
        this->strsigcal[i][j] = 0;
    } 
    this->strnoise[i] = 0;
}

}

//--------------------------------------------------------------------
HitData::HitData(const ClusterHit_t* readhit) //constructor to convert from ClusterHit_t
{
this->eventno = readhit->eventno;
this->numberofsubevents = readhit->numberofsubevents;
this->numberhits = readhit->numberhits;

this->hitbegin = readhit->hitbegin;						
this->hitlength = readhit->hitlength;					
this->first_strip = readhit->first_strip;				
this->clwidth = readhit->clwidth;						

this->center_strip = readhit->center_strip;				
this->center_strip_um = strip2x(readhit->center_strip);	
this->center_coord = readhit->center_coord;	
this->center_coord_str = x2strip(readhit->center_coord);			

this->side = readhit->side;								
this->module = readhit->module;							
this->zone = floor(this->center_strip/16);				

this->tlueventnumber = readhit->tlueventnumber;			

this->eta = readhit->eta;								
this->clnoise = readhit->clnoise;						

this->clsigcal_max = 0;

for (int i=0; i<MAX_SUBEVENTS; i++) 
{
	this->clsigcal[i] = readhit->clsigcal[i]; 
	this->clsigcal_max = this->clsigcal[i]>this->clsigcal_max ? this->clsigcal[i] : this->clsigcal_max;
}

for (int i=0; i<MAX_CLUSTERWIDTH; i++) {
	for (int j=0; j<MAX_SUBEVENTS; j++) {
    	this->strsigcal[i][j] = readhit->strsigcal[i][j];
	}
	this->strnoise[i] = readhit->strnoise[i];
}

}

//--------------------------------------------------------------------
HitData::HitData(const HitData& other) //copy constructor
{
this->eventno = other.eventno;
this->numberofsubevents = other.numberofsubevents;
this->numberhits = other.numberhits;

this->hitbegin = other.hitbegin;						
this->hitlength = other.hitlength;						
this->first_strip = other.first_strip;					
this->clwidth = other.clwidth;							

this->center_strip = other.center_strip;				
this->center_strip_um = other.center_strip_um;			
this->center_coord = other.center_coord;				
this->center_coord_str = other.center_coord_str;		

this->side = other.side;								
this->module = other.module;							
this->zone = other.zone;								

this->tlueventnumber = other.tlueventnumber;			

this->eta = other.eta;									
this->clnoise = other.clnoise;							
this->clsigcal_max = other.clsigcal_max;

for (int i=0; i<MAX_SUBEVENTS; i++) this->clsigcal[i] = other.clsigcal[i]; 


for (int i=0; i<MAX_CLUSTERWIDTH; i++) {
	for (int j=0; j<MAX_SUBEVENTS; j++) {
    	this->strsigcal[i][j] = other.strsigcal[i][j];
	}
	this->strnoise[i] = other.strnoise[i];
}

}[/code]

a sample of the data file (run2837_cluster.hit) because its about 160 MB in size and its a binary:

X �0@{~���@ |[@��U�?rT��#h�@�(\�� }@������@��R�?v�@I�(|.��@4���@`��,��@�����@VUUUUK@7���|ؑ@�������@e�2����@Ğ1ʈ��@ہy���@M��\� �@z�s'�@^��/�@=>b���@蛘:��u@��c�i4~�<��寏@ �J��X�@��˔a��@ X *@�v�e�e�@ �C��nP�?���c��@ףp= g~@g�{4��@���z�#�@f�V��@�msI��@1�����@u�}w5��@VUUUUK@ħ>m�8�@����6�@L������@G���3@(0J;i��2e��f���6��@ �8�g��@�H�@1��N��@��Si/�@�4>nȐ�@��g�@p� 7���@yWI,,9�@B�o��C�@%�@ �@��H�@�@ ��$��4�@�$C�-��@+[��C,�@ X �5@��Mđ@ 0bDm@�?x �$��@���(\�@�<��7�@f#>��@ܝc����@ ����(�@�������@��e��@VUUUUK@���mW�d@c�U|m�@��u���@��e��7�@`������@\qa���@�5���@ ��8���@?�N�@&�_~ �@��N�`��@�w��[�@ ܱ+}q�@��i�^'�@ X h @Z@�G6�a��@ ���4�? S� ��@�����o�@�4�q@�@�̨���@B_q�:��@q���W�@S�x�@�*ުq:�@VUUUUK@&8?�P���@���@.�����@I��"4�@�3O����@З}s�3�@F��K��@ii.�`��@��d/;5�@�� �5�@�@��V�@��q���@0���^Y@u�x�R��@�!�a�/�@�+G`��@�� 펷@�ﵣ_��@ �أ���@��& ��@�YU�a�@ X n �[@�ظr �@ �3a6��?���aSא@�z�G�x@<�'?��@�e�-���@�b `��@�A�����@�s����@X܈�ꕺ@VUUUUK@��*�/�@�I:|`��@<4)P���@��6 :�t@q]���a������nt@��R8�@RV%wO��@�"v�ߝ�@s��[8�@������@\"ۣ\)�@/Y-.�@�&����@�߸�@�jn�@J�G�ո@�d֮�ij@ ���u�?�@��ܳ�@8����@ X � i@��0���@ W�&Ä�?x�gqЌ@fffff�x@?\ye@��@lq�m�-�@�)�@#�@v�yt��@R��>D�@;��A�@VUUUUK@���^s�@@`BFw��@�YWy��@f��8V�@z���~��@R�|�QĿ@�s�/yr�@/����%�@�F�+�Τ@�&�)e�@�M.���@ 9�$���@ �O�/�@NH��=��@ X � j@�z��@ a �`F_��?�r�}[��@q= ף�{@���j��@�16����@]༧�O�@0t�c�@,(��`��@�U����@VUUUUK@���j��@�16����@]༧�O�@0t�c�@,(��`��@�U����@ �r�}[��@ X � pj@�s�a��@ a @9b��y�?;Ƙ>jڊ@q= ף�w@hW4��v���X${��@NNu�Y�@��A���@� J����@� �S"�@VUUUUK@4����p��^��̣@s��yn�@#�"6���@�����@2=\w;�@���>��X�?�e�R�@��Q��@��4���@�i���/�@��IP5�@ h���x��@�Y��oO�@ Y a @=�)J& o@ ��%s?�qt�ތ�@= ףp�|@:��u�@��D��#�@X��@���C�U�@—+W���@D����@VUUUUK@:��u�@��D��#�@X��@���C�U�@—+W���@D����@ �qt�ތ�@ Y a @"�+7�h@ �D|Wn��? ����@�z�GQ�@D�g*V:�@y ��e��@CC�[�@�K�u�1�@탱N��@�n�3=�@VUUUUK@l<ܮ�͕@���F ۦ@^�: ��@�'����@���H�@�4 ��.o@g�҄S�@D�����@MbX]��@���'+9�@p6k<�,�@�m˙x��@ �+r-�@\ _�T�@ Y a S U@����`�@ @Ҙ�BQ�?���:;��@ףp= ?�@���wx�@v�3pѩ�@ݯ��B�@c�A�)�@�?�_��@B�br1T�@VUUUUK@�\�S狝@��7 䥬@�u�~��@�%U��@+�������{��)��l�3r�@:MB����@�l[���@�M%�H�@#e��ә�@n;-�p-�@�T��"��@ >q�+\�@��=�S �@��<��z�@IN�5+�l@A��7e�@ ��tc�B�@˞I�K�@ )��e��@ Y a W �U@ �H��@ � ��?��D���@�Q���x@�V�Z�@��h��@�X��c��@�?R_T��@<�X�‡�@Z�E�,b�@VUUUUK@ae��ݗ@� D��d�@xMf����@6h}�e`�@�sN��I�@BNb�k�@4aGG؞@���q�@w��$[�@S�e��~�@V`L��@�d��Aa�@ ꐣ���@�=�@���@ Y a � �e@do+����@ @��Ju�?�ژW�@q= ף`y@�ig�#��@�Ԧ`� �@e�!J6Z�@��e��^�@O��=��@Ew�/X�@VUUUUK@>W.E�@�����@�^��j �@���$�5�@�������@�gD^���@�{ʪ5��@�U�y|�@�e�e��@�b6�h��@T�षο@X]����@

I will try to comment out “tout->Fill()” and post my results.

Regrettably commenting out “tout->Fill()” didn’t change anything.

BR

Erik

Nobody else experiencing these problems? I even tested it on a different 64 bit machine and it produced the same segmentation violation.

I tried it with a simple code and a text file … same error. If I compile the test code using g++ it is working fine.

test.cpp:

[code]#include
#include

using namespace std;

int main() {
//cout << filename;
cout << “test1”;
ifstream infile(“test.txt”);
cout << “test2”;
infile.close();
cout << “test3”;
return 0;
}[/code]

test.txt:

test test test test

BR

Erik

if you want an answer, plrease post the strict minimum required to reproduce your problem,
including a pointer to a place where we can find your input file.

Did you run valgrind on your code?

Why are you doing

int recsize = sizeof(ClusterHit_t); char *buf = new char[recsize]; ClusterHit_t* readfit = new(buf) ClusterHit_t; instead of

ClusterHit_t* readfit = new ClusterHit_t;
Rene

Hi,

I manged to upload the data file to … http://wwwhephy.oeaw.ac.at/u3w/a/adonai/www/

and here is the full output executed with valgrind:

[code]adonai@heros:~/valgrind-3.5.0$ ./vg-in-place --leak-check=full --show-reachable=yes -v root
==5093== Memcheck, a memory error detector
==5093== Copyright © 2002-2009, and GNU GPL’d, by Julian Seward et al.
==5093== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==5093== Command: root
==5093==
–5093-- Valgrind options:
–5093-- --leak-check=full
–5093-- --show-reachable=yes
–5093-- -v
–5093-- Contents of /proc/version:
–5093-- Linux version 2.6.30-bpo.2-amd64 (Debian 2.6.30-7~bpo50+1) (nobse@debian.org) (gcc version 4.3.2 (Debian 4.3.2-1.1) ) #1 SMP Fri Sep 18 11:50:10 UTC 2009
–5093-- Arch and hwcaps: AMD64, amd64-sse3-cx16
–5093-- Page sizes: currently 4096, max supported 4096
–5093-- Valgrind library directory: /home/users/adonai/valgrind-3.5.0/./.in_place
–5093-- Reading syms from /usr/local/ROOT/5.25.02/bin/root (0x400000)
–5093-- Reading syms from /lib/ld-2.7.so (0x4000000)
–5093-- Reading debug info from /lib/ld-2.7.so …
–5093-- … CRC mismatch (computed 049ac48c wanted e760853c)
–5093-- object doesn’t have a symbol table
–5093-- Reading syms from /home/users/adonai/valgrind-3.5.0/memcheck/memcheck-amd64-linux (0x38000000)
–5093-- object doesn’t have a dynamic symbol table
–5093-- Reading suppressions file: /home/users/adonai/valgrind-3.5.0/./.in_place/default.supp
–5093-- Reading syms from /home/users/adonai/valgrind-3.5.0/coregrind/vgpreload_core-amd64-linux.so (0x4a1d000)
–5093-- Reading syms from /home/users/adonai/valgrind-3.5.0/memcheck/vgpreload_memcheck-amd64-linux.so (0x4c1e000)
–5093-- Reading syms from /usr/lib/libXpm.so.4.11.0 (0x4e25000)
–5093-- Reading debug info from /usr/lib/libXpm.so.4.11.0 …
–5093-- … CRC mismatch (computed 28262688 wanted ae3e2197)
–5093-- object doesn’t have a symbol table
–5093-- Reading syms from /usr/lib/libXext.so.6.4.0 (0x5036000)
–5093-- Reading debug info from /usr/lib/libXext.so.6.4.0 …
–5093-- … CRC mismatch (computed b975feb8 wanted b1a68e19)
–5093-- object doesn’t have a symbol table
–5093-- Reading syms from /opt/lib/libX11.so.6.2.0_OLD_FOR_MENTOR (0x30e9800000)
–5093-- object doesn’t have a symbol table
–5093-- Reading syms from /usr/lib/libXft.so.2.1.2 (0x5247000)
–5093-- Reading debug info from /usr/lib/libXft.so.2.1.2 …
–5093-- … CRC mismatch (computed 20a7dc6f wanted 1025514b)
–5093-- object doesn’t have a symbol table
–5093-- Reading syms from /usr/lib/libstdc++.so.6.0.10 (0x545b000)
–5093-- object doesn’t have a symbol table
–5093-- Reading syms from /lib/libm-2.7.so (0x5767000)
–5093-- Reading debug info from /lib/libm-2.7.so …
–5093-- … CRC mismatch (computed 592aa191 wanted 2c037a3d)
–5093-- object doesn’t have a symbol table
–5093-- Reading syms from /lib/libgcc_s.so.1 (0x59ea000)
–5093-- Reading debug info from /lib/libgcc_s.so.1 …
–5093-- … CRC mismatch (computed 8ba8adda wanted 00b79250)
–5093-- object doesn’t have a symbol table
–5093-- Reading syms from /lib/libc-2.7.so (0x5c01000)
–5093-- Reading debug info from /lib/libc-2.7.so …
–5093-- … CRC mismatch (computed 3d44d45b wanted e52ce9af)
–5093-- object doesn’t have a symbol table
–5093-- Reading syms from /usr/lib/libXau.so.6.0.0 (0x5f54000)
–5093-- Reading debug info from /usr/lib/libXau.so.6.0.0 …
–5093-- … CRC mismatch (computed d65cdecf wanted 87e00422)
–5093-- object doesn’t have a symbol table
–5093-- Reading syms from /lib/libdl-2.7.so (0x6156000)
–5093-- Reading debug info from /lib/libdl-2.7.so …
–5093-- … CRC mismatch (computed 466593ca wanted 0a2a8ba8)
–5093-- object doesn’t have a symbol table
–5093-- Reading syms from /usr/lib/libfontconfig.so.1.3.0 (0x635a000)
–5093-- Reading debug info from /usr/lib/libfontconfig.so.1.3.0 …
–5093-- … CRC mismatch (computed cd73dfae wanted 7f66faa7)
–5093-- object doesn’t have a symbol table
–5093-- Reading syms from /usr/lib/libfreetype.so.6.3.18 (0x658b000)
–5093-- object doesn’t have a symbol table
–5093-- Reading syms from /usr/lib/libz.so.1.2.3.3 (0x680f000)
–5093-- Reading debug info from /usr/lib/libz.so.1.2.3.3 …
–5093-- … CRC mismatch (computed b1648a9a wanted bfdb1db0)
–5093-- object doesn’t have a symbol table
–5093-- Reading syms from /usr/lib/libXrender.so.1.3.0 (0x6a26000)
–5093-- Reading debug info from /usr/lib/libXrender.so.1.3.0 …
–5093-- … CRC mismatch (computed b50fc603 wanted 1fdc524f)
–5093-- object doesn’t have a symbol table
–5093-- Reading syms from /usr/lib/libexpat.so.1.5.2 (0x6c2f000)
–5093-- object doesn’t have a symbol table
–5093-- Reading syms from /lib/libpthread-2.7.so (0x6e58000)
–5093-- Reading debug info from /lib/libpthread-2.7.so …
–5093-- … CRC mismatch (computed 72b37325 wanted 44032c05)
–5093-- REDIR: 0x5c7c460 (rindex) redirected to 0x4c21dc0 (rindex)
–5093-- REDIR: 0x5c7c020 (strlen) redirected to 0x4c221e0 (strlen)
–5093-- REDIR: 0x5c7ee10 (strchrnul) redirected to 0x4c23130 (strchrnul)
–5093-- REDIR: 0x5521b80 (operator new(unsigned long)) redirected to 0x4c218eb (operator new(unsigned long))
–5093-- REDIR: 0x5c7deb0 (memcpy) redirected to 0x4c22630 (memcpy)
–5093-- REDIR: 0x5521cd0 (operator new[](unsigned long)) redirected to 0x4c21563 (operator new[](unsigned long))
–5093-- REDIR: 0x5c7bad0 (strcpy) redirected to 0x4c22240 (strcpy)
–5093-- REDIR: 0x5c7d570 (mempcpy) redirected to 0x4c23190 (mempcpy)
–5093-- REDIR: 0x5c35180 (putenv) redirected to 0x4c23350 (putenv)
–5093-- REDIR: 0x5c7b8e0 (index) redirected to 0x4c21e60 (index)
–5093-- REDIR: 0x5c7c110 (strnlen) redirected to 0x4c22190 (strnlen)
–5093-- REDIR: 0x5c7c2c0 (strncmp) redirected to 0x4c22440 (strncmp)
–5093-- REDIR: 0x55203b0 (operator delete) redirected to 0x4c20663 (operator delete)
–5093-- REDIR: 0x5c78680 (calloc) redirected to 0x4c203be (calloc)
–5093-- REDIR: 0x5c789e0 (malloc) redirected to 0x4c210c5 (malloc)
–5093-- REDIR: 0x5c7c390 (strncpy) redirected to 0x4c22310 (strncpy)
–5093-- REDIR: 0x5c769e0 (free) redirected to 0x4c20cd5 (free)
–5093-- REDIR: 0x5c7ba90 (strcmp) redirected to 0x4c224c0 (strcmp)
–5093-- REDIR: 0xffffffffff600400 (???) redirected to 0x380411fd (vgPlain_amd64_linux_REDIR_FOR_vtime)
–5093-- REDIR: 0x5c7cc10 (memchr) redirected to 0x4c225e0 (memchr)
–5093-- REDIR: 0x5c7db80 (stpcpy) redirected to 0x4c22df0 (stpcpy)
–5093-- Reading syms from /lib/libnss_files-2.7.so (0x7474000)
–5093-- Reading debug info from /lib/libnss_files-2.7.so …
–5093-- … CRC mismatch (computed b9d84b39 wanted e9f346ab)
–5093-- object doesn’t have a symbol table
–5093-- REDIR: 0x5c7ecf0 (rawmemchr) redirected to 0x4c23170 (rawmemchr)
–5093-- REDIR: 0x5c7b720 (strcat) redirected to 0x4c21fa0 (strcat)
–5093-- REDIR: 0x5c7d460 (memset) redirected to 0x4c23060 (memset)
–5093-- REDIR: 0x5c7d2b0 (memmove) redirected to 0x4c230d0 (memmove)
–5093-- REDIR: 0xffffffffff600000 (???) redirected to 0x380411f3 (vgPlain_amd64_linux_REDIR_FOR_vgettimeofday)


  •                                     *                                                                                                              
    
  •    W E L C O M E  to  R O O T       *                                                                                                              
    
  •                                     *                                                                                                              
    
  • Version 5.25/02 29 September 2009 *
  •                                     *                                                                                                              
    
  • You are welcome to visit our Web site *
  •      http://root.cern.ch            *                                                                                                              
    
  •                                     *                                                                                                              
    

ROOT 5.25/02 (trunk@30530, Sep 29 2009, 15:28:19 on linuxx8664gcc)

CINT/ROOT C/C++ Interpreter version 5.17.00, Dec 21, 2008
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] .L …/hit2tree/ClusterHit_t.h++g
Info in TUnixSystem::ACLiC: creating shared library /home/users/adonai/valgrind-3.5.0/./…/hit2tree/ClusterHit_t_h.so
root [1] .L …/hit2tree/HitData.cpp++g
Info in TUnixSystem::ACLiC: creating shared library /home/users/adonai/valgrind-3.5.0/./…/hit2tree/HitData_cpp.so
root [2] .L …/hit2tree/hit2tree.cpp++g
Info in TUnixSystem::ACLiC: creating shared library /home/users/adonai/valgrind-3.5.0/./…/hit2tree/hit2tree_cpp.so
root [3] hit2tree("…/hit2tree/run2837_cluster.hit")
test1
test2
test3
test4
test5
test6
test7
*** glibc detected *** /usr/local/ROOT/5.25.02/bin/root.exe: malloc(): memory corruption: 0x00000000016cb530 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f844045b948]
/lib/libc.so.6[0x7f844045e17c]
/lib/libc.so.6(__libc_malloc+0x98)[0x7f844045fa78]
/usr/lib/libstdc++.so.6(_Znwm+0x1d)[0x7f8440eb7b9d]
/usr/lib/libstdc++.so.6(_Znam+0x9)[0x7f8440eb7cd9]
/usr/local/ROOT/5.25.02/lib/libCore.so(_ZN10TStringRef6GetRepEii+0x44)[0x7f84424d3a74]
/usr/local/ROOT/5.25.02/lib/libCore.so(_ZN7TString7ReplaceEiiPKci+0xc5)[0x7f84424d6a45]
/usr/local/ROOT/5.25.02/lib/libCore.so(_ZN4TUrl8FindFileEPcb+0x19f)[0x7f84424fe8df]
/usr/local/ROOT/5.25.02/lib/libCore.so(_ZN4TUrl6SetUrlEPKcb+0x359)[0x7f84424fec99]
/usr/local/ROOT/5.25.02/lib/libCore.so(_ZN4TUrlC1EPKcb+0xee)[0x7f84424ff0be]
/usr/local/ROOT/5.25.02/lib/libRIO.so(_ZN5TFileC1EPKcS1_S1_i+0x73)[0x7f843f1b4b63]
/home/users/adonai/valgrind-3.5.0/./…/hit2tree/hit2tree_cpp.so(_Z8hit2treePKc+0x1cb)[0x7f843a2d9172]
/home/users/adonai/valgrind-3.5.0/./…/hit2tree/hit2tree_cpp.so[0x7f843a2d9806]
/usr/local/ROOT/5.25.02/lib/libCint.so(_ZN4Cint19G__ExceptionWrapperEPFiP8G__valuePKcP8G__paramiES1_PcS5_i+0x42)[0x7f844197e002]
/usr/local/ROOT/5.25.02/lib/libCint.so(G__execute_call+0x60)[0x7f8441a2bb20]
/usr/local/ROOT/5.25.02/lib/libCint.so(G__call_cppfunc+0x1f4)[0x7f8441a2d344]
/usr/local/ROOT/5.25.02/lib/libCint.so(G__interpret_func+0x1f0d)[0x7f8441a08aed]
/usr/local/ROOT/5.25.02/lib/libCint.so(G__getfunction+0x21df)[0x7f84419f7b7f]
/usr/local/ROOT/5.25.02/lib/libCint.so(G__getitem+0x81a)[0x7f84419ca48a]
/usr/local/ROOT/5.25.02/lib/libCint.so(G__getexpr+0x34f0)[0x7f84419ce430]
/usr/local/ROOT/5.25.02/lib/libCint.so(G__exec_statement+0x589f)[0x7f8441a597cf]
/usr/local/ROOT/5.25.02/lib/libCint.so[0x7f84419b5e29]
/usr/local/ROOT/5.25.02/lib/libCint.so(G__exec_tempfile_fp+0xe)[0x7f84419b60ce]
/usr/local/ROOT/5.25.02/lib/libCint.so(G__process_cmd+0x1059)[0x7f8441a66899]
/usr/local/ROOT/5.25.02/lib/libCore.so(_ZN5TCint11ProcessLineEPKcPN12TInterpreter10EErrorCodeE+0x3f5)[0x7f8442552cf5]
/usr/local/ROOT/5.25.02/lib/libCore.so(_ZN12TApplication11ProcessLineEPKcbPi+0x7b4)[0x7f8442486584]
/usr/local/ROOT/5.25.02/lib/libRint.so(_ZN5TRint15HandleTermInputEv+0x1bf)[0x7f8441312d6f]
/usr/local/ROOT/5.25.02/lib/libCore.so(_ZN11TUnixSystem16CheckDescriptorsEv+0x184)[0x7f8442564f34]
/usr/local/ROOT/5.25.02/lib/libCore.so(_ZN11TUnixSystem16DispatchOneEventEb+0xe0)[0x7f8442565230]
/usr/local/ROOT/5.25.02/lib/libCore.so(_ZN7TSystem9InnerLoopEv+0x16)[0x7f84424e4556]
/usr/local/ROOT/5.25.02/lib/libCore.so(_ZN7TSystem3RunEv+0x7c)[0x7f84424e66bc]
/usr/local/ROOT/5.25.02/lib/libCore.so(_ZN12TApplication3RunEb+0x1f)[0x7f844248430f]
/usr/local/ROOT/5.25.02/lib/libRint.so(_ZN5TRint3RunEb+0x358)[0x7f84413146a8]
/usr/local/ROOT/5.25.02/bin/root.exe(main+0x4d)[0x40115d]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f84404061a6]
/usr/local/ROOT/5.25.02/bin/root.exe(__gxx_personality_v0+0x69)[0x401029]
======= Memory map: ========
00400000-00402000 r-xp 00000000 08:02 542114 /usr/local/ROOT/5.25.02/bin/root.exe
00601000-00602000 rw-p 00001000 08:02 542114 /usr/local/ROOT/5.25.02/bin/root.exe
0125e000-01ab8000 rw-p 00000000 00:00 0 [heap]
30e9800000-30e98f3000 r-xp 00000000 08:02 279077 /opt/lib/libX11.so.6.2.0_OLD_FOR_MENTOR
30e98f3000-30e99f3000 —p 000f3000 08:02 279077 /opt/lib/libX11.so.6.2.0_OLD_FOR_MENTOR
30e99f3000-30e99f9000 rw-p 000f3000 08:02 279077 /opt/lib/libX11.so.6.2.0_OLD_FOR_MENTOR
7f8434000000-7f8434021000 rw-p 00000000 00:00 0
7f8434021000-7f8438000000 —p 00000000 00:00 0
7f843a2d6000-7f843a2db000 r-xp 00000000 fe:00 96501805 /home/users/adonai/hit2tree/hit2tree_cpp.so
7f843a2db000-7f843a4da000 —p 00005000 fe:00 96501805 /home/users/adonai/hit2tree/hit2tree_cpp.so
7f843a4da000-7f843a4db000 rw-p 00004000 fe:00 96501805 /home/users/adonai/hit2tree/hit2tree_cpp.so
7f843a4db000-7f843a518000 rw-p 00000000 00:00 0
7f843a518000-7f843a521000 r-xp 00000000 08:02 330384 /usr/lib/libXcursor.so.1.0.2
7f843a521000-7f843a721000 —p 00009000 08:02 330384 /usr/lib/libXcursor.so.1.0.2
7f843a721000-7f843a722000 rw-p 00009000 08:02 330384 /usr/lib/libXcursor.so.1.0.2
7f843a722000-7f843a747000 r-xp 00000000 08:02 477268 /usr/local/ROOT/5.25.02/lib/libGX11TTF.so
7f843a747000-7f843a947000 —p 00025000 08:02 477268 /usr/local/ROOT/5.25.02/lib/libGX11TTF.so
7f843a947000-7f843a949000 rw-p 00025000 08:02 477268 /usr/local/ROOT/5.25.02/lib/libGX11TTF.so
7f843a949000-7f843b0b1000 r-xp 00000000 08:02 477167 /usr/local/ROOT/5.25.02/lib/libGui.so
7f843b0b1000-7f843b2b0000 —p 00768000 08:02 477167 /usr/local/ROOT/5.25.02/lib/libGui.so
7f843b2b0000-7f843b30c000 rw-p 00767000 08:02 477167 /usr/local/ROOT/5.25.02/lib/libGui.so
7f843b30c000-7f843b31b000 rw-p 00000000 00:00 0
7f843b31b000-7f843b342000 r-xp 00000000 08:02 330847 /usr/lib/libexpat.so.1.5.2
7f843b342000-7f843b542000 —p 00027000 08:02 330847 /usr/lib/libexpat.so.1.5.2
7f843b542000-7f843b544000 rw-p 00027000 08:02 330847 /usr/lib/libexpat.so.1.5.2
7f843b544000-7f843b54d000 r-xp 00000000 08:02 330025 /usr/lib/libXrender.so.1.3.0
7f843b54d000-7f843b74c000 —p 00009000 08:02 330025 /usr/lib/libXrender.so.1.3.0
7f843b74c000-7f843b74d000 rw-p 00008000 08:02 330025 /usr/lib/libXrender.so.1.3.0
7f843b74d000-7f843b763000 r-xp 00000000 08:02 328648 /usr/lib/libz.so.1.2.3.3
7f843b763000-7f843b963000 —p 00016000 08:02 328648 /usr/lib/libz.so.1.2.3.3
7f843b963000-7f843b964000 rw-p 00016000 08:02 328648 /usr/lib/libz.so.1.2.3.3
7f843b964000-7f843b9e3000 r-xp 00000000 08:02 330002 /usr/lib/libfreetype.so.6.3.18
7f843b9e3000-7f843bbe2000 —p 0007f000 08:02 330002 /usr/lib/libfreetype.so.6.3.18
7f843bbe2000-7f843bbe8000 rw-p 0007e000 08:02 330002 /usr/lib/libfreetype.so.6.3.18
7f843bbe8000-7f843bc18000 r-xp 00000000 08:02 330004 /usr/lib/libfontconfig.so.1.3.0
7f843bc18000-7f843be17000 —p 00030000 08:02 330004 /usr/lib/libfontconfig.so.1.3.0
7f843be17000-7f843be19000 rw-p 0002f000 08:02 330004 /usr/lib/libfontconfig.so.1.3.0
7f843be19000-7f843be1b000 r-xp 00000000 08:02 329984 /usr/lib/libXau.so.6.0.0
7f843be1b000-7f843c01a000 —p 00002000 08:02 329984 /usr/lib/libXau.so.6.0.0
7f843c01a000-7f843c01b000 rw-p 00001000 08:02 329984 /usr/lib/libXau.so.6.0.0
7f843c01b000-7f843c02f000 r-xp 00000000 08:02 330027 /usr/lib/libXft.so.2.1.2
7f843c02f000-7f843c22e000 —p 00014000 08:02 330027 /usr/lib/libXft.so.2.1.2
7f843c22e000-7f843c22f000 rw-p 00013000 08:02 330027 /usr/lib/libXft.so.2.1.2
7f843c22f000-7f843c23f000 r-xp 00000000 08:02 330012 /usr/lib/libXext.so.6.4.0
7f843c23f000-7f843c43f000 —p 00010000 08:02 330012 /usr/lib/libXext.so.6.4.0
7f843c43f000-7f843c440000 rw-p 00010000 08:02 330012 /usr/lib/libXext.so.6.4.0
7f843c440000-7f843c450000 r-xp 00000000 08:02 330020 /usr/lib/libXpm.so.4.11.0
7f843c450000-7f843c650000 —p 00010000 08:02 330020 /usr/lib/libXpm.so.4.11.0
7f843c650000-7f843c651000 rw-p 00010000 08:02 330020 /usr/lib/libXpm.so.4.11.0
7f843c651000-7f843c689000 r-xp 00000000 08:02 477304 /usr/local/ROOT/5.25.02/lib/libGX11.so
7f843c689000-7f843c889000 —p 00038000 08:02 477304 /usr/local/ROOT/5.25.02/lib/libGX11.so
7f843c889000-7f843c88c000 rw-p 00038000 08:02 477304 /usr/local/ROOT/5.25.02/lib/libGX11.so
7f843c88c000-7f843c8a1000 rw-p 00000000 00:00 0
7f843c8a1000-7f843ca90000 r-xp 00000000 08:02 477224 /usr/local/ROOT/5.25.02/lib/libTreePlayer.so
7f843ca90000-7f843cc8f000 —p 001ef000 08:02 477224 /usr/local/ROOT/5.25.02/lib/libTreePlayer.so
7f843cc8f000-7f843cc9c000 rw-p 001ee000 08:02 477224 /usr/local/ROOT/5.25.02/lib/libTreePlayer.so
7f843cc9c000-7f843cca2000 rw-p 00000000 00:00 0
7f843cca2000-7f843cdc6000 r-xp 00000000 08:02 477273 /usr/local/ROOT/5.25.02/lib/libGraf3d.so
7f843cdc6000-7f843cfc6000 —p 00124000 08:02 477273 /usr/local/ROOT/5.25.02/lib/libGraf3d.so
7f843cfc6000-7f843cfd2000 rw-p 00124000 08:02 477273 /usr/local/ROOT/5.25.02/lib/libGraf3d.so
7f843cfd2000-7f843cfd6000 rw-p 00000000 00:00 0
7f843cfd6000-7f843d0c1000 r-xp 00000000 08:02 477188 /usr/local/ROOT/5.25.02/lib/libGpad.so
7f843d0c1000-7f843d2c1000 —p 000eb000 08:02 477188 /usr/local/ROOT/5.25.02/lib/libGpad.so
7f843d2c1000-7f843d2cc000 rw-p 000eb000 08:02 477188 /usr/local/ROOT/5.25.02/lib/libGpad.so
7f843d2cc000-7f843d2ce000 rw-p 00000000 00:00 0
7f843d2ce000-7f843d4df000 r-xp 00000000 08:02 477319 /usr/local/ROOT/5.25.02/lib/libGraf.so
7f843d4df000-7f843d6de000 —p 00211000 08:02 477319 /usr/local/ROOT/5.25.02/lib/libGraf.so
7f843d6de000-7f843d6f2000 rw-p 00210000 08:02 477319 /usr/local/ROOT/5.25.02/lib/libGraf.so
7f843d6f2000-7f843d6ff000 rw-p 00000000 00:00 0
7f843d6ff000-7f843db43000 r-xp 00000000 08:02 477220 /usr/local/ROOT/5.25.02/lib/libHist.so
7f843db43000-7f843dd42000 —p 00444000 08:02 477220 /usr/local/ROOT/5.25.02/lib/libHist.so
7f843dd42000-7f843dd67000 rw-p 00443000 08:02 477220 /usr/local/ROOT/5.25.02/lib/libHist.so
7f843dd67000-7f843dd6c000 rw-p 00000000 00:00 0
7f843dd6c000-7f843dfc4000 r-xp 00000000 08:02 477246 /usr/local/ROOT/5.25.02/lib/libMatrix.so
7f843dfc4000-7f843e1c3000 —p 00258000 08:02 477246 /usr/local/ROOT/5.25.02/lib/libMatrix.so
7f843e1c3000-7f843e1d1000 rw-p 00257000 08:02 477246 /usr/local/ROOT/5.25.02/lib/libMatrix.so
7f843e1d1000-7f843e1d5000 rw-p 00000000 00:00 0
7f843e1d5000-7f843e3d7000 r-xp 00000000 08:02 477197 /usr/local/ROOT/5.25.02/lib/libTree.so
7f843e3d7000-7f843e5d6000 —p 00202000 08:02 477197 /usr/local/ROOT/5.25.02/lib/libTree.so
7f843e5d6000-7f843e5e9000 rw-p 00201000 08:02 477197 /usr/local/ROOT/5.25.02/lib/libTree.so
7f843e5e9000-7f843e5ec000 rw-p 00000000 00:00 0
7f843e5ec000-7f843e718000 r-xp 00000000 08:02 477202 /usr/local/ROOT/5.25.02/lib/libNet.so
7f843e718000-7f843e918000 —p 0012c000 08:02 477202 /usr/local/ROOT/5.25.02/lib/libNet.so
7f843e918000-7f843e925000 rw-p 0012c000 08:02 477202 /usr/local/ROOT/5.25.02/lib/libNet.so
7f843e925000-7f843e928000 rw-p 00000000 00:00 0
7f843e928000-7f843e97a000 r-xp 00000000 08:02 477308 /usr/local/ROOT/5.25.02/lib/libThread.so
7f843e97a000-7f843eb79000 —p 00052000 08:02 477308 /usr/local/ROOT/5.25.02/lib/libThread.so
7f843eb79000-7f843eb7e000 rw-p 00051000 08:02 477308 /usr/local/ROOT/5.25.02/lib/libThread.so
7f843eb7e000-7f843eb7f000 rw-p 00000000 00:00 0
7f843eb7f000-7f843eba5000 r-xp 00000000 08:02 477296 /usr/local/ROOT/5.25.02/lib/libvectorDict.so
7f843eba5000-7f843eda4000 —p 00026000 08:02 477296 /usr/local/ROOT/5.25.02/lib/libvectorDict.so
7f843eda4000-7f843eda6000 rw-p 00025000 08:02 477296 /usr/local/ROOT/5.25.02/lib/libvectorDict.so
7f843eda6000-7f843eda7000 rw-p 00000000 00:00 0
7f843eda7000-7f843ef51000 r-xp 00000000 08:02 476248 /usr/local/ROOT/5.25.02/cint/cint/stl/vector.dll
7f843ef51000-7f843f151000 —p 001aa000 08:02 476248 /usr/local/ROOT/5.25.02/cint/cint/stl/vector.dll
7f843f151000-7f843f158000 rw-p 001aa000 08:02 476248 /usr/local/ROOT/5.25.02/cint/cint/stl/vector.dll
7f843f158000-7f843f2e5000 r-xp 00000000 08:02 477191 /usr/local/ROOT/5.25.02/lib/libRIO.so
7f843f2e5000-7f843f4e4000 —p 0018d000 08:02 477191 /usr/local/ROOT/5.25.02/lib/libRIO.so
7f843f4e4000-7f843f4ed000 rw-p 0018c000 08:02 477191 /usr/local/ROOT/5.25.02/lib/libRIO.so
7f843f4ed000-7f843f4ee000 rw-p 00000000 00:00 0
7f843f4ee000-7f843f4f9000 r-xp 00000000 fe:00 96501803 /home/users/adonai/hit2tree/HitData_cpp.so
7f843f4f9000-7f843f6f8000 —p 0000b000 fe:00 96501803 /home/users/adonai/hit2tree/HitData_cpp.so
7f843f6f8000-7f843f6f9000 rw-p 0000a000 fe:00 96501803 /home/users/adonai/hit2tree/HitData_cpp.so
7f843f6f9000-7f843f736000 rw-p 00000000 00:00 0
7f843f736000-7f843f73b000 r-xp 00000000 fe:00 96501801 /home/users/adonai/hit2tree/ClusterHit_t_h.so
7f843f73b000-7f843f93b000 —p 00005000 fe:00 96501801 /home/users/adonai/hit2tree/ClusterHit_t_h.so
7f843f93b000-7f843f93c000 rw-p 00005000 fe:00 96501801 /home/users/adonai/hit2tree/ClusterHit_t_h.so
7f843f93c000-7f843f979000 rw-p 00000000 00:00 0
7f843f979000-7f843f983000 r-xp 00000000 08:02 295772 /lib/libnss_files-2.7.so
7f843f983000-7f843fb83000 —p 0000a000 08:02 295772 /lib/libnss_files-2.7.so
7f843fb83000-7f843fb85000 rw-p 0000a000 08:02 295772 /lib/libnss_files-2.7.so
7f843fb85000-7f843fb8f000 r-xp 00000000 08:02 295782 /lib/libnss_nis-2.7.so
7f843fb8f000-7f843fd8e000 —p 0000a000 08:02 295782 /lib/libnss_nis-2.7.so
7f843fd8e000-7f843fd90000 rw-p 00009000 08:02 295782 /lib/libnss_nis-2.7.so
7f843fd90000-7f843fda5000 r-xp 00000000 08:02 295651 /lib/libnsl-2.7.so
7f843fda5000-7f843ffa4000 —p 00015000 08:02 295651 /lib/libnsl-2.7.so
7f843ffa4000-7f843ffa6000 rw-p 00014000 08:02 295651 /lib/libnsl-2.7.so
7f843ffa6000-7f843ffa8000 rw-p 00000000 00:00 0
7f843ffa8000-7f843ffaf000 r-xp 00000000 08:02 295731 /lib/libnss_compat-2.7.so
7f843ffaf000-7f84401ae000 —p 00007000 08:02 295731 /lib/libnss_compat-2.7.so
7f84401ae000-7f84401b0000 rw-p 00006000 08:02 295731 /lib/libnss_compat-2.7.so
7f84401b0000-7f84401b8000 r-xp 00000000 08:02 295659 /lib/libcrypt-2.7.so
7f84401b8000-7f84403b8000 —p 00008000 08:02 295659 /lib/libcrypt-2.7.so
7f84403b8000-7f84403ba000 rw-p 00008000 08:02 295659 /lib/libcrypt-2.7.so
7f84403ba000-7f84403e8000 rw-p 00000000 00:00 0
7f84403e8000-7f8440532000 r-xp 00000000 08:02 295663 /lib/libc-2.7.so
7f8440532000-7f8440731000 —p 0014a000 08:02 295663 /lib/libc-2.7.so
7f8440731000-7f8440734000 r–p 00149000 08:02 295663 /lib/libc-2.7.so
7f8440734000-7f8440736000 rw-p 0014c000 08:02 295663 /lib/libc-2.7.so
7f8440736000-7f844073b000 rw-p 00000000 00:00 0
7f844073b000-7f8440751000 r-xp 00000000 08:02 295768 /lib/libpthread-2.7.so
7f8440751000-7f8440951000 —p 00016000 08:02 295768 /lib/libpthread-2.7.so
7f8440951000-7f8440953000 rw-p 00016000 08:02 295768 /lib/libpthread-2.7.so
7f8440953000-7f8440957000 rw-p 00000000 00:00 0
7f8440957000-7f844096d000 r-xp 00000000 08:02 295730 /lib/libgcc_s.so.1
7f844096d000-7f8440b6d000 —p 00016000 08:02 295730 /lib/libgcc_s.so.1
7f8440b6d000-7f8440b6e000 rw-p 00016000 08:02 295730 /lib/libgcc_s.so.1
7f8440b6e000-7f8440bf0000 r-xp 00000000 08:02 295749 /lib/libm-2.7.so
7f8440bf0000-7f8440def000 —p 00082000 08:02 295749 /lib/libm-2.7.so
7f8440def000-7f8440df1000 rw-p 00081000 08:02 295749 /lib/libm-2.7.so
7f8440df1000-7f8440ee2000 r-xp 00000000 08:02 328757 /usr/lib/libstdc++.so.6.0.10
7f8440ee2000-7f84410e1000 —p 000f1000 08:02 328757 /usr/lib/libstdc++.so.6.0.10
7f84410e1000-7f84410e7000 r–p 000f0000 08:02 328757 /usr/lib/libstdc++.so.6.0.10
7f84410e7000-7f84410ea000 rw-p 000f6000 08:02 328757 /usr/lib/libstdc++.so.6.0.10
7f84410ea000-7f84410fd000 rw-p 00000000 00:00 0
7f84410fd000-7f84410ff000 r-xp 00000000 08:02 295649 /lib/libdl-2.7.so
7f84410ff000-7f84412ff000 —p 00002000 08:02 295649 /lib/libdl-2.7.so
7f84412ff000-7f8441301000 rw-p 00002000 08:02 295649 /lib/libdl-2.7.so
7f8441301000-7f8441330000 r-xp 00000000 08:02 477288 /usr/local/ROOT/5.25.02/lib/libRint.so
7f8441330000-7f8441530000 —p 0002f000 08:02 477288 /usr/local/ROOT/5.25.02/lib/libRint.so
7f8441530000-7f8441532000 rw-p 0002f000 08:02 477288 /usr/local/ROOT/5.25.02/lib/libRint.so
7f8441532000-7f8441533000 rw-p 00000000 00:00 0
7f8441533000-7f8441717000 r-xp 00000000 08:02 477256 /usr/local/ROOT/5.25.02/lib/libMathCore.so
7f8441717000-7f8441917000 —p 001e4000 08:02 477256 /usr/local/ROOT/5.25.02/lib/libMathCore.so
7f8441917000-7f8441923000 rw-p 001e4000 08:02 477256 /usr/local/ROOT/5.25.02/lib/libMathCore.so
7f8441923000-7f8441928000 rw-p 00000000 00:00 0
7f8441928000-7f8441b82000 r-xp 00000000 08:02 477263 /usr/local/ROOT/5.25.02/lib/libCint.so
7f8441b82000-7f8441d81000 —p 0025a000 08:02 477263 /usr/local/ROOT/5.25.02/lib/libCint.so
7f8441d81000-7f8441d89000 rw-p 00259000 08:02 477263 /usr/local/ROOT/5.25.02/lib/libCint.so
7f8441d89000-7f84422d2000 rw-p 00000000 00:00 0
7f84422d2000-7f8442a48000 r-xp 00000000 08:02 477312 /usr/local/ROOT/5.25.02/lib/libCore.so
7f8442a48000-7f8442c47000 —p 00776000 08:02 477312 /usr/local/ROOT/5.25.02/lib/libCore.so
7f8442c47000-7f8442c81000 rw-p 00775000 08:02 477312 /usr/local/ROOT/5.25.02/lib/libCore.so
7f8442c81000-7f8442d00000 rw-p 00000000 00:00 0
7f8442d00000-7f8442d1c000 r-xp 00000000 08:02 295713 /lib/ld-2.7.so
7f8442dd6000-7f8442ddb000 r-xp 00000000 08:02 329994 /usr/lib/libXfixes.so.3.1.0
7f8442ddb000-7f8442eda000 —p 00005000 08:02 329994 /usr/lib/libXfixes.so.3.1.0
7f8442eda000-7f8442edb000 rw-p 00004000 08:02 329994 /usr/lib/libXfixes.so.3.1.0
7f8442ee6000-7f8442ee7000 rw-p 00000000 00:00 0
7f8442ee7000-7f8442efa000 r–p 00000000 08:02 492764 /usr/local/ROOT/5.25.02/fonts/arialbd.ttf
7f8442efa000-7f8442f0c000 rw-p 00000000 00:00 0
7f8442f0c000-7f8442f1b000 rw-p 00000000 00:00 0
7f8442f1b000-7f8442f1d000 rw-p 0001b000 08:02 295713 /lib/ld-2.7.so
7fff471fe000-7fff4723d000 rw-p 00000000 00:00 0 [stack]
7fff47333000-7fff47334000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
–5093-- REDIR: 0x5520370 (operator delete(void*)) redirected to 0x4c209e7 (operator delete(void*))
–5093-- Discarding syms at 0x7475fe0-0x747c958 in /lib/libnss_files-2.7.so due to munmap()
==5093==
==5093== HEAP SUMMARY:
==5093== in use at exit: 240 bytes in 4 blocks
==5093== total heap usage: 727 allocs, 723 frees, 762,846 bytes allocated
==5093==
==5093== Searching for pointers to 4 not-freed blocks
==5093== Checked 323,336 bytes
==5093==
==5093== 31 bytes in 1 blocks are still reachable in loss record 1 of 4
==5093== at 0x4C21147: malloc (vg_replace_malloc.c:195)
==5093== by 0x30E984920C: XauFileName (in /opt/lib/libX11.so.6.2.0_OLD_FOR_MENTOR)
==5093== by 0x30E9848FFE: XauGetBestAuthByAddr (in /opt/lib/libX11.so.6.2.0_OLD_FOR_MENTOR)
==5093== by 0x30E981DA50: _X11TransConnectDisplay (in /opt/lib/libX11.so.6.2.0_OLD_FOR_MENTOR)
==5093== by 0x30E9830049: XOpenDisplay (in /opt/lib/libX11.so.6.2.0_OLD_FOR_MENTOR)
==5093== by 0x40378D: PopupLogo(bool) (in /usr/local/ROOT/5.25.02/bin/root)
==5093== by 0x402B4C: main (in /usr/local/ROOT/5.25.02/bin/root)
==5093==
==5093== 33 bytes in 1 blocks are still reachable in loss record 2 of 4
==5093== at 0x4C215E5: operator new[](unsigned long) (vg_replace_malloc.c:264)
==5093== by 0x4026D0: main (in /usr/local/ROOT/5.25.02/bin/root)
==5093==
==5093== 64 bytes in 1 blocks are still reachable in loss record 3 of 4
==5093== at 0x4C21147: malloc (vg_replace_malloc.c:195)
==5093== by 0x5CB9C93: ??? (in /lib/libc-2.7.so)
==5093== by 0x5CBBF88: getaddrinfo (in /lib/libc-2.7.so)
==5093== by 0x30E985D51E: ??? (in /opt/lib/libX11.so.6.2.0_OLD_FOR_MENTOR)
==5093== by 0x30E985E455: _X11TransConnect (in /opt/lib/libX11.so.6.2.0_OLD_FOR_MENTOR)
==5093== by 0x30E981D728: _X11TransConnectDisplay (in /opt/lib/libX11.so.6.2.0_OLD_FOR_MENTOR)
==5093== by 0x30E9830049: XOpenDisplay (in /opt/lib/libX11.so.6.2.0_OLD_FOR_MENTOR)
==5093== by 0x40378D: PopupLogo(bool) (in /usr/local/ROOT/5.25.02/bin/root)
==5093== by 0x402B4C: main (in /usr/local/ROOT/5.25.02/bin/root)
==5093==
==5093== 112 bytes in 1 blocks are still reachable in loss record 4 of 4
==5093== at 0x4C21147: malloc (vg_replace_malloc.c:195)
==5093== by 0x30E985D474: ??? (in /opt/lib/libX11.so.6.2.0_OLD_FOR_MENTOR)
==5093== by 0x30E985E455: _X11TransConnect (in /opt/lib/libX11.so.6.2.0_OLD_FOR_MENTOR)
==5093== by 0x30E981D728: _X11TransConnectDisplay (in /opt/lib/libX11.so.6.2.0_OLD_FOR_MENTOR)
==5093== by 0x30E9830049: XOpenDisplay (in /opt/lib/libX11.so.6.2.0_OLD_FOR_MENTOR)
==5093== by 0x40378D: PopupLogo(bool) (in /usr/local/ROOT/5.25.02/bin/root)
==5093== by 0x402B4C: main (in /usr/local/ROOT/5.25.02/bin/root)
==5093==
==5093== LEAK SUMMARY:
==5093== definitely lost: 0 bytes in 0 blocks
==5093== indirectly lost: 0 bytes in 0 blocks
==5093== possibly lost: 0 bytes in 0 blocks
==5093== still reachable: 240 bytes in 4 blocks
==5093== suppressed: 0 bytes in 0 blocks
==5093==
==5093== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 17)
–5093–
–5093-- used_suppression: 1 dl-hack4-64bit-addr-1
–5093-- used_suppression: 16 dl-hack3-cond-1
==5093==
==5093== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 17)[/code]

I will try

instead of

int recsize = sizeof(ClusterHit_t); char *buf = new char[recsize]; ClusterHit_t* readfit = new(buf) ClusterHit_t;

but the code is working on all 32 bit machines I tried so far.

BR

Erik

What you do cannot work. Your binary input file has been generated on a 32 bit machine and it is not portable/consistent with a 64 bits machine.
The result of infile.read is of course totally wrong.

Rene

char *buf = new char[recsize]; ClusterHit_t* readfit = new(buf) ClusterHit_t; ... infile.read(buf,recsize); literally requires you to read the input file and the same platform as it was written (it might not even work on the same machine with a different compiler) since it blind fully copy the bit representation of the object … This is precisely one of the type of incompatibility that the ROOT file format was designed to solve … i.e. the solution to your problem is to convert the input file into a ROOT file on the original platform and read the ROOT file on the other platforms.

Cheers,
Philippe.

Thanks for your answers.

okay. thats bad.
Is it somehow possible to compile root as 32 bit application on a 64 bit machine?

BR

Erik

[quote]Is it somehow possible to compile root as 32 bit application on a 64 bit machine? [/quote]yes it is, however you would also need to make sure that the processor has the endianess on the reading side as the reading side …

Cheers,
Philippe.

I tried to build root as 32 bit but I don’t know how exactly to do that. Any advice on which parameters to use would be very appreciated.

Humm just ./configure linux
should have done it … (of course make sure you are using either a fresh check-out or did make distclean)

Cheers,
Philippe.