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.ms state.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 1162
"Naveen Parihar" <pa*****@isip.m sstate.edu> wrote in message
news:12******** *************** ***@posting.goo gle.com... 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.c h> wrote in message news:<c4******* ***@sunnews.cer n.ch>... "Naveen Parihar" <pa*****@isip.m sstate.edu> wrote in message news:12******** *************** ***@posting.goo gle.com... 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 singlelinkedlis t. The documentation for both
Vector and SingleLinkedLis t 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 (singlelinkedli sts) 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.c h> wrote in message news:<c4******* ***@sunnews.cer n.ch>... "Naveen Parihar" <pa*****@isip.m sstate.edu> wrote in message news:12******** *************** ***@posting.goo gle.com... 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 singlelinkedlis t. The documentation for both
Vector and SingleLinkedLis t 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 (singlelinkedli sts) 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 (singlelinkedli sts) 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 (singlelinkedli sts) 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 syslog:
May 4 13:53:49 op-fi1 /kernel: pid 60023 (httpd), uid 80: exited on
signal 11
The following code segfaults php every time (or apache when accessed
|
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 have two interpreters
at the same time.
On Red Hat Linux 7.3 with Perl 5.6.1, the attached program segfaults. On
Red Hat 9 with Perl 5.8.0, it works perfectly. Save the program code
as "test-embed-perl.c" and the build script as "buildte". ...
|
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. 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...
|
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
program exit, when the set's dtor is called, the shared_ptrS would clean
up after themselves appropriately. What actually happens though is that
the program segfaults when the set is destructed.
I noticed that erasing the smart pointers from...
|
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 glibc 2.3.2.
I had another binary (Samhain - to which I have source!) which had the
same problem and exhibited the same strace. After a recompile, the
newly compiled static binary worked fine.
Why is this? The first binary I don't have source...
| |
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
format (which allows for comments on lines beginning with "#"), and
some of the messages are not correctly copied.
I believe the problem may be somewhere around the strcpy() call, but am
not sure at all.
|
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 fine on all machines, but in the following setup it
works correctly on MSW, but segfaults on both FC4 and RH9.
The setup is a client program running wxPython as a gui, and Twisted as
|
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 experienced
programmer, so please be patient.
My code compiles in g++ without any errors or warnings. Unfortunately
it segfaults when it runs. I tried adding some outputs to the console
throughout the "Dijkstra" function but wasn't able to...
|
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 have an XML file containing links and I use an XSL file to build a
|
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 defined in a header file
(class.h:ClassGood), it works fine, but if i call it in a class
declared in a header file but defined in a .cpp (ClassBad) it
segfaults.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |