<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<pre>>>Which instruction is it? Use the following to find out<br>>><br>>>1) gdb --args iptables -v -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24<br>>>2) run<br>>>3) backtrace<br>>>4) x/5i $pc<br>>>5) info register<br><br>>>Better Cc: me on your reply since I might not notice your reply on the<br>>>mailing list due to heavy traffic :-)<br><br>---<br><br>Thanks for the response. Below is the output. <br><br>-Nick<br><br>root@om-gta02:~# gdb --args iptables -v -A POSTROUTING -t nat -j MASQUERADE -s 1<br>92.168.0.0/24<br>GNU gdb 6.8<br>Copyright (C) 2008 Free Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html><br>This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law. Type "show copying"<br>and "show warranty" for details.<br>This GDB was configured as "arm-angstrom-linux-gnueabi"...<br>(no debugging symbols found)<br>(gdb) run<br>Starting program: /usr/sbin/iptables -v -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br><br>Program received signal SIGILL, Illegal instruction.<br>0x00009834 in ?? ()<br>(gdb) backtrace<br>#0 0x00009834 in ?? ()<br>Cannot access memory at address 0x2<br>(gdb) x/5i $pc<br>0x9834 <__strtoull_internal+1088>:        teqeq        pc, r5, asr r6<br>0x9838 <__strtoull_internal+1092>:        cfstrsne        mvf4, [r0], #-316<br>0x983c <__strtoull_internal+1096>:        ldcne        6, cr2, [r12]<br>0x9840 <__strtoull_internal+1100>:        ldrtmi        r3, [r4], r12, lsl #8<br>0x9844 <__strtoull_internal+1104>:        blcc        0x3108d8<br>(gdb) info register<br>r0 0x2b048        176200<br>r1 0x2895c        166236<br>r2 0x80000002        2147483650<br>r3 0x19084        102532<br>r4 0x2a1f8        172536<br>r5 0x2876c        165740<br>r6 0x2        2<br>r7 0x1f0        496<br>r8 0x2a1e4        172516<br>r9 0x2b048        176200<br>r10 0x1f        31<br>r11 0x2        2<br>r12 0x10        16<br>sp 0xbe866ab8        0xbe866ab8<br>lr 0x67        103<br>pc 0x9834        0x9834 <__strtoull_internal+1088><br>fps 0x1001000        16781312<br>cpsr 0x40000010        1073741840<br>(gdb) <br><br></pre><br /><hr />Windows Live™ Hotmail®: Chat. Store. Share. Do more with mail. <a href='http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_howitworks_012009' target='_new'>See how it works.</a></body>
</html>