[CP2K:7489] Buffer overflow in cp2k_shell.popt

Eric Hermes erich... at gmail.com
Wed Mar 9 14:58:07 UTC 2016


>
> (gdb) where
> #0  0x00000039d4c32625 in raise () from /lib64/libc.so.6
> #1  0x00000039d4c33e05 in abort () from /lib64/libc.so.6
> #2  0x00000039d4c70537 in __libc_message () from /lib64/libc.so.6
> #3  0x00000039d4d02567 in __fortify_fail () from /lib64/libc.so.6
> #4  0x00000039d4d00450 in __chk_fail () from /lib64/libc.so.6
> #5  0x00000039d4cff8a9 in _IO_str_chk_overflow () from /lib64/libc.so.6
> #6  0x00000039d4c74639 in _IO_default_xsputn_internal () from 
> /lib64/libc.so.6
> #7  0x00000039d4c451a8 in vfprintf () from /lib64/libc.so.6
> #8  0x00000039d4cff94d in __vsprintf_chk () from /lib64/libc.so.6
> #9  0x00000039d4cff88f in __sprintf_chk () from /lib64/libc.so.6
> #10 0x0000000008005e33 in for__compute_filename ()
> #11 0x0000000008007bf9 in for__open_proc ()
> #12 0x0000000007fbe2cd in for__open_default ()
> #13 0x0000000007fec269 in for_write_seq_fmt ()
> #14 0x0000000000411af0 in cp2k_shell () at cp2k_shell.f90:186
> #15 0x000000000040e81e in main ()
> #16 0x00000039d4c1ed5d in __libc_start_main () from /lib64/libc.so.6
> #17 0x000000000040e729 in _start ()
> (gdb)
>
> Unfortunately there doesn't appear to be much info here. I'm unsure where 
> the for_* symbols are from, but presumably the sprintf statement causing 
> the buffer overflow is located in those routines.
>
 
Addendum: I have located where these symbols are: they are in the Intel 
compiler library libifcore.so.5. This may be an Intel compiler bug.

Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20160309/eb386cd9/attachment.htm>


More information about the CP2K-user mailing list