Programming :: Gcc Client Error Report ?
Nov 1, 2010gcc linux client error report:
View 8 Repliesgcc linux client error report:
View 8 RepliesI am writing a TCP server in C, and the server listens to incoming client connections and accepts them. It then creates a thread to handle the client. The clients are expected to only receive data from my server and not send any data. So if I use a select() call with a recv(), I believe that the recv() will just block forever since there will not be any data coming from the client. If I use a non-blocking recv(), then this will just return a 0 which tells me nothing because the client is not expected to send any data. I am not sure if I have misunderstood some socket concepts, but I need a solution to detect when the client has disconnected so that I can close the socket and stop sending data to the client. As I understand it, simple ACKs etc are not captured by the recv(), and only data sent by the client will cause recv() to return a non-zero value, so I am not sure how to know when the client has disconnected.
View 7 Replies View Relatedit's not a real bug/error in Ubuntu per se, but i found an error in the spanish language pack of Ubuntu.There were some words that weren't translated right.I was wondering how to report/change that.I actually found it in the Ubuntu 9.10 spanish language pack, so i don't know if it's been fixed for lucid, but i thought it would be good to know either way just in case i find some other translation errors.
View 6 Replies View RelatedI have one simple question: how to tell gcc compiler to check for external functions to be matched by its prototype?
Consider this example:
Code:
master tests # cat file1.c
#include <stdio.h>
#include "file1.h"
[Code]....
what warnings or flag will prevent these examples from sucessful compilation? GCC version: gcc version 4.4.3 (Gentoo 4.4.3-r2 p1.2)
Logwatch has been showing me there is kernal errors present on my server.Below is the full report from logwatch, please let me know if there is anything I should be aware of and fix.
View 1 Replies View RelatedEvery time I selected addons and Mysql i got a notice of a bug report. So i gave in and only selected server and it is installing. I hope i can read enough to get it installed..
View 1 Replies View RelatedI've been trying to make sense out of this error report. I get it every once in a while on startup of my machine.
Code:
Summary:
SELinux is preventing /usr/sbin/ntpd access to a leaked netlink_route_socket
file descriptor.
Detailed Description:
[ntpd has a permissive type (ntpd_t). This access was not denied.]
SELinux denied access requested by the ntpd command. It looks like this is either a leaked descriptor or ntpd output was redirected to a file it is not allowed to access. Leaks usually can be ignored since SELinux is just closing the leak and reporting the error. The application does not use the descriptor, so it will run properly. If this is a redirection, you will not get output in the netlink_route_socket. You should generate a bugzilla on selinux-policy, and it will get routed to the appropriate package. You can safely ignore this avc.
Allowing Access:
You can generate a local policy module to allow this access - see FAQ [URL]
Additional Information:
Source Context system_u:system_r:ntpd_t:s0
Target Context system_u:system_r:firstboot_t:s0
Target Objects netlink_route_socket [ netlink_route_socket ]
Source ntpd
Source Path /usr/sbin/ntpd
Port <Unknown>
Host localhost.localdomain
Source RPM Packages ntp-4.2.6p2-7.fc14
Target RPM Packages
Policy RPM selinux-policy-3.9.7-3.fc14
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Plugin Name leaks
Host Name localhost.localdomain
Platform Linux localhost.localdomain 2.6.35.6-45.fc14.i686
#1 SMP Mon Oct 18 23:56:17 UTC 2010 i686 i686
Alert Count 1
First Seen Fri 21 Jan 2011 02:01:09 AM PST
Last Seen Fri 21 Jan 2011 02:01:09 AM PST
Local ID fb73799a-8d3c-4d9a-8c06-a0c1b6d4814e
Line Numbers
Raw Audit Messages
node=localhost.localdomain type=AVC msg=audit(1295604069.730:15): avc: denied { read write } for pid=1731 comm="ntpd" path="socket:[14643]" dev=sockfs ino=14643 scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:system_r:firstboot_t:s0 tclass=netlink_route_socket
node=localhost.localdomain type=SYSCALL msg=audit(1295604069.730:15): arch=40000003 syscall=11 success=yes exit=0 a0=8a1ad60 a1=8a1b040 a2=8a1b2c8 a3=8a1b040 items=0 ppid=1730 pid=1731 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="ntpd" exe="/usr/sbin/ntpd" subj=system_u:system_r:ntpd_t:s0 key=(null)
I am getting an error when i generat a report with squid's report generator ( sarg )is there a tool or way that i can find where in the log file the error is, the log file is 61442 lines, and it's gonna take me forever to find the error,
View 1 Replies View RelatedFirefox 3.1 beta 3 won't load. When I open the application, the little bouncy icon bounces, and the task manager shows "Firefox Web Browser", but this only stays this way for about 15 seconds then just goes away. No error or anything.
I've had this identical problem when I try to open certain programs with Wine too. Is there some place I can find a detailed error report on these failures?
I have a server listening on incoming client connections. Once the client establishes SSL connection with the server, the server waits on read() from the client. Only Client can disconnect the connection. I want to have a timer in the server program to wait for x secs after read() and then disconnect the Client connection.
View 3 Replies View Relatedi have a server program which accept multiple client connection and am using polling. like every 2 secs it will look to client whether any data is received after it binded. i have used setitimer but there is runtime error i got.. the server accept all client connection but doesn't execute any msg which client sent.
#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<sys/types.h>
#include<netdb.h>
#include<unistd.h>
#include<pthread.h>
#include<string.h>
[Code]....
Is it possible to swap a client ip and port ? This is what I am trying to do. Let say you have Comp1 and Comp2 And you have Server between them. My goal is to get Comp1 and Comp2 know each others IP So Comp1 connects to server And server stores comp1's IP In a text file or other place And Comp2 connect to server And server also stores his info And then both comp1 and comp2 dowload the tex file And use the info on it.
View 9 Replies View RelatedI have been messing with diff and grep for 2 days now without result
I am trying to match a file consisting of words to many separate other wordfiles in a specific directory. one by one.
What i want the script to do is to report how many matching words my main file has with every file in the directory, each in turn
setup:
Each of em are plain text files with 1 word per line
Output should be something like:
SCRIPT REPORT:
parsing xml file using shell script and generate report in a PDF file
Xml file input:
<report>
<student name="x" father name="x1" class="first" Address="xyz">
<property name="sports" value="yes"/>
<property name="drawing" value="no"/>
[code]....
I'm working with OpenSusse 11.2. I installed and activated the NFS server via yast2. I exported the relevant directory via yast2 (NFS server configurastion)
I'm trying to setup my Linux target to boot via NFS. The kernel boots up but fails to mount the file system. When looking on a capture from ethereal it can be found that the NFS server return error when client try to mount the /nfstest directory from this server. The returned error is 13
serverip: 192.168.56.130
targetip: 192.168.20.180
gateway: 192.168.20.101
[Code].....
I'm unable to change the setting of the actual printer on my system, cant even delete itthe system ask me the root password, after i enter it, i always get this message "There was an error during the CUPS operation:'client-error-not-authorized'."
View 8 Replies View RelatedI've been switching out computers to the Ubuntu distro and so far it's been very successful until this recent snag! As I am trying to have a printer plugged in through USB on one computer and shared on the other! I have the USB on the second computer and it found the printer just fine, no problems and nothing else I had to install! I then went to the first computer and tried to add the printer through the CUPS website using all the proper addresses and queue names and I receive CUPS "client-error-not-possible". I have read other threads on this very same problem but to be honest they just make no sense whatsoever to me! I was thinking of just giving up and using a print server but I know that I will run into the same snag as even then I still need CUPS.
View 9 Replies View RelatedI just installed say with
Code:
sudo apt-get install epos
and everything went fine, until I tried to use it.
When i do
Code:
say hello
it gives me
Quote:
he~lo######~T
Could not open localsound device, error 2 Client side error: Could not set up a stream
I can't update my system - I am runing Karmic/9.10 When I launch Update Manager, I get: "Please report this bug for the 'update-manager' package and try to include the following error message: 'E:Encountered a section with no Package: header, Eroblem with MergeList /var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_karmic_main_i18 n_Translation-en%5fGB, E:The package lists or status file could not be parsed or opened.' "
View 2 Replies View RelatedI was intending to do a clean install of 10.04.I have downloaded and burned desktop-i386.iso.After booting from CD and selecting install from the menu, I get the splash screen for a few minutes, then black screen, then purple ubuntu screen, then the error message "the installer has encountered an unrecoverable error. A desktop session will now be run etc.....".
I am thinking this may be related to ACPI, because when i 'Try Ubuntu without installing' it loads ok but I get a 'Crash Report' notification on the panel.
If again 'Try Ubuntu without installing' with F6 option "ACPI=Off" it loads up with no problem.
Another thing I noticed is that when I load with ACPI=OFF, my external drives automount, but if i dont turn ACPI off, and get the Crash report notification the external drives do not automount.
GNU Emacs 23.1.1 I've noticed that if I run Emacs and M-x server-start, I can use the emacsclient program as usual, but if if I start Emacs using emacs --daemon and then try to use emacsclient the new frame locks up and the shell outputs *ERROR*: Arithmetic error. This issue doesn't happen if I use the -t flag to force terminal mode when running emacsclient.
View 2 Replies View RelatedI am trying to setup an HPC4400 printer attached to a Windows XP box on a Fedora-11 box with the latest updates and am getting the error " Cups server error Client-error-not-possible ". Using the Cups GUI on the fedora-11 box I can find the printer, I get verify that the shared printer exists but still get the message when I try to install it.
View 2 Replies View RelatedI hooked up an Hp deskjet portable to ubuntu and keep getting the above error when I finish installing the printer! How do I get by this? 10.04 LTS It's hooked up to LPT-1 port!
View 1 Replies View RelatedToday I upgraded my 10.10 to 11.04. Since the last step of upgrading, when it was restarted, I get stucked in consola where it is checking, and there is written fail at stopping automatic crash report generation. How can I repair it. I tried to do
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo reboot
but it doesn't do it properly.
I tried to install JRE 6 After adding partner repository I wanted the updates by this command sudo apt-get updateI got the following errorE: Malformed line 54 in source list etc/apt/source.list (dist parse)what does it mean and how to rectify.
View 1 Replies View RelatedI am running Fedora 15 and want to add a network printer (Brother HL 2040) on a Win pc reunning XP pro. Fedora finds the network printer, shows that is shares, but when I try to finish I get the above message. I have emptied the spool file of the test page I tried earlier and nothing but the tmp file remains. Anyone have any suggestions?
View 1 Replies View RelatedI am looking for an easy to use svn client for linux.I have been suggested to use kdesvn. The problem with that client is that there are a few things that I do not understand.To begin withIn kdesvn there is theSubversion->Ceneral->check out repositoryand there is also the File->open,1) what is the difference between these two?2) Also is there a way every time I launch kdesvn to have the same repository loaded in the same working directory?3) When I change something into a file should I do file or whole folder commit? I am not sure what will be the best based on that I only write one comment which in the first case associates with the file only and in the latter associates with the whole folder
View 1 Replies View Relatediam just trying to connect to server which accepts one client and server will read(blocking operation) infinitely, but After closing the client socket the server "read operation" is returning zero and "errno variable(in errno.h)" value is also zero. how can i detect whether a client socket is closed/active..?
client.c
Serv_Addr.sin_family = AF_INET;
Serv_Addr.sin_addr.s_addr = inet_addr("127.0.0.1");
Serv_Addr.sin_port = htons(26553);
if( 0 > connect (Serv_Fds,&Serv_Addr,sizeof(Serv_Addr)) )
{
perror("connect");
return 0;
[Code]....
In all the examples I have found the server accepts the client's conection, proccess the data received and close the socket. In an very schematic way it would be something like:
Code:
client_thread{
select to see if there is data to read from socket fd
if there is something to read{
[code]....
Should I use mutexs or semaphores to block the socket fd before read and write or it is not necesary?
I looking for an algoritm to encrypt some data sent from a c program(client) to a php server(can be in perl or cgi-bin) over the internet. How should i send it in c? Some http call? Or it can be in via a perl script. Then i need some basic algoritm to encrypt it. Any ideas. How do i save the key in the c program? Just something basic so its not clear text. This is not for a bank or visacards etc
View 2 Replies View Related