Technical article 100800

dbXtra is failing to load my program - no core dump is produced.

OpenServer 5.0.0

Written · Last revised

Problem

I have a large Motif binary (appx. 20Mgb) which I am trying to run using the debugger: dbXtra.

When I start dbXtra(CP), the program load hangs while loading the binary's symbol information.

After about 5-6 minutes, I see this error message from dbXtra:

Debugger code has terminated
Cannot continue

Solution

The virtual memory requirements for the debugger have
increased.  A suggested rule for application debugging
would be to have approximately three to four times the
amount of virtual memory as the size of the binary.
Under SCO OpenServer 5, you can dynamically allocate additional
hard disk drive resources for swap space without modifying the
filesystem partition tables.  Adding swap space is relatively
simple.  These commands add approximately 40 megabytes of swap
space:
# touch /tmp/swap
# swap -a /tmp/swap 0 80000
Compiling the application as an ELF binary, as opposed to a COFF
binary, does not seem to correct the problem.  The debugger may
still fail with an error message:
maxumem insufficient to load elf begin
Another known solution is to compile only those modules
within your application that you need to debug, with
the symbol table information ("-g" compiler directive)
intact.  This will reduce the overall size of the binary
significantly and you may be able to pass the application
through the debugger.

From the Xinuos technical article database, record 100800. Reproduced with permission. The original is at www.sco.com/ta/100800, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.