Pavel & All,
I am completely unfamiliar with reading a map file. I do see malloc in it,
but it is in numerous places. Does that mean it is called?
Also, I have run the previous version of this code a long time using
"sprintf" and have never had a problem. Does sprintf use malloc all the
time or only on certain occasions ? Does the rt-module maybe or maybe not
work depending on your luck ?
I just want to understand because I went through using "sprintf" in August
2000 and Pavel suggested the "ld" command. I also tried your libraries and
we couldn't get them to work (remember) it was more complicated than you
thought.
So, if my solution is to get this rt libc I'm all for doing that. I just
want to understand why this is now crashing my stuff.
Any insight is welcome -
Janet Estabridis
-----Original Message-----
From: Pavel Andris
To: [EMAIL PROTECTED]
Sent: 6/26/01 2:48 AM
Subject: Re: [rtl] sprintf in rt-module AGAIN
Hi Janet,
I do not know which C library you use. Anyway, sprintf may call
malloc/free functions that are forbidden in RT threads. Have a look at
your map file if they are there. You may want to use some debugging
tools to check if malloc is really called.
Recently, some reduced C libraries were recommended in this list for
RT use, but I did not try them.
Regards,
pa
> Hi,
>
> I'm using RTLV2.3, kernel 2.2.14. I have a real-time module that has
used
> sprintf in it for quite some time with no problem.
>
> I recently updated the module (removing some code and adding some
code) and
> now I crash at an "sprintf" statement that previously worked.
>
> Why ? I never had any problem before. I can pinpoint 2 of the
sprintf
> statements that crash and if I comment them out my code runs fine. I
do
> some other "sprintf" statements every 30 Hz.
>
> Any ideas ?
>
> I do to the "ld -r file.o -L/usr/src -lc -M -o file.m > map"
>
> Thanks in advance -
> Janet Estabridis
>
> ----- End of forwarded message from [EMAIL PROTECTED] -----
> -- [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/
--
........................................................................
..
Pavel Andris | tel: +421 7 5941 2167
Institute of Control Theory and Robotics | fax: +421 7 5477 6045
Slovak Academy of Sciences |
Dubravska cesta 9 | e-mail: [EMAIL PROTECTED]
SK - 842 37 Bratislava |
Slovak republic |
........................................................................
..
"The hardest thing is to take something people don't need and make it
part
of their lives."
Sheila Hewett, vice-president for marketing and
advertising
........................................................................
...
----- End of forwarded message from [EMAIL PROTECTED] -----
-- [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/
----- End of forwarded message from [EMAIL PROTECTED] -----
-- [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/