General PTY and CONSOLE question--SOLVED

Gene Smith gds at chartertn.net
Mon Sep 22 03:00:42 UTC 2008


Gene Smith wrote, On 09/21/2008 08:23 PM:
> failed internally with no CONSOLE driver enabled. You end up with a 
> stack like this:
> 
> Kbhit()  <--- my function
> rtems_panic
> rtems_verror
> _exit
> newlibc_exit
> close(stdin/stdout/stderr)
> soisdisconnected   <--sets SS_CANTRCVMORE bit that accept() fails on.
> 

The stack actually looks like this (eventually you reach 
soisdisconnected() as shown above):

(arm-gdb) bt
#0  rtems_bsdnet_close (iop=0x202ca83c) at 
../../../../../../rtems-4.8.0/c/src/../../cpukit/libnetworking/rtems/rtems_syscall.c:672
#1  0x201b2f9c in close (fd=0) at 
../../../../../../rtems-4.8.0/c/src/../../cpukit/libcsupport/src/close.c:33
#2  0x201b302c in _close_r (ptr=0x2022d70c, fd=0) at 
../../../../../../rtems-4.8.0/c/src/../../cpukit/libcsupport/src/close.c:56
#3  0x2021b2cc in _fclose_r (rptr=0x2022d70c, fp=0x2022da54) at 
../../../../../gcc-4.2.4/newlib/libc/stdio/fclose.c:93
#4  0x201b6370 in libc_wrapup () at 
../../../../../../rtems-4.8.0/c/src/../../cpukit/libcsupport/src/newlibc_exit.c:88
#5  0x201b63f4 in _exit (status=0) at 
../../../../../../rtems-4.8.0/c/src/../../cpukit/libcsupport/src/newlibc_exit.c:131
#6  0x201b32e4 in rtems_verror (error_flag=536870912, 
printf_format=0x202325d8 "bad tcgetattr", arglist=0x202523b0) at 
../../../../../../rtems-4.8.0/c/src/../../cpukit/libcsupport/src/error.c:162
#7  0x201b33d0 in rtems_panic (printf_format=0x20164304 "") at 
../../../../../../rtems-4.8.0/c/src/../../cpukit/libcsupport/src/error.c:210
#8  0x2016af00 in kbhit () at 
/home/gene/4.8.0-rtems/tools/network-demos-4.8.0/adapter/ertek209/cep/src/linux_conio.c:102
#9  0x201663ac in eip_cycle () at 
/home/gene/4.8.0-rtems/tools/network-demos-4.8.0/adapter/ertek209/cep/src/EepSample.c:515
#10 0x201583cc in Init (ignored=0) at 
/home/gene/4.8.0-rtems/tools/network-demos-4.8.0/adapter/ertek209/mgt/src/init.c:99
#11 0x2021aeb4 in _Thread_Handler () at 
../../../../../../rtems-4.8.0/c/src/../../cpukit/score/src/threadhandler.c:137
#12 0x2021adf0 in _Thread_Is_heir (the_thread=0x202522b0) at 
../../cpukit/../../../csb337/lib/include/rtems/score/thread.inl:60





More information about the users mailing list