title: How to debug core file generated with perl?
body: <p>I have abc.bin file which is created from a perl script file.</p>
  
  <p>Now how to debug a core file which is generated with this "abc.bin"</p>
  
  <p>By doing,</p>
  
  <pre><code>gdb abc.bin -c core_file 
  </code></pre>
  
  <p>I am getting and error saying "not in executable format: File format not recognized"</p>
  
  <p>Is there any other option to debug such file in GDB or is there any other tool to do so</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Lets forget about abc.bin, Is there a way to debug core file generated with perl file, I have one abc.pl file which is causing a core dump, Is there way to debug this core with abc.pl ?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Output of file for abc.bin</p>
  
  <pre><code>ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped
  </code></pre>
  
  <p><strong>Edit:</strong></p>
  
  <p>Output of "gdb abc.bin"</p>
  
  <pre><code>&lt;M&gt; l1143425:/root # gdb /var/storage/cores/abc.bin.11413
  GNU gdb (GDB; Astaro Security Gateway) 7.9.1
  Copyright (C) 2015 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt;
  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 "i686-suse-linux".
  Type "show configuration" for configuration details.
  For bug reporting instructions, please see:
  &lt;http://bugs.opensuse.org/&gt;.
  Find the GDB manual and other documentation resources online at:
  &lt;http://www.gnu.org/software/gdb/documentation/&gt;.
  For help, type "help".
  Type "apropos word" to search for commands related to "word"...
  [New LWP 11413]
  Core was generated by `app_name [module_name]'.
  Program terminated with signal SIGABRT, Aborted.
  #0  0xf7733440 in __kernel_vsyscall ()
  "/var/storage/cores/abc.bin.11413" is a core file.
  Please specify an executable to debug.
  (gdb) bt
  #0  0xf7733440 in __kernel_vsyscall ()
  #1  0xf754bbb0 in ?? ()
  #2  0xf768f000 in ?? ()
  #3  0xf754d4e5 in ?? ()
  #4  0x00000006 in ?? ()
  #5  0xffba33e0 in ?? ()
  #6  0xf64b6185 in ?? ()
  #7  0x00000000 in ?? ()
  (gdb) f 2
  #2  0xf768f000 in ?? ()
  (gdb) list
  No symbol table is loaded.  Use the "file" command.
  (gdb)
  </code></pre>
  
  <p><strong>Edit</strong></p>
  
  <p>Scenario :</p>
  
  <ol>
  <li>I have a perl file lets say abc.pl</li>
  <li>Using perlapp I am converting this perl file to executable lets say abc.bin</li>
  <li>Now I am running this abc.bin as a simple executable, not using perl, So now debug using GDB is possible? Is there any other way to debug?</li>
  </ol>