Re: illegal instruction (CPU mismatch)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 16/09/16 11:54, Mahmood Naderan wrote:
>> No, that's not necessary.
> 
> So, within GDB, I ran the program, but disas command says "no frame selected". please see below
> 
> $ cat sc.sh
> #!/bin/bash
> 
> ulimit -c unlimited
> 
> exec /share/apps/siesta/siesta-4.0/tpar/transiesta < trans-cc-bt-cc-163-20.fdf
> 
> $ cat sc2.sh
> 
> #!/bin/bash
> 
> /share/apps/siesta/openmpi-2.0.0/bin/mpirun -hostfile hosts.txt -np 15 sc.sh
> $ gdb --args bash sc2.sh
> (gdb) r
> 
> Starting program: /bin/bash sc2.sh
> 
> Detaching after fork from child process 29640.
> 
> ....
> ....
> --------------------------------------------------------------------------
> 
> mpirun noticed that process rank 0 with PID 9443 on node compute-0-1 exited on signal 4 (Illegal instruction).
> 
> --------------------------------------------------------------------------
> 
> Program exited with code 0204.
> 
> (gdb) disas
> 
> No frame selected.

In these circumstances 'x/i $pc' may be your friend, it will just try to
disassemble the exact instruction at the current PC.  If that still
doesn't work, then your program may have jumped off into the weeds and
the PC may not even be pointing at a valid location (but then I'd not
expect the signal to be SIGILL in that case).

HTH.

R.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux