Segmentation fault , OSF1/TRU64


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Segmentation fault , OSF1/TRU64
# 1  
Old 02-09-2007
Segmentation fault , OSF1/TRU64

hi,
i am running a process on a unix machine
(OSF1 inca V5.1 2650 alpha)
which is doing some operations on an oracle database.

somehow this process is going down and produces
coredump about 2-4 times in a day.
after restarting, it continue running without a problem,
then after sometime (1 hour or 20 hour) it goes down again.
(segmantation fault error)

i have nothing more than a core file, and this core file is not giving any useful information although the process is compiled in debug mode.

my question is how can i find out the cause of this problem?
is there anybody to suggest a methodology to deal this kind of problem?

this is the information that i get from core file using dbx.
(ladebug also gives the same thing)

ttcdrv.c and upiprv.c files are not belong to our code/process.
probably they are oracle files
****************************************************
dbx version 5.1
Type 'help' for help.
Core file created by program "mmda"

thread 0x4 signal Segmentation fault at
warning: PC value 0x0 not valid, trying RA
> [ttcdrv:770, 0x3ffbc984c24] cmpeq v0, s6, s6
(dbx) where
0 ttcdrv(0x3ffbc385f94, 0x14025b0c8, 0x0, 0x14025d4e8, 0x1401c7000) ["ttcdrv.c":770, 0x3ffbc984c24]
1 nstimsbf_SetBrokeFunction(0x0, 0x140307f38, 0x3ffbc44a484, 0x14025b0c8, 0x140312868) ["nstim.c":626, 0x3ffbc7eb924]
2 upirtrc(0x3ffbc3c51f8, 0x3ff00000000, 0x14025ec40, 0x1403128e8, 0x1) ["upiprv.c":1016, 0x3ffbc3860e4]
(dbx) exit
**********************************************************
# 2  
Old 02-13-2007
it seems to be an oracle problem, which can be for many reasons.
I would advise you to try two things. first if you have truss run the command when running the process.
Secondly if you are using a manual debbuger, then type script file before using it, and send me the complete output of the debuggers run.
# 3  
Old 02-14-2007
this is the truss output, do you have any idea what can cause
FLTBOUNDS error?


write(2, " [ W e d F e b 1 4 ".., 74) = 74
write(6, "01 i\0\006\0\0\0\0\003 ^".., 361) = 361
read(6, "01 y\0\006\0\0\0\0\0101D".., 2064) = 377
gettimeofday(0x000000011FFF9928, 0x00000000) = 0
write(6, "\0 +\0\006\0\0\0\0\003 N".., 43) = 43
read(6, "01A9\0\006\0\0\0\0\0101D".., 2064) = 425
Incurred fault #32, FLTBOUNDS %pc = 0x0000000000000000 addr = 0x000000011FFF2C20
Received signal #11, SIGSEGV [default]
siginfo: SIGSEGV SEGV_MAPERR addr=0x0000000000000000
Err#139 Error 139 occurred.
# 4  
Old 02-14-2007
FLTBOUNDS is an invalid floating point number, usually a +- inf value.
For example, if you're using a float (not a double) datatype it's easy to exceed the range supported by the datatype.
See limits.h for the values of these defines:
FLT_DIG
DBL_DIG
FLT_MAX
FLT_MIN

The DIG values reflect precision, MAX & MIN reflect range.

Using the float datatype with Oracle usually results in bad things. My experience is that it is REALLY hard to get an Oracle process to dump core, except when you pass complete garbage, NULL pointers, or datafile corruption. Add some print statements to see what your code is passing to Oracle. It looks like it is reading a file - what file is assigned fd 6?
The answer lives in the truss output above what you showed us.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

C. To segmentation fault or not to segmentation fault, that is the question.

Oddities with gcc, 2.95.3 for the AMIGA and 4.2.1 for MY current OSX 10.14.1... I am creating a basic calculator for the AMIGA ADE *NIX emulator in C as it does not have one. Below are two very condensed snippets of which I have added the results inside the each code section. IMPORTANT!... (11 Replies)
Discussion started by: wisecracker
11 Replies

2. Programming

Segmentation fault

I keep getting this fault on a lot of the codes I write, I'm not exactly sure why so I'd really appreciate it if someone could explain the idea to me. For example this code #include <stdio.h> main() { unsigned long a=0; unsigned long b=0; int z; { printf("Enter two... (2 Replies)
Discussion started by: sizzler786
2 Replies

3. Solaris

Segmentation fault

Hi Guys, I just installed and booted a zone called testzone. When I logged in remotely and tried changing to root user I get this error: "Segmentation fault" Can someone please help me resolve this? Thanks alot (2 Replies)
Discussion started by: cjashu
2 Replies

4. Programming

Using gdb, ignore beginning segmentation fault until reproduce environment segmentation fault

I use a binary name (ie polo) it gets some parameter , so for debugging normally i do this : i wrote script for watchdog my app (polo) and check every second if it's not running then start it , the problem is , if my app , remain in state of segmentation fault for a while (ie 15 ... (6 Replies)
Discussion started by: pooyair
6 Replies

5. Programming

Segmentation fault in C

i have this code int already_there(char *client_names, char *username) { int i; for(i = 0; i<NUM; i++) { printf("HERE\n"); if (strcmp(client_names, username)==0) return(1); } return(0); } and i get a segmentation fault, whats wrong here? (7 Replies)
Discussion started by: omega666
7 Replies

6. Programming

segmentation fault

What is segmentation fault(core dumped) (1 Reply)
Discussion started by: gokult
1 Replies

7. Programming

segmentation fault

ive written my code in C for implementation of a simple lexical analyser using singly linked list hence am making use of dynamic allocation,but when run in linux it gives a segmentation fault is it cause of the malloc function that ive made use of????any suggestions as to what i could do??? thank... (8 Replies)
Discussion started by: rockgal
8 Replies

8. Programming

Hi! segmentation fault

I have written a program which takes a directory as command line arguments and displays all the dir and files in it. I don't know why I have a problem with the /etc directory.It displays all the directories and files untill it reaches a sub directory called peers which is in /etc/ppp/peers.the... (4 Replies)
Discussion started by: vijlak
4 Replies

9. UNIX for Dummies Questions & Answers

Segmentation Fault

hello all, I tried a program on an array to intialise array elements from the standard input device.it is an integer array of 5 elements.but after entering the 4th element it throws a message called "Segmentation Fault" and returns to the command prompt without asking for the 5th element. ... (3 Replies)
Discussion started by: compbug
3 Replies

10. Programming

segmentation fault

sometimes for this code i get a segmentation fault for codes llike this : int main{ int * a= 0; int b; a = (int*)malloc(sizeof(int)); ///some code using these variable but no freeing of a if(a){ free(a); a = 0; } return... (3 Replies)
Discussion started by: wojtyla
3 Replies
Login or Register to Ask a Question