abijith bufferOverFlow $ gdb a.out
GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/abijith/Project/Security/bufferOverFlow/a.out...done
(gdb) r
Starting program: /home/abijith/Projec2qt/Security/bufferOverFlow/a.out
warning: no loadable sections found in added symbol-file system-supplied
SO at 0x7ffff7ffd000
Ho scritto un semplice programma che stampa una stringa e restituisce. Sono stato in grado di eseguirlo direttamente, digitando "./a.out". Ma quando lo eseguo in gdb succede l'errore sopra menzionato. Ho provato a compilare il codice utilizzando il flag "-g" e senza usarlo. Entrambe le volte ha dato lo stesso risultato. Qualcuno può aiutarmi con questo problema ??Avviso GDB: sezione caricabile non trovata nel DSO del file di simboli aggiunto al sistema 0x7ffff7ffd000
quali altri parametri hai passato 'gcc'? puoi pubblicare il comando completo che hai usato per compilarlo e collegarlo? –
Ho provato questi comandi: gcc -g test.c gcc test.c –
stai usando un vecchio kernel? https://bugzilla.redhat.com/show_bug.cgi?id=312011 – Alex