Multithreading in Pro*C

Thread Tools Search this Thread
Top Forums Programming Multithreading in Pro*C
# 8  
Old 09-21-2001
Computer Core dump/Stack overflow

Stack overflow, I. declaration size of your stack is small, may be you should increase it.
Coredump , sometimes it appears when you try to compile and you had already made *.o etc which we could say has formed a file called core .Sometimes you have to delete them and then compile afresh.


Last edited by gerald_agoi; 09-21-2001 at 02:24 PM..
# 9  
Old 09-22-2001

could u plz tell me how do i increase the stack size?

# 10  
Old 09-22-2001
I think the first thing you want to do is to
examine the core file using a debugger. The
debugger you use will depend on the compiler
tools you are using. For instance, if you are
using gcc/g++ you can debug using gdb. Using
gdb, you can load the program executable
along with the core file and run the "bt"
(backtrace) command to find exactly where the
program is failing. It would be better to have
the program compiled using the "-g" (for gcc)
option so that a symbol table is created so you
can follow the program execution in a very
detailed manner.

If you are not using the GNU compiler/debugger
then you'll have to find out what debugger
you have on your system (i.e. ladebug, dbx, sdb,
adb, etc...)

On increasing the stack size, you will have to
check your compiler documentation as this is
very compiler dependent.
# 11  
Old 10-02-2001

# 12  
Old 11-09-2001
Hi rwb1959,

Can you please suggest any documentation explaining how to use these various debuggers. I am having a wild goose-chase trying to find the source of a memory fault that happens on our customers, but I cannot imitate it on my own development machine. I now have a core dump, but I need to know what to do with it.

# 13  
Old 11-10-2001
Hi ebh,

If you can tell me what compiler suite you are
using, I can be more specific however, the
following link is for GDB...

...It would be best to actually debug it on the
customer machine if possible but I understand
that that is not always doable. You will also
need the actual executable that they are running
as well unless you can build what they have.
I assume that your development
environment is at least the same (i.e. same
type of UNIX on same type of hardware - RISC, etc)
Assuming this was built for a production
environment, I would expect that it was not
compiled with symbol tables (i.e. "-g" option).
It may help to build them a new version with
this option on and install it on their system
and duplicate the core dump then use the new
core with the new executable. The information
you get will be much more "readable" and will
"map" to your source code much more easily.
# 14  
Old 11-12-2001
Hi rwb1959,

First of all, thanks for your quieck reply.

We are running sco, and using the compiler that comes along with it. I recomplied the program with the -g flag, but we have already updated the effected program, so I will now need to wait till it happens again.

So, the next time the customer gets a memory fault, I will copy the core dump to my machine and I will try to debug. The question is which debugger to use, since I don't think gdb will work if we don't use gcc. I have heard about adb and dbx, but I don;t know how to use either of them.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

Help with multithreading

I take this question of the The Linux Programming Interface: A Linux and Unix System Programming page 652 exercise 30.1 I want someone to explain the under line statement because it sounds complex to me couldn't understand anything 30-1 Modify the program (thread_incr.c) so that each loop in... (3 Replies)
Discussion started by: fwrlfo
3 Replies

2. Programming

how to do udp broadcast with multithreading

hello to all i want to use multithreading to my UDP broadcast server client program. will anyone help me by proving C code. i am working in fedora. also my requirement is POSIX compliance.please help me..... (6 Replies)
Discussion started by: moti12
6 Replies

3. IP Networking

how to do udp broadcast with multithreading

hello to all i want to use multithreading to my UDP broadcast server client program. will anyone help me by proving C code. i am working in fedora. also my requirement is POSIX compliance.please help me..... (0 Replies)
Discussion started by: moti12
0 Replies

4. Programming

MultiThreading using Pthreads

Situation: i have multiple pthread_create calls like this: pthread_create(...., ThreadFunc1,.....); pthread_create(...., ThreadFunc2,.....); . . which i am using to create multiple threads.All the "ThreadFunc<i>" functions are actually calling same function "Receive" of a class using same... (3 Replies)
Discussion started by: Sastra
3 Replies

5. Shell Programming and Scripting

Multithreading program

Hi I need to insert 1million records into MySQL database, but it is taking lot of time as there is no bulk insert support. I want to spawn 10 processes which will insert 100k records each parallely. Can somebody help me with a example program to execute this task through shell scripting. (5 Replies)
Discussion started by: sach_roger
5 Replies

6. UNIX for Advanced & Expert Users

multithreading in UNIX

Hi, Can you please give me a suitable reference to learn multithreading programming in C in UNIX? Thanks (3 Replies)
Discussion started by: naan
3 Replies

7. UNIX for Dummies Questions & Answers

How to write Pro*C daemon process using multithreading?

Hello, I am new to this forum and this is my first post here... I have never worked on either Pro*C or Multithreading..Now, i have to write a Pro*C, Multithreading daemon process.. I dont know where to start.. Can anybody help me with examples? 1. need to write a Pro*C multithreading... (0 Replies)
Discussion started by: kachiraju
0 Replies

8. Programming

multithreading on OSX

Hi all, I have a query about multithreading. What I would like to do is, at the start of my main update() function, start a couple of threads in parallel, once they are all complete carry on with my main update function. void update() { thread1->update(); // fluid solver ... (3 Replies)
Discussion started by: memoid
3 Replies

9. UNIX for Dummies Questions & Answers

domain logon problem - FreeBSD PDC w/ win2k pro and winxp pro

this is the seventh problem i'm having with samba. for some reason, i cannot logon to the domain. i've created user accounts... and i was able to establish a connection between the samba server (my PDC) and my workstations by logging in as "root." however now when i try to logon it gives... (5 Replies)
Discussion started by: xyyz
5 Replies
Login or Register to Ask a Question