<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:\5B8B\4F53;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@\5B8B\4F53";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:\5B8B\4F53;}
code
        {mso-style-priority:99;
        font-family:\5B8B\4F53;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:\5B8B\4F53;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:\5B8B\4F53;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
.MsoChpDefault
        {mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'><div class=WordSection1><p class=MsoNormal align=left style='text-align:left;line-height:13.5pt;background:#FAFAFA'><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'>Hi,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:13.5pt;background:#FAFAFA'><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'>I am using armv7 for openwrt development and facing a segfault caused by vfork.<br>I have wrote a small test program with the following segments:<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>        ...<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>        pid_t child_t;<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>        if((child_t = vfork()) < 0)<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>        {<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>            printf("error!\n");<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>            return -1;<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>        }<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>        else if(child_t == 0)<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>        {<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>            printf("in child:pid =%d\n",getpid());<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>            sleep(2);<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>            _exit(0);<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>        }<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>        else<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>        {<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>            printf("in parent:child_t id = %d,pid = %d\n",child_t,getpid());<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>        }<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>        ...</span><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'><o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:13.5pt;background:#FAFAFA'><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'>The vfork() function always cause segfault, this is the gdb debug trace:<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'>...<br>   (gdb) c<br>       Breakpoint 1, main (argc=1, argv=0xbefffed4) at handler.c:33<br>       33            if((child_t = vfork()) < 0)<br>   (gdb) stepi</span><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'> </span><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'><br>       0x00008474 in vfork () at libpthread/nptl/sysdeps/unix/sysv/linux/arm/../../../../../../../libc/sysdeps/linux/arm/vfork.S:71<br>       71        SAVE_PID<br>   (gdb) l<br>       66   </span><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'> </span><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'><br>       67    #else<br>       68    __vfork:<br>       69   </span><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'> </span><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'><br>       70    #ifdef __NR_vfork<br>       71        SAVE_PID<br>       72        DO_CALL (vfork)<br>       73        RESTORE_PID<br>       74        cmn    r0, #4096<br>       75        IT(t, cc)<br>  (gdb) b libpthread/nptl/sysdeps/unix/sysv/linux/arm/../../../../../../../libc/sysdeps/linux/arm/vfork.S:72<br>       Breakpoint 2 at 0xb6fcf930: file libpthread/nptl/sysdeps/unix/sysv/linux/arm/../../../../../../../libc/sysdeps/linux/arm/vfork.S, line 72.<br>  (gdb) disassemble<br>           0x00008584 <+40>:        bl      0x8444 <puts><br>     => 0x00008588 <+44>:         bl      0x8474 <vfork><br>           0x0000858c <+48>:         str    r0, [r11, #-12]<br>  (gdb)stepi<br>     ...<br>  (gdb) stepi</span><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'> </span><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'><br>       0x00008474 in vfork () at libpthread/nptl/sysdeps/unix/sysv/linux/arm/../../../../../../../libc/sysdeps/linux/arm/vfork.S:71<br>       71              SAVE_PID<br>  (gdb) disassemble</span><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'> </span><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'><br>       Dump of assembler code for function vfork:<br>       =>  0x00008474 <+0>:   add  r12, pc, #0, 12<br>              0x00008478 <+4>:   add  r12, r12, #8, 20        ; 0x8000<br>              0x0000847c <+8>:   ldr    pc, [r12, #796]!        ; 0x31c<br>  (gdb) stepi<br>      …<br>   (gdb) disassemble<br>        Dump of assembler code for function vfork:<br>             0x00008474 <+0>:   add  r12, pc, #0, 12<br>             0x00008478 <+4>:   add  r12, r12, #8, 20        ; 0x8000<br>       => 0x0000847c <+8>:     ldr    pc, [r12, #796]!        ; 0x31c<br>   (gdb)c<br>       Continuing.<br>       Program received signal SIGSEGV, Segmentation fault.<br>       0xffff0fe0 in ?? ()<br>    (gdb)<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:13.5pt;background:#FAFAFA'><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'>I have also found the vfork code at vfork.S:<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>__vfork:<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'><o:p> </o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>#ifdef __NR_vfork<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    SAVE_PID<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    DO_CALL (vfork)<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    RESTORE_PID<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    cmn    r0, #4096<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    IT(t, cc)<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>#if defined(__USE_BX__)<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    bxcc    lr<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>#else<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    movcc    pc, lr<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>#endif<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'><o:p> </o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    /* Check if vfork even exists.  */<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    ldr     r1, =-ENOSYS<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    teq     r0, r1<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    bne     __error<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>#endif<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'><o:p> </o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    /* If we don't have vfork, use fork.  */<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    DO_CALL (fork)<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    cmn     r0, #4096<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'><o:p> </o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    /* Syscall worked.  Return to child/parent */<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    IT(t, cc)<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>#if defined(__USE_BX__)<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    bxcc    lr<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>#else<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    movcc   pc, lr<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>#endif<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'><o:p> </o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>__error:<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>    b    __syscall_error<o:p></o:p></span></p><p class=MsoNormal align=left style='mso-margin-top-alt:0cm;margin-right:12.0pt;margin-bottom:0cm;margin-left:12.0pt;margin-bottom:.0001pt;text-align:left;line-height:13.5pt;background:white'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'>#endif</span><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#222222'><o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'><br><br></span><span lang=EN-US style='font-size:12.0pt;font-family:宋体'><o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:13.5pt;background:#FAFAFA'><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'>It just seems that SAVE_PID instruction cause some problem.<br>Could anyone help?<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:13.5pt;background:#FAFAFA'><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left;line-height:13.5pt;background:#FAFAFA'><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#222222'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Qi<o:p></o:p></span></p></div></body></html>