We have an application that runs under Linux, solaris. The Application
was developed in C++ under linux, it supports both Oracle and Informix
database.
For database connectivity in oracle it uses OTL (Oracle template
library) and for informix it uses ESQL
In all the platforms we use GNU C/C++ compiler for building the
executable( Version >= 3.3.2)
Now we are trying to port this application to IBM AIX 5.2 machine (64
bit machine), it compiles fine, when we run the server for Oracle it
works fine but when we run the same server for informix it crashes
(Signal 11, Segmentation fault).
The crash happens in various places, some time it happens when we
allocate memory for an object using new system call.
Following is the error Output detected by GDB:
Location: When program try to create informix data adaptor (using new)
for second time.
Error with Thread:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1]
0x09000000002d8 94c in _usched_swtch ()
from /usr/lib/libpthreads.a(s hr_xpg5_64.o)
(gdb) where
#0 0x09000000002d8 94c in _usched_swtch ()
from /usr/lib/libpthreads.a(s hr_xpg5_64.o)
#1 0x09000000002d9 19c in _event_wait ()
from /usr/lib/libpthreads.a(s hr_xpg5_64.o)
#2 0x09000000002e4 d54 in _cond_wait_loca l ()
from /usr/lib/libpthreads.a(s hr_xpg5_64.o)
#3 0x09000000002e5 1b4 in _cond_wait ()
from /usr/lib/libpthreads.a(s hr_xpg5_64.o)
#4 0x09000000002d4 b50 in pthread_join ()
from /usr/lib/libpthreads.a(s hr_xpg5_64.o)
#5 0x00000001000b8 074 in CServerThread:: CreateThread (this=<incomple te
type>)
at
/mega/ETL/ETLServer/Server_ORG/Source/ETLUtilities/ETLCommunicatio nInterf
ace/ETLThread/ETLUtilitiesThr ead.cpp:282
#6 0x0000000100001 5dc in main (argc=271486416 , argv=<incomplet e type>)
at /usr/local/include/c++/3.3.2/bits/stl_iterator.h: 602
sometime it happens when application try to connect with informix
database using ESQL connect
Following is the error Output detected by GDB:
Location: When program try to connect to informix database using
informix data adaptor
Error with Thread:
Program received signal SIGSEGV, Segmentation fault.
0x0900000000043 170 in malloc_y () from /usr/lib/libc.a(shr_64.o )
(gdb) where
#0 0x0900000000043 170 in malloc_y () from /usr/lib/libc.a(shr_64.o )
#1 0x0900000000042 93c in malloc_y_heap () from
/usr/lib/libc.a(shr_64.o )
#2 0x0000000100241 990 in ifx_alloc_conn_ user ()
#3 0x000000010012e fe8 in CEsqlDataAdapto r::EsqlConnect (
this=<incomplet e type>, ai_strUserName= 0x1103a78a8 "megaadm",
ai_strPassword= 0x1103a7350 "megaplus",
ai_strConnectSt ring=0x1103a5ca 8 "merkur_net ",
ai_strDatabaseN ame=0x1103a5cf8 "INFSRCREP3 01") at
ETLEsqlDataAdap tor.ec:271
#4 0x0000000100126 25c in CInformixDataAd aptor::Connect
(this=0x1103f04 30,
ai_strUserName= 0x1103a78a8 "megaadm",
ai_strPassword= 0x1103a7350 "megaplus",
ai_strConnectSt ring=0x1103a5ca 8 "merkur_net ",
ai_strDatabaseN ame=0x1103a5cf8 "INFSRCREP3 01")
at ETLInformixData Adaptor.cpp:279
we checked the memory allocation in our program, it is fine (it runs in
Linux, Solaris, SCO and Windows), we also used GNU Malloc library for
compiling the application, still crashs at the same positions
Please let me know if anyone have a clue how to solve this problem.
Thanks in advance. 0 2423 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: tony |
last post by:
hi.
i have net application that is compose of dll in vb.net and c managed code ,
and unmanaged.
the application crash after 8-9 hours of running.
its crash without any message box of exception (i compile it in debug
mode ).
i guess it crash in the unmanaged code, but im not sure.
|
by: roni |
last post by:
hi.
i have application written in vb.net + managed c++ dll that call also to
unmanaged c++ function.
the application crash.
i open the dump file of the crash with WinDbg and that's is the call stack
(using the sos.dll) :
=====================================
|
by: GL |
last post by:
I am getting a crash while exiting from my application. Pl find the
Stack Trace of the crash:
System.Windows.Forms.Application.ThreadWindows.ThreadWindows(System.Windows.Forms.Control
parent = <undefined value>, bool onlyWinForms = true) + 0x8c bytes
system.windows.forms.dll!ThreadContext.DisposeThreadWindows() + 0x54
bytes
system.windows.forms.dll!ThreadContext.Dispose() + 0xa1 bytes...
|
by: tony |
last post by:
hi.
my NET application is using mixed c++ dll ( managed and unmanaged)
in that dll , im calling api's of unamanged dll.
my application crash with no exception or warning.
its hard to find when the crash happen ,and where.
|
by: Ralf Gedrat |
last post by:
Hello!
I have some Vb.Net applications, which are terminated at indefinite times
without message.
If I call in the program regulated system.GC.Collect, then the program is
terminated here sporadically without message.
It's not possible to debug in visual studio, i get no exceptions
(application is terminated unexpectedly without message).
| |
by: Sam Loveridge |
last post by:
Hi All.
I'm hoping someone can point me in the direction of a solution to unhandled
exceptions in MDI child forms causing the application to crash.
I've found various articles describing a method using Application.Run(new
MyMainParentForm) to place in the application's Sub Main to allow catching
of unhandled exceptions in the application. The problem I'm facing is that I
want to be able to trap unhandled exceptions at the MDI child...
|
by: Frank Rizzo |
last post by:
I have a c# 2.0 winform app that runs under a user account with very
limited rights. The application crashes on some actions (the Send Error
to Microsoft screen) with unauthorized exception.
This is despite the fact that I have try catch blocks around pretty much
absolutely everything. I've tried logging to disk, but it seems to
crash on a deeper level.
The app works fine when run under an admin account.
So how can I audit what the...
|
by: Nalaka |
last post by:
Hi,
Can you tell me what type a things in asp.net code can crash... "application
pool".
Any example would do....
I was under imresiion that code cannot crash the app pool.
Any direction is deeply appreciated
Nalaka
|
by: timor.super |
last post by:
Hi group,
I have a strange error.
I'm a beginner with dotnet 3.0, when i try to run an wpf application
from my windows explorer, the application crash.
For example, i've downloaded the demo project at this url :
http://www.codeproject.com/useritems/wpfdemo1.asp, that contains an
exe and the source code.
|
by: Tony Johansson |
last post by:
Hello!
We have a C#.ASP.NET application that runs on a IIS 6. The application
contains actually several asp pages but there is no GUI.
The application receive an xml file that is processed.
There is also an MFC dll that is called from this asp application to make a
syntax check on quite many commands.
You don't have to know what a command is.
The problem that we get is the following when the asp pages calls the MFC
|
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: 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: 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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |