Message: buffer overflow detectedfor example RE02 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question buffer overflow detectedfor example RE02 

Forum: Documentation and Examples
Date: 15 Oct, 2009
From: ychen <ychen>

Hi all, I try to run example RE02. I could compile without error. However, when I run the executable file, I got "buffer overflow detected" and the application was terminated. My system: G4.9.2 ubuntu 9.04

there are the whole msg I got:

<-- RE02DetectorConstruction::Construct-------
  Water Phantom Size (200,200,400)
  Segmentation  (100,100,200)
  Lead plate at even copy # (0-False,1-True): 1
<---------------------------------------------
*** buffer overflow detected ***: ./exampleRE02 terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb6d86da8]
/lib/tls/i686/cmov/libc.so.6[0xb6d84eb0]
/lib/tls/i686/cmov/libc.so.6[0xb6d845a8]
/lib/tls/i686/cmov/libc.so.6(_IO_default_xsputn+0xc8)[0xb6cf6bb8]
/lib/tls/i686/cmov/libc.so.6(_IO_vfprintf+0xf4c)[0xb6cc977c]
/lib/tls/i686/cmov/libc.so.6(__vsprintf_chk+0xa4)[0xb6d84654]
/lib/tls/i686/cmov/libc.so.6(__sprintf_chk+0x2d)[0xb6d8459d]
./exampleRE02[0x805848b]
./exampleRE02[0x81d86ae]
./exampleRE02[0x81d8498]
./exampleRE02[0x8056432]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb6c9f775]
./exampleRE02[0x8055c91]
======= Memory map: ========
08048000-089af000 r-xp 00000000 07:00 219081     /home/yong/work/RE02/bin/Linux-g++/exampleRE02
089af000-089b1000 r--p 00967000 07:00 219081     /home/yong/work/RE02/bin/Linux-g++/exampleRE02
089b1000-08a06000 rw-p 00969000 07:00 219081     /home/yong/work/RE02/bin/Linux-g++/exampleRE02
08a06000-08b15000 rw-p 08a06000 00:00 0 
0a2d9000-0a414000 rw-p 0a2d9000 00:00 0          [heap]
b69c5000-b69c8000 rw-p b69c5000 00:00 0 
b69c8000-b69cc000 r-xp 00000000 07:00 235458     /usr/lib/libXdmcp.so.6.0.0
b69cc000-b69cd000 rw-p 00003000 07:00 235458     /usr/lib/libXdmcp.so.6.0.0
b69cd000-b69f1000 r-xp 00000000 07:00 235700     /usr/lib/libexpat.so.1.5.2
b69f1000-b69f3000 r--p 00023000 07:00 235700     /usr/lib/libexpat.so.1.5.2
b69f3000-b69f4000 rw-p 00025000 07:00 235700     /usr/lib/libexpat.so.1.5.2
b69f4000-b6a24000 r-xp 00000000 07:00 25743      /lib/libpcre.so.3.12.1
b6a24000-b6a25000 r--p 0002f000 07:00 25743      /lib/libpcre.so.3.12.1
b6a25000-b6a26000 rw-p 00030000 07:00 25743      /lib/libpcre.so.3.12.1
b6a26000-b6a29000 r-xp 00000000 07:00 24246      /lib/libuuid.so.1.2
b6a29000-b6a2a000 r--p 00002000 07:00 24246      /lib/libuuid.so.1.2
b6a2a000-b6a2b000 rw-p 00003000 07:00 24246      /lib/libuuid.so.1.2
b6a2b000-b6a2c000 rw-p b6a2b000 00:00 0 
b6a2c000-b6a44000 r-xp 00000000 07:00 234329     /usr/lib/libxcb.so.1.1.0
b6a44000-b6a45000 r--p 00017000 07:00 234329     /usr/lib/libxcb.so.1.1.0
b6a45000-b6a46000 rw-p 00018000 07:00 234329     /usr/lib/libxcb.so.1.1.0
b6a46000-b6a48000 r-xp 00000000 07:00 233873     /usr/lib/libXau.so.6.0.0
b6a48000-b6a49000 r--p 00001000 07:00 233873     /usr/lib/libXau.so.6.0.0
b6a49000-b6a4a000 rw-p 00002000 07:00 233873     /usr/lib/libXau.so.6.0.0
b6a4a000-b6a52000 r-xp 00000000 07:00 234112     /usr/lib/libdrm.so.2.4.0
b6a52000-b6a53000 r--p 00007000 07:00 234112     /usr/lib/libdrm.so.2.4.0
b6a53000-b6a54000 rw-p 00008000 07:00 234112     /usr/lib/libdrm.so.2.4.0
b6a54000-b6a58000 r-xp 00000000 07:00 235464     /usr/lib/libXfixes.so.3.1.0
b6a58000-b6a59000 rw-p 00003000 07:00 235464     /usr/lib/libXfixes.so.3.1.0
b6a59000-b6a5b000 r-xp 00000000 07:00 235456     /usr/lib/libXdamage.so.1.1.0
b6a5b000-b6a5c000 rw-p 00001000 07:00 235456     /usr/lib/libXdamage.so.1.1.0
b6a5c000-b6a5d000 rw-p b6a5c000 00:00 0 
b6a5d000-b6a61000 r-xp 00000000 07:00 235498     /usr/lib/libXxf86vm.so.1.0.0
b6a61000-b6a62000 r--p 00003000 07:00 235498     /usr/lib/libXxf86vm.so.1.0.0
b6a62000-b6a63000 rw-p 00004000 07:00 235498     /usr/lib/libXxf86vm.so.1.0.0
b6a63000-b6a8e000 r-xp 00000000 07:00 234674     /usr/lib/libfontconfig.so.1.3.0
b6a8e000-b6a8f000 r--p 0002a000 07:00 234674     /usr/lib/libfontconfig.so.1.3.0
b6a8f000-b6a90000 rw-p 0002b000 07:00 234674     /usr/lib/libfontconfig.so.1.3.0
b6a90000-b6a98000 r-xp 00000000 07:00 235484     /usr/lib/libXrender.so.1.3.0
b6a98000-b6a99000 r--p 00007000 07:00 235484     /usr/lib/libXrender.so.1.3.0
b6a99000-b6a9a000 rw-p 00008000 07:00 235484     /usr/lib/libXrender.so.1.3.0
b6a9a000-b6ad6000 r-xp 00000000 07:00 235944     /usr/lib/libgobject-2.0.so.0.2000.1
b6ad6000-b6ad7000 r--p 0003b000 07:00 235944     /usr/lib/libgobject-2.0.so.0.2000.1
b6ad7000-b6ad8000 rw-p 0003c000 07:00 235944     /usr/lib/libgobject-2.0.so.0.2000.1
b6ad8000-b6b4a000 r-xp 00000000 07:00 234380     /usr/lib/libfreetype.so.6.3.20
b6b4a000-b6b4e000 r--p 00071000 07:00 234380     /usr/lib/liAborted

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

1 None: Re: buffer overflow detectedfor example RE02   (CHEN YONG - 19 Oct, 2009)
 Add Message Add Message
to: "buffer overflow detectedfor example RE02"

 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 ]