[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [Pavel Andris <utrrandr@savba.sk>] (fwd)



>From owner-rtl Tue Jun 26 03:56:29 2001
Received: from magor.savba.sk ([147.213.3.209])
	by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f5Q9uQe10053
	for <rtl@fsmlabs.com>; Tue, 26 Jun 2001 03:56:27 -0600
Received: (from root@localhost)
	by magor.savba.sk (8.9.3/8.9.3) id LAA01100
	for rtl@fsmlabs.com; Tue, 26 Jun 2001 11:48:59 +0200
Date: Tue, 26 Jun 2001 11:48:59 +0200
From: Pavel Andris <utrrandr@savba.sk>
To: rtl@fsmlabs.com
Subject: Re: [rtl] sprintf in rt-module AGAIN
Message-ID: <20010626114859.A1081@magor.savba.sk>
References: <0560141A7916D211A64A00A0C9C9A81505383A17@nwms15.chinalake.navy.mil>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2i
In-Reply-To: <0560141A7916D211A64A00A0C9C9A81505383A17@nwms15.chinalake.navy.mil>; from EstabridisJP@navair.navy.mil on Mon, Jun 25, 2001 at 04:23:58PM -0700

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 -----