Re: csh on arm failure?



On 5/15/07 6:56 AM, Ricardo Nabinger Sanchez wrote:
On Tue, 15 May 2007 16:30:35 +0300
Krassimir Slavchev <krassi@xxxxxxxxxxx> wrote:

(gdb) bt
#0 0x20204bb0 in kill () from /lib/libc.so.7
#1 0x20200370 in abort () from /lib/libc.so.7
#2 0x00045fe4 in malloc (nbytes=16)
at /work/arm/src/bin/csh/../../contrib/tcsh/tc.alloc.c:213
#3 0x00045fe4 in malloc (nbytes=16)
at /work/arm/src/bin/csh/../../contrib/tcsh/tc.alloc.c:213
(gdb)

Any chances that this relates to Steven's PR 112408? (Not the gdb part, just
the tcsh regression.)

No, this is different. The tcsh malloc is showing it is out of memory and aborting. The thing I don't understand is the malloc is coming from tcsh instead of using the system malloc. Looking at this file:

src/bin/csh/config_p.h:

...
#if defined(__FreeBSD__)
#define NLS_BUGS
#define BSD_STYLE_COLORLS
/* we want to use the system malloc when we install as /bin/csh */
#define SYSMALLOC
/* Use LC_MESSAGES locale category to open the message catalog */
#define MCLoadBySet NL_CAT_LOCALE
#define BUFSIZE 8192
#endif

The SYSMALLOC define should cause it to use the system malloc and not the tcsh malloc. Could __FreeBSD__ not be defined?

Also, it is odd that it is out of memory in the first place. Has it worked before? Is there something that changed in the arm memory allocation schemes?

Mark
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • tcsh in malloc(): error: recursive call
    ... however it got a recursive call in malloc in tcsh. ... CPU: Intel Pentium III ... Error code 1, while making 'build_all' ...
    (freebsd-current)
  • Re: csh on arm failure?
    ... The thing I don't understand is the malloc is coming from tcsh ... mp> instead of using the system malloc. ... mp> The SYSMALLOC define should cause it to use the system malloc and not the tcsh ...
    (freebsd-current)
  • Thank You -- Thomas J. Gritzan
    ... Thomas -- Your suggestion to malloc() out a block of memory was the ... Below are some details of my memory issues ... ... As a work around solution I guessed a ram disk would solve the ... persistence will frustrate the off topic police and give them a target ...
    (comp.lang.c)
  • Re: Simple question about headers and malloc!
    ... Therefore I am making all of its declarations ... memory (using malloc) and then exit back to main. ... allocation, I get data strored from the second allocation... ...
    (microsoft.public.vc.language)
  • Re: ten thousand small processes
    ... Stack needs to be executable for the current signal trampoline ... the use of malloc() that is causing your primary ... if there is any heap memory in use at all, no matter what you do, ... either directly, as a 4M page mapping (not used for user processes, ...
    (freebsd-performance)