[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom ["Estabridis, Janet P" <EstabridisJP@navair.navy.mil>] (fwd)
- To: rtl@rtlinux.org
- Subject: BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom ["Estabridis, Janet P" <EstabridisJP@navair.navy.mil>] (fwd)
- From: Der Herr Hofrat <der.herr@hofr.at>
- Date: Thu, 28 Jun 2001 06:57:39 +0200 (CEST)
>From owner-rtl Wed Jun 27 08:40:16 2001
Received: from mulder.chinalake.navy.mil (mulder.chinalake.navy.mil [206.37.206.69])
by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f5REeFe16288
for <rtl@fsmlabs.com>; Wed, 27 Jun 2001 08:40:16 -0600
Received: by mulder.chinalake.navy.mil; id HAA24350; Wed, 27 Jun 2001 07:33:50 -0700 (PDT)
Received: from nwim12.chinalake.navy.mil(199.211.228.55) by mulder.chinalake.navy.mil via smap (V4.2)
id xma023820; Wed, 27 Jun 01 07:33:04 -0700
Received: by nwim12.chinalake.navy.mil with Internet Mail Service (5.5.2653.19)
id <NX79CK62>; Wed, 27 Jun 2001 07:33:39 -0700
Message-ID: <0560141A7916D211A64A00A0C9C9A81505383A1D@nwms15.chinalake.navy.mil>
From: "Estabridis, Janet P" <EstabridisJP@navair.navy.mil>
To: "'Pavel Andris '" <utrrandr@savba.sk>,
"'rtl@fsmlabs.com '"
<rtl@fsmlabs.com>
Subject: RE: [rtl] sprintf in rt-module AGAIN
Date: Wed, 27 Jun 2001 07:33:03 -0700
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
charset="iso-8859-1"
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: rtl@fsmlabs.com
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 owner-rtl@fsmlabs.com -----
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> --
> 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: utrrandr@savba.sk
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 owner-rtl@fsmlabs.com -----
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/
----- End of forwarded message from owner-rtl@fsmlabs.com -----