Please try upgrading to 3.0pre9.

Michael.

Mohsen Mahvash Mohammadi ([EMAIL PROTECTED]) wrote:
> Hi
> I have found that using sin() and cos() in real time task has caused 
> segmentation fault for user program.here is part of my program which 
> causes the problem:
> 
> 
> #include <math.h>
> 
> 
>  float theta1_rad; 
>  float theta2_rad;
> ...
> ...
>   theta2_rad = 0.0;/*for test*/ 
> theta1_rad = 0.0;/*for test*/
> pencat_pos.y = Link1 * sin(theta1_rad) - Link2 * cos(theta2_rad) ;
> 
> Do you know how I can fix this problem
> > My RTL 
> Task reads data from an Analog to digital card ( using inb) and
> > writes the data, as a structure, into a FIFO which reads by a user
> > program. The RTL rask also reads data from the user program through
> > another FIFO and transfer it to the analog to digital card( using outb). 
> > The rtl task is in 1000 Hz. 
> > 
> > I am using RTL version 2.0 with Kernel
> > vesion 2.2.13
> > 
> > here is the message when I am running my linux program with RTL task
> >  Program received signal SIGSEGV, Segmentation fault. 
> > 0x401fdf64 in flat_8R8G8B_triangle (ctx= Cannot access memory at address
> > 0x100022.  ) at ../../src/tritemp.h:972  972 INNER_LOOP( left, right, iy ); >
> > 
> > Mohsen Machmash
> > 
> > 
> > 
> >  What does your RTL
> > task do? What RTLinux version do you use? > > Michael.
> > 
> >  > > Mohsen Mahvash
> > Mohammadi ([EMAIL PROTECTED]) wrote: > > Dear all > > > > Data is read
> > from an I/O card and transferd to linux area > > through a fifo to be
> > displayed .I try to use Open GL for Displaying . > > > > When RTL thread
> > is running , The Open GL Program which runs in linux > > is stoped with a
> > segmentation fault.when I do not have my rtl thread , > > the Open GL
> > program is fine .  I wonder how I can fix this problem to > > have rt
> > threads and also open GL utility to display the data. > > Sometimes The
> > netscape is also stopped with a same situation. > > Mohsen Mahvash > > > >
> > > > > > > > > > > > > > -- [rtl] --- > > To unsubscribe: > > echo
> > "unsubscribe rtl" | mail [EMAIL PROTECTED] OR > > echo "unsubscribe
> > rtl <Your_email>" | mail [EMAIL PROTECTED] > > --- > > For more
> > information on Real-Time Linux see: > > http://www.rtlinux.org/rtlinux/ >
> > -- [rtl] --- > To unsubscribe: > echo "unsubscribe rtl" | mail
> > [EMAIL PROTECTED] OR > echo "unsubscribe rtl <Your_email>" | mail
> > [EMAIL PROTECTED] > --- > For more information on Real-Time Linux see:
> > > http://www.rtlinux.org/rtlinux/
> > (g> 
> > > 
> > > 
> > -- [rtl] ---
> > To unsubscribe:
> > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> > echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> > ---
> > For more information on Real-Time Linux see:
> > http://www.rtlinux.org/rtlinux/
> > 
> > 
> > 
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to