Mail Archives: djgpp/1995/08/15/01:17:29
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:1538
|
Path: | news-dnh.mv.net!mv!news.sprintlink.net!in2.uu.net!news.erinet.com!bug.rahul.net!a2i!wilsont.a2i!wilsont
|
From: | Timothy Wilson <wilsont AT rahul DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Crash in malloc w/version 1, Help!
|
Date: | 12 Aug 1995 23:09:12 GMT
|
Organization: | a2i network
|
Lines: | 47
|
Distribution: | na
|
Nntp-Posting-Host: | foxtrot.rahul.net
|
Nntp-Posting-User: | wilsont
|
To: | djgpp AT sun DOT soe DOT clarkson DOT edu
|
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I've been using djgpp for a long time now writing a database.
Recently I added a few more modules (.o's) and now it crashes in the
database loading stage.
the size difference is about 30k, (330k to 360k w/new modules)
I take the modules out, and it runs, the code also runs fine when compiled
under Linux (even with these modules)
Also, the routines in these modules are not called till the database is
active and past the initialization stage.
So, I didn't change the database loading code at all, and the whole thing runs
on linux, but I have to have the dos version working.
I tried V2 and that hangs in a completely bizzare spot. But I have to
run a 387 emulator for V2 which annoys me, so I'll wait on V2.
My setup is:
AMD 486SX-50 w/8Meg of ram
Ultrasound MAX
ISA trident video card
VESA controller card
ISA USR sportster
My Cmos is set to the defaults.
Running HIMEM. (tried with and without)
zilcho drivers loaded (not even a mouse)
go32 varible is : 2r1 emu c:\gnu\bin\emu387
each module is compiled with:
-g -c -funsigned-char
using gdb, I traced the failure to malloc.o, called from calloc called
by my code.
How do I fix this?
--
Timothy Wilson --- wilsont AT rahul DOT net --- Sillicon Valley
>Dark Oak Software<-+Entertainment and Applications programming in C
^^^^^^^^^^^^^^^^^^^+->X/Unix, and MS-DOS
- Raw text -