strstr() in Solaris System


 
Thread Tools Search this Thread
Top Forums Programming strstr() in Solaris System
# 15  
Old 12-04-2012
Are you compiling you code with gcc or the solaris compiler?

Is this a threaded application?
# 16  
Old 12-04-2012
Quote:
Originally Posted by jhon1257
Program terminated with signal 11, Segmentation fault.
Then why did you stated it was a bus error earlier ?

In any case, stack traces aren't going to help. There is a bug in your code (or, less likely, in a library it calls). Your process is accessing/freeing/corrupting memory outside of its allocated area. You are just lucky enough for this bug not to manifest itself in the other platform.

I would suggest you to review you code and check all memory access or better, to use a tool that does the job for you. Have a look to dbx check -all. , watchmalloc, valgrind and similar (purify).
# 17  
Old 12-04-2012
You have not shown enough code to be relevant.

Please do not leave people guessing. Show your code, all of it, or this thread will be closed.

If your code is too large to post, craft a minimal example that still crashes.

If you cannot, then you understand our problem in helping you...
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Programming

Linux/Solaris System Administrator to become a Linux/Solaris System Programmer?

Hi all What is the qualification required by Linux/Solaris System Administrator to become a Linux/Solaris System Programmer as to gain complete knowledge on computers. Thanks (1 Reply)
Discussion started by: Tlogine
1 Replies

2. UNIX for Dummies Questions & Answers

Help with Solaris file system

Hi, I have not worked on Solaris 10 that much. Need some help with this. I can't seem where the file or how the file systems are mounted. Please see the /etcvfstab below. more vfstab #device device mount FS fsck mount mount #to mount to fsck ... (3 Replies)
Discussion started by: samnyc
3 Replies

3. HP-UX

how to mount a file system from a solaris server into an hp-ux system

Hi all I wonder if its possible to mount on a hp-ux server a file system that was previously mounted on a solaris 10 server. The LUN is on NetApp stoarge. The problem on hp-ux I cannot do pvcreate on the lun (disk) because contains data. Any help will be appreciated FR (2 Replies)
Discussion started by: fretagi
2 Replies

4. Solaris

dual boot solaris/solaris zfs file system

Hi, I am running into a some problems creating a dual boot system of 2 solaris instances using ZFS file system and I was wondering if someone can help me out. First some back ground. I have been asked to change the file system of our server from UFS to ZFS. Currently we are using Solaris... (3 Replies)
Discussion started by: estammis
3 Replies

5. Solaris

Solaris 10 system requirements???

Hi guys, I have been using Solaris 10 virtually since a couple of weeks under VirtualBox. Now I want to run it on hardware as it doesn't seem to work well under VirtualBox, atleast to my knowledge. I have another system which I intend to run Solaris on, and it is as under. Processor:- Intel... (1 Reply)
Discussion started by: gabam
1 Replies

6. Solaris

Solaris 10 system hangs

Solaris 10 (Sun V210) System hangs every couple of months. Have to go into ALOM to reset. I did a consolehistory report and seen this in it. Failed to exec inetd_start method of instance svc:/network/bootps/udp:default: I/O error WARNING: /pci@1c,600000/scsi@2 (glm0): Resetting... (3 Replies)
Discussion started by: Joeentech
3 Replies

7. Solaris

How I can get System Performance on Solaris

Hi All, Can someone help me out knowing all commands for getting system performance on Solaris machines. Thanks in advance, Yagami Light. (5 Replies)
Discussion started by: Yagami
5 Replies

8. Solaris

rsh commands not getting executed from Solaris 10 System to AIX System

Hi Friends, I am trying to execute rsh commands from Solaris 10 system to AIX system. When I give; Solaris10# rsh <hostname> ls -l , it gives me an error rshd : 0826-826 The host name for your address is not known At the same time, Solaris10# rsh <hostname> ---- gives me remote shell of... (25 Replies)
Discussion started by: jumadhiya
25 Replies
Login or Register to Ask a Question