Teresa Noviello wrote:
> Hi! I have modified rtt-sender.c and rtt-responder.c in the way you see in
> attachments, i use them in two different shells with the two commands (on
> the same machine):
> 
> 1. ./rtt-sender -d 127.0.0.1
> 2. ./rtt-responder -l 127.0.0.1
> 
> rtt-sender goes in Segmentation Fault and rtt-responder remains up. What i
> do wrong?
> 
> I see in debug messages that sendto_rt in transmitter function doesnt't
> send
> anything! Why?
> the messages are:
> 
> sendo failed - perror: Success.

This is due to the fact that sendto_rt is not the POSIX variant, it's
the native real-time interface (and its obsolete, new naming scheme:
rt_dev_sendto). Only the wrapped POSIX sendto would set errno correctly,
but I'm not up-to-date with the RTAI status here. So, try to catch the
result of sendto_rt directly and print that one.

> 
> The segmentation fault happens after the first pthread_join, in
> __nptl_death_event() from /lib/tls/libthread.so.0
> 

Looks like something messes up with glibc internals, but I cannot say
what. Are those POSIX calls now plain Linux or are they already wrapped
to RTAI's new library? If the latter, you will likely have to ask
someone else.

Jan


PS: What is switch_errno?

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to