LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-02-2005, 01:12 PM   #1
grupoapunte
LQ Newbie
 
Registered: Apr 2005
Posts: 26

Rep: Reputation: 15
Question Program received signal SIGPIPE, Broken pipe.


Hi I have a problem with a child proces, I 'll try to explain a bit of my program first:
It's a networked system that simulates an intelligent house, every room is a program they are connected with eachother by dors (in this case sockets AF_INET TCP) every person on each room is another program (not child) and also conected by sockets to the room.

Ok this is what happend when I have the crash:
I have 2 rooms(R1 and R2) and 1 person (P1), first P1 is in R1, when P1 goes to R2 the proces is killed and reborn in R2 ( I must do it this way) its reborn by makeing fork() in R2 and then execl(), when P1 returns to R1 the same thing happend again, Ok now P1 is back again in R1 but this time as a child proces of R1. Im using ncurses last dist, if I hit a few times any key the room (R1) program gives me this:

Program received signal SIGPIPE, Broken pipe.
0xffffe410 in ?? ()
(gdb) where
#0 0xffffe410 in ?? ()
#1 0xbfffd698 in ?? ()
#2 0x40142ff4 in ?? () from /lib/tls/libc.so.6
#3 0xbfffd670 in ?? ()
#4 0x400e8a41 in send () from /lib/tls/libc.so.6
#5 0x0804a07f in MySend (iSocket=7, cBuffer=0xbfffd710, iLen=21, iMode=1) at lib_socket.c:137

The key manager have nothing to do with this crash, cuz I have tested it with P1 connected to R1 but not as child and this dosent happend, Im reading sockets and keyboard using select(), I have a signal handler for SIGCHLD, SIGPIPE, and others.

Please help me or point me in any direcction, or ask me for more information if you need it.

Tanks Damian.

Last edited by grupoapunte; 06-02-2005 at 06:53 PM.
 
Old 06-03-2005, 05:49 AM   #2
murugesan
Member
 
Registered: May 2003
Location: Bangalore ,Karnataka, India, Asia, Earth, Solar system, milky way galaxy, black hole
Distribution: murugesan openssl
Posts: 181

Rep: Reputation: 29
http://mail.nl.linux.org/xchat-discu.../msg00045.html

gdb will report a received signal even if it's being ignored by the application.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
received signal 11 ligne Linux - Software 8 07-28-2005 05:10 PM
Program received signal SIGSEGV, Segmentation fault ims_mca Linux - Distributions 0 03-09-2005 04:16 AM
Install termiated abnormally - received signal 11 bgs264 Fedora - Installation 1 03-06-2005 05:50 PM
received signal 11, exiting.... sortebo Linux - Software 3 06-23-2003 03:42 AM
received Signal 7 ????? sachinkatak Linux - Hardware 2 06-17-2002 04:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration