I've a binary that runs on most of our servers but segfaults on one of
the servers. Further, even on this specific machine, the binary runs
successfully sometimes but segfaults most of the time. While trying to
debug this behaviour using gdb, I found out that the segfaults occurs
randomly at different places in the code. For example, once a pointer
was not initiallized to NULL (it was pointing to x8 insterad of x0) in
a constructor, even though it ran through the intialization code.
Has anyone come across this kind of behavior? Any help and/or
information sf highly appreciated.
-Naveen
Here is the configuration of the machine where the problem occurs:
isip213_[1]: g++ -v
Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.7/3.2.1/specs
Configured with: ../gcc-3.2.1/configure --prefix=/usr/local
--with-gnu-as --with-as=/usr/local/bin/as --with-gnu-ld
--with-ld=/usr/local/bin/ld
Thread model: posix
gcc version 3.2.1
isip213_[1]: uname -a
SunOS isip213.isip.msstate.edu 5.7 Generic_106542-20 i86pc i386
isip213_[1]: psrinfo -v
Status of processor 0 as of: 04/01/04 14:38:57
Processor has been on-line since 03/29/04 16:22:01.
The i386 processor operates at 826 MHz,
and has an i387 compatible floating point processor.
Status of processor 1 as of: 04/01/04 14:38:57
Processor has been on-line since 03/29/04 16:22:06.
The i386 processor operates at 826 MHz,
and has an i387 compatible floating point processor.
isip213_[1]: 5 1148
"Naveen Parihar" <pa*****@isip.msstate.edu> wrote in message
news:12**************************@posting.google.c om... I've a binary that runs on most of our servers but segfaults on one of the servers. Further, even on this specific machine, the binary runs successfully sometimes but segfaults most of the time. While trying to debug this behaviour using gdb, I found out that the segfaults occurs randomly at different places in the code. For example, once a pointer was not initiallized to NULL (it was pointing to x8 insterad of x0) in a constructor, even though it ran through the intialization code.
Has anyone come across this kind of behavior? Any help and/or information sf highly appreciated.
-Naveen
Did you step through the initialization and then the initialized pointer was
still NULL? I somehow doubt that unless your compiler is very broken. Could
it be that you´re missing an appropriate copy constructor? Without some
example code that can reproduce the problem one cannot really give a precise
answer.
Regards
Chris
"Chris Theis" <Ch*************@nospam.cern.ch> wrote in message news:<c4**********@sunnews.cern.ch>... "Naveen Parihar" <pa*****@isip.msstate.edu> wrote in message news:12**************************@posting.google.c om... I've a binary that runs on most of our servers but segfaults on one of the servers. Further, even on this specific machine, the binary runs successfully sometimes but segfaults most of the time. While trying to debug this behaviour using gdb, I found out that the segfaults occurs randomly at different places in the code. For example, once a pointer was not initiallized to NULL (it was pointing to x8 insterad of x0) in a constructor, even though it ran through the intialization code.
Has anyone come across this kind of behavior? Any help and/or information sf highly appreciated.
-Naveen
Did you step through the initialization and then the initialized pointer was still NULL? I somehow doubt that unless your compiler is very broken. Could it be that you´re missing an appropriate copy constructor? Without some example code that can reproduce the problem one cannot really give a precise answer.
Thanks for the reply.
This problem occurs while using a fairly complicated speech
recognition system. And the code base and runtime is so large that it
is not feasible to step through every single step of execution. Note
that the segfaults occurs randomly.
One of the instances of segfault occured immediately after declaring a
vector of about 10,000 singlelinkedlist. The documentation for both
Vector and SingleLinkedList is available here: http://www.isip.msstate.edu/projects...documentation/
It turns out that the last (tail) pointer of the element of vector, a
single linked list object, was not initialized to NULL. All the other
elements (singlelinkedlists) that I looked at were properly intialized
through the default constructor.
All these segfaults occur on a specific machine. We have other servers
identical (in hardware and OS) and everything runs fine on them. Also,
we share the same developement binaries (compiler, linker, etc.)
across all the machines and so, complier should not be an issue.
-Naveen
"Chris Theis" <Ch*************@nospam.cern.ch> wrote in message news:<c4**********@sunnews.cern.ch>... "Naveen Parihar" <pa*****@isip.msstate.edu> wrote in message news:12**************************@posting.google.c om... I've a binary that runs on most of our servers but segfaults on one of the servers. Further, even on this specific machine, the binary runs successfully sometimes but segfaults most of the time. While trying to debug this behaviour using gdb, I found out that the segfaults occurs randomly at different places in the code. For example, once a pointer was not initiallized to NULL (it was pointing to x8 insterad of x0) in a constructor, even though it ran through the intialization code.
Has anyone come across this kind of behavior? Any help and/or information sf highly appreciated.
-Naveen
Did you step through the initialization and then the initialized pointer was still NULL? I somehow doubt that unless your compiler is very broken. Could it be that you´re missing an appropriate copy constructor? Without some example code that can reproduce the problem one cannot really give a precise answer.
Thanks for the reply.
This problem occurs while using a fairly complicated speech
recognition system. And the code base and runtime is so large that it
is not feasible to step through every single step of execution. Note
that the segfaults occurs randomly.
One of the instances of segfault occured immediately after declaring a
vector of about 10,000 singlelinkedlist. The documentation for both
Vector and SingleLinkedList is available here: http://www.isip.msstate.edu/projects...documentation/
It turns out that the last (tail) pointer of the element of vector, a
single linked list object, was not initialized to NULL. All the other
elements (singlelinkedlists) that I looked at were properly intialized
through the default constructor.
All these segfaults occur on a specific machine. We have other servers
identical (in hardware and OS) and everything runs fine on them. Also,
we share the same developement binaries (compiler, linker, etc.)
across all the machines and so, complier should not be an issue.
-Naveen
> It turns out that the last (tail) pointer of the element of vector, a single linked list object, was not initialized to NULL. All the other elements (singlelinkedlists) that I looked at were properly intialized through the default constructor.
All these segfaults occur on a specific machine. We have other servers identical (in hardware and OS) and everything runs fine on them. Also, we share the same developement binaries (compiler, linker, etc.) across all the machines and so, complier should not be an issue.
-Naveen
Your errant server must be being bombarded by cosmic rays or other ionizing
radiation. Try lead shielding, it is cheap.
john
> It turns out that the last (tail) pointer of the element of vector, a single linked list object, was not initialized to NULL. All the other elements (singlelinkedlists) that I looked at were properly intialized through the default constructor.
All these segfaults occur on a specific machine. We have other servers identical (in hardware and OS) and everything runs fine on them. Also, we share the same developement binaries (compiler, linker, etc.) across all the machines and so, complier should not be an issue.
-Naveen
Your errant server must be being bombarded by cosmic rays or other ionizing
radiation. Try lead shielding, it is cheap.
john This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: marko |
last post by:
I'm having big problems with php and mysql. php segfaults on certain
mysql calls, with the following logs in apache error log:
child pid 60386 exit signal
Segmentation fault (11)
and in the...
|
by: David F. Skoll |
last post by:
Hi,
I'm tearing my hair out on this one. I'm trying to embed a Perl
interpreter into a C program. I need to be able to create and destroy
the interpreter periodically, but will never actually...
|
by: Naveen Parihar |
last post by:
I've a binary that runs on most of our servers but segfaults on one of
the servers. Further, even on this specific machine, the binary runs
successfully sometimes but segfaults most of the time....
|
by: Matthias Kaeppler |
last post by:
Hi,
I thought it'd be a better idea to start a new thread dealing directly
with my problem. Okay, here's again what's happening:
I'm storing boost::shared_ptrS in an std::set. I supposed that on...
|
by: David Douthitt |
last post by:
I have a binary statically linked application that was compiled against
Red Hat 7.3 (presumably glibc 2.2.5). The application SegFaults when
run in a Red Hat Advanced Server environment - with...
|
by: ncf |
last post by:
Ok, I've been tring to resolve this issue for some time now (~1 day
which is way longer than normal for me) to no avail.
I am reading a file into a list in memory, using a "%" delimited file...
|
by: Frank Millman |
last post by:
Hi all
I am using Python 2.4.1. I have machines running FC4, RH9, and MSW
Server 2003 for testing.
If I call sax.make_parser() from the interpreter or from a stand-alone
program, it works...
|
by: Josh Zenker |
last post by:
I've been working on an implementation of Dijkstra's algorithm on and
off for the past few days. I thought I was close to being finished,
but clearly I've done something wrong. I'm not a very...
|
by: lucky |
last post by:
Hi Guys
You are probably my last chance to avoid getting crazy
To help you understand my problem I have put images online showing the
issue I have:
http://www.australix.net/images/pb
I...
|
by: nsm.nikhil |
last post by:
I'm writing a small game, and I've been getting an almost pathetic bug
with SDL.
I've written a small wrapper (textutil.h:rtTextUtil) to make rendering
easy.
Now if i call it from a class...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |