Programming :: Process Hangs Up Upon Receiving More Than 8 Or 10 Signals In Centos-5?

Jul 23, 2011

My program is creating 4 threads per transaction. Threads doing nothing but simply sleeping.

Now, when transaction ends, I want to wake up all the threads from sleeping. For this I am using pthread_kill() to wake up the threads using signal SIGUSR2.

Problem raises when I put more transactions(eg. 100 trans). My process gets hangup.

View 3 Replies


ADVERTISEMENT

Programming :: Using SIGNALS In Kernel Modules?

Apr 23, 2010

I am writing a kernel module which need to do something at some interval. Now this problem can be solved by using a user process, which will send signal to the kernel and the kernel would do accordingly. But it would be nice, i could do it within the kernel module itself. Is there any way to use SIGNALs inside the kernel module?

View 3 Replies View Related

CentOS 5 :: Wireless Signals Not Being Detected On HP Laptop

Oct 13, 2009

I am new to cent os. I have install cent os 5 in my HP laptop. I updated my cent os also. But it is not detecting the wireless signals.

View 2 Replies View Related

Programming :: Catching Multiple Signals In A Single Handler In C?

Apr 26, 2011

Is it possible to handle multiple signals in just one handler? I only know singal() catches one signal at a time

View 2 Replies View Related

Programming :: Connecting Signals In Anjuta / Gtkmm - Errors During Compilation

May 24, 2010

i got this simple example of a code, its basicly Anjuta Gtkmm empty project. [URL] and trying to connect button signal to a function at line 67, however i receive errors during compilation, and i dont know what's wrong error output [URL]

View 1 Replies View Related

Programming :: Why Different Signals Send To Programs That Exceeded Memory Limit Set By Setrlimit()?

Sep 2, 2010

I'm having a problem with setrlimit() under linux.

If i used setrlimit(RLIMIT_AS) to set a hard ceiling of virtual memory usage first, then request memory more than that, shouldn't i receive a signal like SIGSEGV?

First i tried the command ulimit in bash, which acted as if i called setrlimit(). i tried 3 programs that overflowed the memory limit i set. i though all the programs would be terminated by a SIGSEGV. but the pascal program received SIGKILL; the C++ program got SIGABRT› the C program, SIGSEGV.

I though there maybe something different between setrlimit() and ulimit, so i wrote a program in C++, fork() first, setrlimit() then execv() in the child, and wait(&status) in the parent. but i got the same result.

I was wondering why these could happen, and could anyone tell me how could i deal with them? i mean, how can i judge that the program exited abnormally because it exceed memory limit?

View 2 Replies View Related

Ubuntu Servers :: Writing Init Script - Signals To Kill The Process (Ctrl-C) From A Bash Script And Exit Dtach (Ctrl-`)

Dec 5, 2010

I'm trying to write a init.d script to daemonise a sagemath notebook server. Here's what I've done so far, I've copied /etc/init.d/single for the structure, and tried to use dtach to provide a handle to access the process. However, my main problem is issuing the signals to kill the process (Ctrl-C) from a bash script and exit dtach (Ctrl-`)

[Code]...

View 1 Replies View Related

Ubuntu :: Receiving Error When Trying To Run In Administrative Mode "failed To Execute Child Process"

Nov 16, 2010

receiving an error when trying to run in administrative mode "failed to execute child process "amddxdg-su"(no such file or directory. how do i resolve this?

View 1 Replies View Related

CentOS 5 :: 5.2 Servers Are Not Receiving Updates

Mar 26, 2009

I think my CentOS 5.2 servers are not receiving updates. The last update in my logs occurred on Feb 5th 2009;

Feb 05 09:55:45 Updated: nss - 3.12.2.0-4.el5.centos.i386
Feb 05 09:55:52 Updated: xulrunner - 1.9.0.6-1.el5.i386
Feb 05 09:55:53 Updated: nss-tools - 3.12.2.0-4.el5.centos.i386
Feb 05 09:56:00 Updated: firefox - 3.0.6-1.el5.centos.i386

View 6 Replies View Related

Programming :: Having Trouble Receiving Image In Android

Feb 19, 2011

I'm trying to send an image (which can vary in file size) from a python server to an android client . I'm not getting any errors and the file is being created client side however it always seems to fall short of the total file size. I have tried many different options in regards to input streams and buffer sizes but I have had no luck.

View 1 Replies View Related

Programming :: Receiving The Entire Message Using TCP Socket?

Apr 15, 2010

I am trying to create a socket server in user space and a client in kernel space and send big messages (a little over 64kbytes) between them.

I used an kernel socket programming examplefrom this link - url for the kernel client side.

When the client in kernel side sends out a 64k message, usually, the server side in the user space will get a big part of the message, but will stuck at waiting for the recv() to return to get the rest of it. So I am chopping the packets into small pieces, 1000 bytes each to send to the server. But only some times, the packets will all arrive at the server/receiver side, and the server and assemble the whole message. Many times, the server is stuck at waiting for the last a couple of byte from the sending side. From the sending side printk log, it has already sent every thing.

I am attaching some log here, and the code at the end. Can someone give me some idea on how to force the data to arrive at the receiver side? Maybe the kernel on the receiver side is holding part of the packet so
the receiver program in the user space is blocked at recv()? I tried adding TCP_NODELAY on sockets on both sender and receiver sides, both it did not help.

I got a connection from (10.16.216.217 , 1489)
- Server side stuck on recv()-
bytes_recieved 17384
bytes_recieved 32768, total received 50152, expected 65540
- Client side is already done -
code....

View 2 Replies View Related

Networking :: Socket Programming: Sending And Receiving Msgs Back And Forth

May 19, 2010

I have a server which is used by number of client Apps. Now when a client initiates a sendto request to a server it has to respond(after recvfrom) by sending a message using sendto back to client and this should be done back and forth.

What I dont understand is, does the client have to open a new port to receive packets from client? If yes, then how will server know to what port of the client(assuming server ports are well-known to clients)?

I had given up on sending messages back and forth using UDP and switched to TCP. I could send a read and write message back and forth. But the trouble comes when I have more than one client wanting to talk to server using SOCK_STREAM. The first one gets through but the second client seems to get blocked forever(but I got no error upon socket creation or upon connect with the server on the same port as the previous client)..

View 4 Replies View Related

Programming :: Receiving Wrong Data On Winsock From Unix Socket

Jan 28, 2011

currently I've got a big problem on programming with sockets. I use the winsock2 API and want to receive data from a multicast adress running on a UNIX-PC. The connection works fine and I really receive data from this group, but as it seems not the right packages. The received data is saved in a char[]. E.g. at received_msg[12] is a float value. This one I would like to read out, convert and use it in later progress the next value is y at received_msg[16]. The same Code works on a Unix PC with unix sockets but converted to winsock I've got the described problem and I have to make this code work under windows.

Here a piece of the code (received_msg[12]='3f'):

Buffer is a struct containing the two float values x and y. If I convert the char as this under windows the value of x is a huge number. The correct value is around 192, so receveid_message[12] should be 1.92. Could it be that the Unix-PC is sending data in an other way than the winsock receive it?

View 2 Replies View Related

Programming :: While Receiving Can Use Functions Like Strchr() To Differentiate These Fields For Sockets?

Apr 15, 2009

constructing a protocol where in it involves sending and receiving different files, so sending data over consists of file name, size of the file and content of the file, so while receiving can i use functions like strchr() to differentiate these fields for sockets? so to allocate memory for file to save i need to have its size.

View 3 Replies View Related

Fedora :: When Using The Yum Gui It Hangs At 1/3 Of The Process Meter

Dec 18, 2010

i have a problem when using the yum gui it hangs at 1/3 of the process meter and wont budge no matter how long i leave it , using terminall everything works fine and fast but i would like if the gui is fixed its alot easier when searching for a suitable software

View 4 Replies View Related

Software :: Background Process Hangs?

Feb 10, 2011

I have a process A running in the background. When I start another process B also in the background, the system hangs the moment I hit any key. Process A and B communicate over a socket. Iam not even able to do a telnet to the system. Is there any precautions that I need to take while running in background

View 1 Replies View Related

Ubuntu :: 11.04 Hangs During Configuration Process

May 23, 2011

It goes through the kernel boot up, and the icon with the circle and keyboard. Then it stays on a blank screen with a large courser on the upper right corner. Then the courser becomes small. It sits their for a long time. Then the screen to boot or install comes up, and everything works fine. It hangs during the configuration process. I am unable to skip. I think it hangs during the kernel config.

I click on the drop down arrow and see the fallowing:
ubuntu ubiquity : update-initramfs: generating /boot/initrd.img-2.6.38-8-generic
My pc set up is as fallows:
Asus M2N-MX SE Plus
AMD Athlon64 X2 5000
A sata samsung lightscribe dvd
A IDE Western Digital HD (Do not know what model)
NVIDIA GeForce 9500

It is from a downloaded burnt copy. The md5 is good. I burnt it at a slow speed. I do have a known good 10.10, but it starts out exactly the same.

View 9 Replies View Related

Programming :: Displaying Process Id In Shell Script But There Is No Such Process?

Nov 9, 2010

I have a shell script to identify whether the process is running or not. If the process is not running, then I execute another script file to run my application. Below is my script and saved this script as monitorprocess.sh Code: #!/bin/bash

result=$(ps -ef | grep -v grep | grep "applicationname.sh" | awk '{print $2}')
echo $result
if [ "$result" == "" ];

[code]...

View 4 Replies View Related

Programming :: Difference Between Init.rc Process And Normal Process?

Mar 31, 2011

Is there any difference in cpu usage for process in init.rc(runs automatic when boot is happened) and manually running process. Will these both have same priority by default...?

View 1 Replies View Related

Programming ::get The PID Of The Process Giving Kill Signal To A Process?

Nov 26, 2008

I tried googling but didn't get any answer for this.I have a process called "abc" and it is running with PID "123".I have a putty session opened with PID "999".I am giving kill -TERM 123 from putty session.My process "abc" before dying it should catch the PID of the terminal which provided TERM signal to it.Is there any way to find this out

View 2 Replies View Related

Fedora Installation :: F12 64 Bit - Starts The Boot Process And Then It Hangs

Dec 28, 2009

I'm attempting to install F12 64 bit. I currently have F10 running on this system. I'd like to do a clean install. I'm using the DVD. I boot the computer with the DVD in. I choose the first option (Install or upgrade). It starts the boot process and then it hangs. [URL]

After asking at #Fedora I was given the advice to boot with `intel_iommu=off`. That gets me slightly further in the process. It gets to the point where anaconda is starting. Then all heck breaks loose. It appears the monitor loses the signal from the computer (power light turns red just like if the computer was off). The caps lock and the scroll lock lights on the keyboard blink about once a second. The DVD drive continues to spin for about a minute and then stops. Since I have no display, I have no idea what's going on.

View 2 Replies View Related

Fedora Installation :: Process Hangs When Hourglass Filled Up

Jun 24, 2010

I tried to run Fedora 13 from a live CD on my old HP Pavilion a375c desktop (512MB RAM,3GHZ CPU,160GB Hard drive). The installation CD boots, shows the Fedora hourglass, but hangs when the hourglass is filled. I have used the same CD on a Lenovo Thinkpad T61 and a Dell desktop with 512MB memory without any problem. So the problem seems to be on the HP side. I've also tried to boot with CDLinux and Ubuntu live CD on the HP machine. All have the same symptom - hangs at the end of the hourglass during boot. Anything I can do to pass this stage? The HP spec is here: [URL].

View 8 Replies View Related

Ubuntu :: Shutdown Hangs - Rc Main Process Killed?

Mar 29, 2010

recently a weird error occured on my Ubuntu Karmic. When I shutdown (or reboot) the os, the flashing logo shows and then the whole process hangs with last few lines of shutdown log displayed. The last line then says this error:

Code:
init: rc main process (pid) killed by TERM signal where pid is actual pid of that process.

Then I have to shutdown the computer manually with hardware button. It's no big deal, it's just not that comfortable and I'd really like to know why this is happening.

View 1 Replies View Related

Ubuntu Servers :: Sometimes Does Not Start - Boot Process But Then Hangs

Oct 31, 2010

Running Ubuntu Server 10.04 32 bit. Sometimes when I reboot it does not start up, It seems to be going through the boot process but then just hangs. I have had a look at the log files and can't see anything, but I'm not really sure what I am looking for.

View 2 Replies View Related

Ubuntu Servers :: Process Hangs While Cleaning Cache?

Dec 7, 2010

I have a NFS server and I'm periodically cleaning the cache by using the following lines:

Code:

/bin/sync; /bin/echo 1 > /proc/sys/vm/drop_caches
/bin/sync; /bin/echo 2 > /proc/sys/vm/drop_caches

during the last days the cleaning process gets stucked at '/bin/echo 2', here's the process data:

Code:

27426 root 20 0 5488 704 576 R 100 0.0 896:06.34 /bin/echo 2

the process keeps running, so I find this more strange since it's not in zombie or D state.

View 2 Replies View Related

General :: Computer Hangs After Installation In Reboot Process

Dec 9, 2010

I installed Ubuntu in my PC alongside winXP. I downloaded the ISO and mounted it using a virtual image software (PowerISO used in winXP). I installed Ubuntu using wubi in a 20GB partition. During installation it asked me how much space should I give, I gave it 11gb. Everything went fine. I rebooted but now the computer hangs during startup. I went to verbose mode to see what the error is and found out that everything is ok. The last line that apears is "Setting sensors limit [OK]" and then nothing happens. I have tried every option (safe graphic mode/ demo mode etc etc) but the computer hangs.

View 1 Replies View Related

Slackware :: Unable To Complete Installation Of 13.0 - Process Hangs

May 28, 2010

I am unable to complete the installation of Slack 13.0 on a new machine with Intel DH55HC motherboard and Intel Core i5 750 processor. The installation proceeds smoothly until the 3'rd CD and then hangs at the FONTCONFIG UPDATE stage. The hung process is apparently rescan-scsi-bus which reaches this stage

"Scanning host 6 channels 0 for SCSI target IDs ....
"Scanning for device 6 0 0 0...
"NEW:

It is not possible to kill this process even with "kill -9". I have to kill the parent process which is Slack setup, so the installation is incomplete. There is another recent thread on this issue [URL] but it did not resolve my problem. How to correct or bypass this difficulty (maybe another kernel? I use the default).

View 5 Replies View Related

Fedora Installation :: Process Hangs On File 841of 1091?

Aug 8, 2009

New to linux. Trying it out on old laptop. First effort to get off MS OS. Toshiba satellite, celeron processor. Probably around 5 years old. Not sure about the rest of the specifics. Downloaded fedora 11, i386 version for DVD. Performed the media check at the beginning of the install (passed). 3 attempts to install so far. Begins without issue. Gets to installing file 841 of 1091 and just hangs. First time it was file # 831. Have let it sit for as long as 7 hours before shutting off power. Do I need to start with earlier version? Would like to confirm before I spend a bunch of time on downloads and burning disks.

View 11 Replies View Related

Fedora Installation :: Full DVD Install Process Hangs Constantly

Oct 20, 2009

I am trying to install Fedora 11 from a DVD. Not the live DVD, the full DVD and it hangs constantly. I had to wait 10 minutes for it to Find Storage Devices, 10 minutes to input a root password and now I am waiting for the drive shares to be setup. It's already been 10 minutes. I verified the disk and everything was fine. Why is this taking so long?

View 4 Replies View Related

Fedora :: Microcode - Boot Process Hangs At Startx Time

Sep 4, 2010

Ever since the kernel update to 2.6.34.6-47.fc13.x86_64, my boot process hangs at about startx time. I boot cleanly at runlevel 3 in either this or the previous 2.6.33.8 kernel. If I execute startx from here (in either kernel), the system hangs at the same place. During the early troubleshooting, I read in another thread (250929) about installing xorg-x11-drv-catalyst, which I did using yum. This led to the failure of the 2.6.33 kernel; yum remove did not fix this. I have carefully followed the instructions in the fglrx HOWTO (updated a week ago by Hlingler) as they relate to a PAE kernel (including reinstalling mesa-libGL), and that fixed earlier difficulties. Hence, I felt I needed a new thread.

dmesg tells me
Code:
microcode: CPU0: patch_level=0x2000032
platform microcode: firmware: requesting amd-ucode/microcode_amd.bin
Linux video capture interface: v2.00
piix4_smbus 0000:00:14.0: SMBus Host Controller at 0xb00, revision 0
microcode: CPU1: patch_level=0x2000032
platform microcode: firmware: requesting amd-ucode/microcode_amd.bin
microcode: Microcode Update Driver: v2.00 .....

But the program itself reports
Code:
# microcode_ctl -h
This program is for updating the microcode on Intel processors belonging to the IA32 family - PentiumPro upwards (x86-64 included). It depends on the Linux kernel driver. The website urbanmyth.org/microcode (mentioned by yum info microcode_ctl) clearly indicates that Intel has taken over this microcodecode distribution, and suggests that it is no longer valid for AMD processors.

I found a reference to a kernel configuration flag CONFIG_MICROCODE_AMD (as a plausible subsititute for CONFIG_MICROCODE_INTEL) that possibly belongs in a script in /etc/init.d - but the above context leads me to suspect this is not true any more. In any event, those flags are not mentioned anywhere in my init.d scripts - in fact nowhere in the entire /etc tree. My microcode file exists, and is dated March 23. How do I get it installed? Or is this completely unrelated to my hanging boot problem, as suggested by the "platform microcode" line in the dmesg output? If so, where should I be looking?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved