GDB exited with code 0177

999 views
Skip to first unread message

Anil Thotamalla

unread,
Dec 4, 2015, 12:26:37 AM12/4/15
to inside...@googlegroups.com, B Vasu, Ravi Kumar, Ravi Kumar Kandati

Hi All,

 My GDB session got exited wit code 0177.  Could you please help on this.

   char cmdLine[4096]; //size of array.


1289                           sprintf(cmdLine,"/asa/bin/nlp_udp_client -ip %s -p %s -sip %s -sp %s",argv[3],argv[4],argv[5],argv[6]);
(gdb) n
1290                            cp_printf("anil_cmdLine_before_sys: %s lenth of cmdLine:%d\n",cmdLine, sizeof(cmdLine));
(gdb) p cmdLine
$45 = "/asa/bin/nlp_udp_client -ip 169.254.1.2 -p 10000 -sip 65.3.96.9 -sp 10001\000\274\232xV4\022\360\336\274\232xV4\022\360\336\274\232xV4\022\360\336\274\232xV4\022\360\336\274\232xV4\022\360\336\274\232xV4\022\360\336\274\232xV4\022\360\336\274\232xV4\022\360\336\274\232xV4\022\360\336\274\232xV4\022\360\336\274\232xV4\022\360\336\274\232xV4\022\360\336\274\232xV4\022\360\336\274\232xV4\022\360\336\274\232xV4\022\360\336\274\232xV4\022\360\336\274\232xV4\022\360\336\274\232xV4\022\360"...
(gdb) n
1291                            status = system(cmdLine);
(gdb) n
[Inferior 1 (process 1886) exited with code 0177]

--
Thanks&Regards
Anilkumarthotamalla | mobile no:+91-9866508435
http://anilkumarthotamalla.blogspot.com/
Hyd

Anil Kumar Pugalia

unread,
Dec 4, 2015, 12:58:43 AM12/4/15
to inside...@googlegroups.com
Most probably it is code returned by trying to execute the command in the cmdLine string. Checkout the man page of system, as well.

Regards
Anil
Passion: http://sysplay.in (Playing with Systems)
--
You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Anil Thotamalla

unread,
Dec 4, 2015, 3:58:40 AM12/4/15
to inside...@googlegroups.com
Thanks Anil , Sure will go through .

While going reboot , I have see this
 "Child exited with status 127" and
 "[Inferior 1 (process 1886) exited with code 0177]".

Br,
Anil.
.

Anil Kumar Pugalia

unread,
Dec 4, 2015, 10:59:01 AM12/4/15
to inside...@googlegroups.com
0177 is octal of 127 only.


Regards
Anil
Passion: http://sysplay.in (Playing with Systems)
Reply all
Reply to author
Forward
0 new messages