Hi Chris, Thanks for replying.
I have the source code. I have moved my source code from Unix to Linux, compiled the code and then facing this problem. I tried gdb, but it is showing me the line number where the program is dumping core. I don't see any problem with that line because its a simple integer variable declaration. Now i tried printing the variables passed to the function which is failing and they are also fine. Main problem is that our code runs through tuxedo so i can't create the binaries using gdb and can't put debugs on line but only attaching the gdb with binary process id. The program runs fine in Unix and also not showing any warnings while compiling in linux. Anuj Agarwal Engineering is the art of making what you want from things you can get. On Fri, May 27, 2011 at 9:24 PM, Chris Miller <[email protected]>wrote: > Learn to use GDB, or if it's even available for Linux yet, LDB. > > Debuggers are great tools which allow you to see the exact line of > code the segfault came from. > > It's many many hundreds of times better than trying to beat through it > with printf and silly trace messages. > > There are many tutorials on using GDB from the command line on the > Internet. A few minutes with Google should provide you with ample > material to get started with. > > If you don't have the source code, then I'm not sure why you're even > asking. HP Unix and Linux aren't binary-compatible because Linux isn't > a true Unix system (it doesn't pass Open Group certification). Running > Unix binaries on Linux is entertaining in the sense that it's also > entertaining to watch the fire department burn down test houses during > training exercises. It's amusing, but it's not going to get much done. > > -- > Registered Linux Addict #431495 > For Faith and Family! | John 3:16! > fsdev.net | 0x5f3759df.org | chrismiller.at > > -- > You received this message because you are subscribed to the Linux Users > Group. > To post a message, send email to [email protected] > To unsubscribe, send email to [email protected] > For more options, visit our group at > http://groups.google.com/group/linuxusersgroup > Please remember to abide by our list rules (http://tinyurl.com/LUG-Rulesor > http://cdn.fsdev.net/List-Rules.pdf) > -- You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules or http://cdn.fsdev.net/List-Rules.pdf)
