[Pw_forum] stack smashing error

Axel Kohlmeyer akohlmey at cmm.chem.upenn.edu
Fri May 15 15:51:09 CEST 2009


On Fri, 2009-05-15 at 09:36 -0300, marc at fq.edu.uy wrote:
> Hello
> 

hello marc,

>  I have installed a quantum espresso 4.1 CVS copy on my computer to do
> some test, but when I try to run the program it fails. Configuration and
> compilation runs fine, but even examples gives this error.

that can mean two things:

a) there is a problem with the compiler miscompiling new code that was
   added between since the 4.0.x version was branched off

b) there is a bug in the code.

both are equally probably. the cvs code is development code, so it
tends to break every once in a while. and newly written code tends to
use more fortran 95 features, which in turn can put a higher strain
on compilers, particularly gfortran. 

i suggest you try compiling with reduced optimization and debugging
symbols included and see if the error report persists and then produce
a proper stack trace to help trying to pinpoint the offending part of
the code, so that somebody else can have a look at it and determine
who is to blame.

cheers,
   axel.


>  Previously I have installed 4.0.4 version which run smoothly, with examples.
>  System is ubuntu 8.10.
>  Many thanks
> 
>  Marc
> -------------------------------------------------------------
>  Marc E. Segovia Becker, PhD,Ch.Eng
>  Computational Chemistry and Biology Group, Detema
>  Facultad de Quimica
>  Universidad de la Republica
>  CC 1157A
>  11800 Montevideo
>  Uruguay
>  www.ccbg.fq.edu.uy
>  --------------------------------------------------------------
> 
>  Models are not reality.
> 
>  Nao se afobe nao, que nada é pra ja. Chico
> 
>  If things seem under control, you're just not going fast enough.Andretti
> 
>  Soy jardinero de mis dilemas.Drexler
> 
> 
>  *** stack smashing detected ***: ./bin/pw.x terminated
>  ======= Backtrace: =========
> > /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb79b66d8]
> > /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x0)[0xb79b6690]
> > ./bin/pw.x[0x823ce35]
> > ./bin/pw.x[0x80af77c]
> > ./bin/pw.x[0x80b6e90]
> > ./bin/pw.x[0x811379e]
> > ./bin/pw.x[0x81166b9]
> > ./bin/pw.x[0x804ab94]
> > ./bin/pw.x[0x83724c9]
> > /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb78d2685]
> > ./bin/pw.x[0x804aa71]
> > ======= Memory map: ========
> > 08048000-08392000 r-xp 00000000 08:01 1182544   
> /home/marc/espresso/PW/pw.x
> > 08392000-08393000 r--p 00349000 08:01 1182544   
> /home/marc/espresso/PW/pw.x
> > 08393000-0839b000 rw-p 0034a000 08:01 1182544   
> /home/marc/espresso/PW/pw.x
> > 0839b000-09262000 rw-p 0839b000 00:00 0
> > 0a92b000-0a94c000 rw-p 0a92b000 00:00 0          [heap]
> > b78a1000-b78a3000 rw-p b78a1000 00:00 0
> > b78a3000-b78b8000 r-xp 00000000 08:02 1054
> > /lib/tls/i686/cmov/libpthread-2.8.90.so
> > b78b8000-b78b9000 r--p 00014000 08:02 1054
> > /lib/tls/i686/cmov/libpthread-2.8.90.so
> > b78b9000-b78ba000 rw-p 00015000 08:02 1054
> > /lib/tls/i686/cmov/libpthread-2.8.90.so
> > b78ba000-b78bc000 rw-p b78ba000 00:00 0
> > b78bc000-b7a14000 r-xp 00000000 08:02 1040
> > /lib/tls/i686/cmov/libc-2.8.90.so
> > b7a14000-b7a16000 r--p 00158000 08:02 1040
> > /lib/tls/i686/cmov/libc-2.8.90.so
> > b7a16000-b7a17000 rw-p 0015a000 08:02 1040
> > /lib/tls/i686/cmov/libc-2.8.90.so
> > b7a17000-b7a1a000 rw-p b7a17000 00:00 0
> > b7a1a000-b7a27000 r-xp 00000000 08:02 500972     /lib/libgcc_s.so.1
> > b7a27000-b7a28000 r--p 0000c000 08:02 500972     /lib/libgcc_s.so.1
> > b7a28000-b7a29000 rw-p 0000d000 08:02 500972     /lib/libgcc_s.so.1
> > b7a29000-b7a4d000 r-xp 00000000 08:02 1044
> > /lib/tls/i686/cmov/libm-2.8.90.so
> > b7a4d000-b7a4e000 r--p 00023000 08:02 1044
> > /lib/tls/i686/cmov/libm-2.8.90.so
> > b7a4e000-b7a4f000 rw-p 00024000 08:02 1044
> > /lib/tls/i686/cmov/libm-2.8.90.so
> > b7a4f000-b7b00000 r-xp 00000000 08:06 484923
> > /usr/lib/libgfortran.so.3.0.0
> > b7b00000-b7b01000 r--p 000b0000 08:06 484923
> > /usr/lib/libgfortran.so.3.0.0
> > b7b01000-b7b02000 rw-p 000b1000 08:06 484923
> > /usr/lib/libgfortran.so.3.0.0
> > b7b02000-b7b04000 rw-p b7b02000 00:00 0
> > b7b04000-b7be4000 r-xp 00000000 08:06 488649     /usr/lib/libfftw3.so.3.1.2
> > b7be4000-b7bea000 r--p 000df000 08:06 488649     /usr/lib/libfftw3.so.3.1.2
> > b7bea000-b7beb000 rw-p 000e5000 08:06 488649     /usr/lib/libfftw3.so.3.1.2
> > b7beb000-b7f62000 r-xp 00000000 08:06 18442
> > /usr/lib/atlas/libblas.so.3gf.0
> > b7f62000-b7f64000 r--p 00376000 08:06 18442
> > /usr/lib/atlas/libblas.so.3gf.0
> > b7f64000-b7f67000 rw-p 00378000 08:06 18442
> > /usr/lib/atlas/libblas.so.3gf.0
> > b7f7a000-b7f7c000 rw-p b7f7a000 00:00 0
> > b7f7c000-b7f96000 r-xp 00000000 08:02 501022     /lib/ld-2.8.90.so
> > b7f96000-b7f97000 r-xp b7f96000 00:00 0          [vdso]
> > b7f97000-b7f98000 r--p 0001a000 08:02 501022     /lib/ld-2.8.90.so
> > b7f98000-b7f99000 rw-p 0001b000 08:02 501022     /lib/ld-2.8.90.so
> > bf984000-bf998000 rwxp bffeb000 00:00 0          [stack]
> > bf998000-bf999000 rw-p bffff000 00:00 0
> >
>  --
> 
> 
> 
> 
> _______________________________________________
> Pw_forum mailing list
> Pw_forum at pwscf.org
> http://www.democritos.it/mailman/listinfo/pw_forum

-- 
=======================================================================
Axel Kohlmeyer   akohlmey at cmm.chem.upenn.edu   http://www.cmm.upenn.edu
   Center for Molecular Modeling   --   University of Pennsylvania
Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
tel: 1-215-898-1582,  fax: 1-215-573-6233,  office-tel: 1-215-898-5425
=======================================================================
If you make something idiot-proof, the universe creates a better idiot.



More information about the Pw_forum mailing list