segmentation fault - core dump
807575Jun 14 2004 — edited Jun 14 2004Hi,
I am facing the following problems when I am trying to port an application developed in Windows (32 bit) to solaris-8 (our environment is - SunOS solaris8 5.8 Generic_108528-17 sun4u sparc SUNW,Ultra-5_10). The application is developed in C & C++.
We have faced a problem while starting the application
Error : Bus Error - Core dumped
We got a fix as the -misalign option can be used to solve the problem.(We are using unpacked structures in the code) The same was solved after using the -misalign compiler option.
Following are the preprocessor macros and compiler options for all the source code compilations
-D_POSIX_SOURCE -D_REENTRANT -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__ -mt -misalign
Problem:
While running that application the following error occured during one particular scenario,
Problem:
t@8 (l@3) signal SEGV (access to address exceeded protections) in _doprnt at 0xfe704688
0xfe704688: _doprnt+0x0014: st %i5, [%sp + 0x64]
dbx: read of 4 bytes at address fd671f68 failed -- Error 0
Current function is LogTrace::LogTrace
308 ::sprintf( szBuffer, ls_cszTemplateClass, m_cpszClassName, m_cpszMethodName );
Its urgent pls. provide a solution/suggestion to fix the same.
Thanks in advance
Velan RS