Programming :: Mishandling Of Mutex Leads To CPU Load 100% On Hp Ia64 Platform

Apr 7, 2010

I am working on an issue in mishandling of mutex. A process was holding onto to a valid mutex for running, within this routine, it created a local mutex variable, copied the content of the valid mutex into this local mutex variable, freed the valid mutex, then used the address of the local mutex variable as the parameter to functions pthread_mutex_unlock() and pthread_mutex_destroy(). It was observed that CPU load 100% with scheduler staying in a loop. The program was halted. I try to seek an explanation to the relation between the CPU load and mutex mishandling in this scenario. I also hope some one will share the experience how this bug might manifest into problems on other platforms.

View 3 Replies


ADVERTISEMENT

General :: Will Zombie Process Leads To Server Load Unstable

Jun 14, 2010

There are around 173 zombie process on my client's server, my question is whether zombie process on the server will make server's load unstable like it goes to 20-26 suddenly and comes down and goes high suddenly,will zombie process consume system's resource?..

View 8 Replies View Related

Programming :: Pthread And Mutex With Short Unlock Time?

Jun 15, 2010

I am wondering if pthread could make that a single thread keeps the "mutex" all the time if the time it remains unlocked is very small.

thread1
{
while (1)
{
lock; do_task(); unlock();

[code]...

I experiment the thread2 never getting access to the mutex and never printing the nice message. I would expect that once thread2 calls "lock", it would get the mutex as soon as thread1 calls unlock() but it does not seem to be the case. If I add a sleep of some microseconds (100) in thread1 after unlocking the mutex, it solves the problem.

Does anyone know if this behaviour is normal? Is there a way to configure my mutex so that thread2 receives it when unlocked?I use

pthread_mutexattr_settype(&att, PTHREAD_MUTEX_RECURSIVE_NP);
pthread_mutex_init(&handle, &att);

to create my mutex. I am running ubuntu 9.04

View 3 Replies View Related

Programming :: Locking Mutex In A Signal Handler Function?

Feb 15, 2010

locking mutex (phtread_t type) in a signal handler function (installed by function signal()) for Linux. It seems that if the mutex has been previously locked by another thread outside the signal handler function and then the signal handler function tries to lock it, the whole process hangs.

View 5 Replies View Related

Programming :: Pthread_mutex_lock Returning EDEADLK For A Mutex Of Type PTHREAD_MUTEX_RECURSIVE

May 28, 2010

I am getting following assertion in my application:

pthread_mutex_lock.c:275: __pthread_mutex_lock: Assertion `(e) != 35 || (kind != PTHREAD_MUTEX_ERRORCHECK_NP && kind != PTHREAD_MUTEX_RECURSIVE_NP)' failed.

all my mutexes are of type PTHREAD_MUTEX_RECURSIVE and as per all the man pages/tutorials, EDEADLK error is to be returned for mutex of type PTHREAD_MUTEX_ERRORCHECK ONLY.I really should not be hitting this assertion.Would some kinda weird memory corruption be causing this? Or is there something more to it that I am not aware of.I am using linux kernel 2.6.2, glibc 2.5 on PPC.

View 8 Replies View Related

Programming :: Pthread_cond_wait - When Thread1 Invokes The Mutex Lock - No Other Threads Can Access It In Parallel

Mar 2, 2011

If multiple threads operate on a single shared resource, we can lock it using pthread_mutex_lock. Uptill that it is fine, but why again pthread_cond_wait?

int shared=0; // global
.
.
// Thread 1
pthread_mutex_lock(&mutex);
shared=1;
pthread_mutex_unlock(&mutex);

When thread1 invokes the mutex lock, no other threads can access it in parallel. So why again and what for we use, pthread_cond_wait( ).

View 2 Replies View Related

Programming :: Fortran - Array-valued Function Leads To Segfault?

Jun 8, 2010

I'm trying to implement a solver for a system of differential equations in Fortran. The solver contains a number of functions which are supposed take real values, 1D arrays of real values or both as arguments and return arrays of real numbers, all of which cause the program to segfault. Example:

Code:

function y_exakt(t)
implicit none
real::t, pi

[code]....

(the last number in the array seems to change randomly). Then the program crashes either when f(t,y) is called or when dy is returned (after removing the call to f). What could cause these (memory?) problems and/or what could I do to identify the problem? Increasing the maximum stack size with ulimit or compiling the program with -fno-automatic has had no effect. I'm using gfortran (gcc 4.4.3) on a 64-bit Ubuntu Lucid machine. The complete program can be found at [URL].

View 3 Replies View Related

Programming :: Groovy Scripting - An Object-oriented Programming Language For The Java Platform ?

Mar 7, 2010

Groovy is an object-oriented programming language for the Java platform. I do not have experience in Java, only perl and shell scripts. Recently I have been asked to maintain a software written in groovy (also to make enhancements). So can I learn groovy without knowing java language. or isit I have to learn java before venturing into groovy.

View 1 Replies View Related

General :: Debian IA64 Img Installation?

Oct 19, 2010

i am trying to get starting installing debian on my virtual server what is supported for IA64 and i have try'd this few different version(se bellow) and the img fail isin't boting?

debian-503-ia64-businesscard(notice diffrent version tryed to)
debian-503-ia64-CD-1(notice diffrent version tryed to)
debian-503-ia64-netinst(notice diffrent version tryed to)

I have used before virutal server and booted successfully a img file and installed a operating system sow what is wrong?

[Code]...

View 6 Replies View Related

Debian Programming :: Cross Platform Sql Gui Apps

Jun 8, 2014

What are the availability`s for cross platform sql , gui, application development using raw code in the Debian environment. I would rather work with raw code. I have been working with PHP MySQL, need to advance to Universe Application Development cross platform Raw Code for both mobile and desk top.

View 1 Replies View Related

Programming :: Cross-Platform Compiling -m32 Flag

May 14, 2010

I have an odd thing. And thats the following:

I entered: gcc raw.c -m32 -g -static -o raw

And I got:

I installed all bin32 libs I am on a x64 system.

View 6 Replies View Related

Debian Programming :: Way To Create Cross-platform GUI Application

Oct 30, 2014

I'm looking for a way to create a cross-platform GUI application. The result must be able to run on linux, windows and OSX. And it must be a point-and-click GUI.For development I should be able to rely on Open-Source tools on linux only (that means no access to Windows or OSX)The target should be able to install the result relatively easily, that means any dependencies must be freely available, and the setup steps must be very minimal (probably means no installing development tools or running compilers)

My first thought was java, but the standard Swing GUI can look a bit ugly on some platforms. So I'm wondering if there's anything else. My next thought was C++/Qt, but I don't think I can cross-compile this from Debian for Windows or OSX, can I? Next I thought of python and PyQt, but it looks like PyQt isn't available for OSX. And finally I even thought of making some kind of web application running on a tiny web server of some kind, then accessing it with a native browser, but I'm pretty sure this doesn't meet the "easy to install" criteria. I'm finding this so tricky, do all the existing cross-platform applications use natively-compiled C++ for this? Or is there an obvious alternative that I'm overlooking?

View 6 Replies View Related

Programming :: Cross-platform LAN File Exchange Program?

Sep 2, 2010

I recently faced a problem. At my college, I linked my laptop with my friend's laptop with an ad-hoc wifi network. I wanted to send him a file. I was running Ubuntu, and he was running XP. Unfortunately, I could not find an easy way to send him the file. Another problem I faced was when I wanted to transfer the contents of my hard disk to another computer. I had to install Filezilla server on the other computer, and upload the files from one computer to the other.

I feel that its a really cumbersome method of transferring files in the same network. Mobile phones have bluetooth, and a file can be sent to another mobile very easily without any fuss. Does anyone know whether any such program exists already? If not, I want to write such a program that will allow one user to add another user to a personal network, and send or recieve files and/or communicate in other ways. The only language I know is Python (self-taught). I was wondering what GUI framework to use. I've never written a GUI program before, and would like to hear your opinions. This will be a very basic program, and must be able to run on many platforms.

View 6 Replies View Related

Programming :: How To Design Cross Platform Computer Software

Jun 3, 2010

I want to learn how to create computer software/programs. I want to be able to design them to be cross platform (Win32, OSX, Linux). I was wondering if anyone knows what kind of courses I need to take for this? And would it be possible to study by myself and learn it for free?

View 13 Replies View Related

Programming :: Finding A Cross Platform Library That Allow To Run Another Program?

Aug 19, 2010

Is there any equivalent of WaitFOrMultipleObjects on Linux?

I was finding a cross Platform library that allow you to run another program from your C++ application. I found POCO but it does not support functionality like WaitFOrMultipleObjects for both (linux and windows). I tried boost Process but its not official till now.

View 1 Replies View Related

Programming :: What Cross-platform GUI Toolkit Can Work For Both Mac And Windows

Dec 27, 2009

I'm trying to persuade my classmate migrating to linux but they always fall back to windows when homeworks require creating GUI (graphical user interface) applications. Not only because C# and Window forms/WPF is so sissily easy to use. But some teachers only test homework on Window machine. I have tried pyGTK and wxPython but they have some flaws. wxPython seem a little bit messy with so many look-alike class name and it's ID based event binding is somewhat awkward. pyGTK seems nice and neat but it doesn't have Mac port yet.

View 4 Replies View Related

Programming :: Maintain A Cross Platform SDL/OpenGL Project?

Feb 11, 2011

I have made a game for Linux and want to release it soon (on linux & windows). Since its SDL/OpenGL and I dont do any special things it shouldn't be much porting to windows. Problem: Maintaining I have the game in code::blocks SDL project on Linux. So I got wine and installed wined Code::Blocks with MingW so I can cross compile on Linux. For another game I made, I used a Makefile which has "if" statements to set up compile variables. And everything else is totally identical to windows & linux (code, source files and etc...)

With codeblocks I got used to not having to worry about makefiles and it did well and I better focused on making the game rather than everytime a new file is added editing the makefile and etc... Is there some nice ways to have a cross platform environment to make it easy to make games for Linux and windows. I'm thinking of making my own system of auto-generating a makefile (essentially upgrading the setup I have for my previous game to auto add entry's to the makefile & some other stuff).

View 2 Replies View Related

Programming :: Ptrace System Command Not Working Properly In X86 Platform

Apr 20, 2011

basically in the child process iam just calling the ptrace(PTRACE_TRACEME, 0, NULL, NULL) system call but if add this stsyem call rest of the code not working properly. i found the reason basically what happening is when we have ptrace() system call its printing the same variable 3 times i.e its not executing it 3 times but just it is printing 3 times .iam just wondering how it could be possible.

View 1 Replies View Related

Software :: Jdk1.5.0_08 Install - Cannot Execute Binary File - X86_64 Versus Ia64

Sep 17, 2009

I have java jdk1.5.0_08 installed on linux x86_64 architecture and I can execute java -version no problem. I took the same binaries and installed on ia64 architecture and the command java -version gives and error "cannot execute binary file" The Linux OS versions are 2.6.18-128.1.10.el5 on x86_64 and 2.6.18-128.4.1.el5 on ia64 Do you know whether the jdk1.5.0_08 binaries are compatible between x86_64 and ia64 architecture. The answer may be no, but I may be wrong and there could be some other issue. Where can I get the jdk1.5.0_08 specific to ia64 architecture for Linux version 2.6.18-128.4.1.e15

View 1 Replies View Related

Programming :: Error Installing Valgrind : Failed To Start Tool 'memcheck' For Platform ?

Dec 15, 2010

I tried to install valgrind to my local directory (I don't have privilege to install it under root) by doing the following 3 steps:

(1) ./configure --prefix=/my/local/directory

(2) make

(3) make install

when I run
./valgrind ls -l
as instructed by README, I got this error: valgrind: failed to start tool 'memcheck' for platform 'x86-linux': No such file or directory

View 1 Replies View Related

Applications :: Accessing Shared Data Between Threads Using Mutex?

May 3, 2010

I have written an application which has more than 6 threads.Two threads share a common linked list. Out of two threads one thread reads the linked list node and other thread writes to linked list node.I am using pthread_mutex_lock() API to achieve synchronisation between having access to common linked list. The problem is the first thread which reads the linked list accesses the mutex faster making other thread to starve.

I want both the thread to have an access to mutex. It should not happen that always first thread locks, releases and relocks it. The first thread almost require to access the link list every 5 msec which is causing second thread not to gain the mutex.How should I fix this? For information, I am running this application on PXA270 ARM platform.

View 4 Replies View Related

Debian Installation :: Leads To NetCard Lost

Feb 8, 2010

My computer has been installed a system of Windows XP,and I want to experience the outstanding of this Linux system.So I decide to install two system on my computer,but bad luck ,I've found that I can't find the netcard in the new installed system ,and it is the in the primary system.

View 2 Replies View Related

OpenSUSE Install :: Using Gnome-Shell Leads To CLI Login?

Mar 14, 2011

I installed 11.3 last week and eventually got nvidia drivers working. I was quite happy how most things were progressing, then the temptation to upgrade to 11.4 got too much I upgraded today (online, not dvd) and everything went well. On rebooting the desktop came up as normal and all was good. I installed nvidia and got that working ok. I then installed Gnome-Shell and couldn't figure out how to get it working. I've been using Fedora recently and the Gnome-Shell option is available at Login. I then discovered the gnome-shell --replace terminal command and I tried it. It seemed to load ok, but as I had used the terminal, when I closed the terminal it seems like compiz crashed. I lost all windows borders and nothing was usable. I REISUB'd and started again. On reboot I got a CLI login prompt. After logging in I tried startx, to no avail. I then tried gdm start and got to the desktop again (not gnome-shell). I Alt+F2'd and ran gnome-shell --replace again and all was good - except no network I rebooted again, and got the CLI again. Went through it all again and tried to configure network (wireless) no good. I then connected an ethernet cable and tried again. That worked, but I'm not sure why - I didn't think anything was downloaded. Anyway wireless now works ok - even on reboot. However I'm still getting dumped to the CLI login on restarts.

View 9 Replies View Related

Ubuntu Servers :: Https:// Leads To Another Site On My Server

Jul 12, 2010

A while back, I put a site up under a LAMP setup, and followed a guide from ubuntuforums that I googled to set up SSL encryption for the site.

That site works great, but since then, I've added some other sites to the same LAMP server. They load fine as well, but if I type in https:// before going to the latter sites, the browser attempts to redirect to the first, and warns that it is a fraudulent certificate, and that I'm at risk by going to the site.

Obviously, it isn't an attack site, the certificate is just set up for only one domain. How do I prevent my non-SSL sites from redirecting to the SSL-encrypted site?

View 6 Replies View Related

Debian Configuration :: Samba + Aufs Leads To Kernel Crash

Apr 20, 2010

I've got a server with bit of chaos on it. There is similar data on different partitions which I like to mount remotely with samba. So I setup aufs on the server and then share the merged aufs directory (as read only). All seemed fine, and I was able to mount it nicely. However, when I enter the directory in question does the kernel on the mounting puter start misbehaving.

First it freezes for about a minute. Then I get a bunch of oops-looking messages in dmesg and the system eventually locks up totally. This is what it looks like:

...
[  882.616497] BUG: soft lockup - CPU#1 stuck for 61s! [bash:2715]
[  882.616501] Modules linked in: nls_utf8 cifs nvidia(P) agpgart sco bridge stp bnep l2cap bluetooth rfkill cpufreq_userspace cpufreq_stats cpufreq_conservative cpufreq_powersave binfmt_misc fuse loop firewire_sbp2 snd_wavefront snd_intel8x0

[Code].....

View 4 Replies View Related

Ubuntu :: Grub2 Manual Section Leads To Blank Display

Apr 3, 2010

Today, just hurry the boot process up a few seconds, I manually selected the kernel to boot to. Everything went well and got to the point where I heard the bootup sound and then the screen went blank and my monitor on-switch went orange - indicating nothing to display.

If I pressed the delete key I could hear the sound made when there's nothing more to delete. I switched to one of the virtual terminals and the monitor switch went green but no display.

I rebooted and let the bootup process as normal and everything was OK. I repeated the initial bootup process, with the manual selection, and it went blank again. The odd thing is, I'm sure I've recently done this before and all was fine.

View 6 Replies View Related

Hardware :: Startx Command Leads To A Blank And Hanged Screen?

Mar 29, 2011

Just installed CentOS 5.5 in text mode because the GUI mode keeps hanging midway installation. The text mode installation worked sucessfully but when the installation finished and rebooted the system i got the localhost login thing which i typed root and provided my password,logged in successfully but then the cursor was just blinking waiting for the next command, i then typed startx but immidiatelythe screen goes blank and hangs. I guess the problem has to do with vga but i'm newbie and don't knw what next to do.

View 1 Replies View Related

Ubuntu Installation :: Desktop Activity Settings Leads To Blank Screen

Apr 27, 2010

I've upgraded from Karmic 64-bit kubuntu to the RC build for Lucid. I have two pcs connected to two monitors via an Aten dual head KVM switch. With the new release I only get a background slideshow on one monitor. I can get an image on the first monitor by right clicking and choosing Next Wallpaper image, but it never changes. When I select Desktop Activity Settings both monitors go entirely blank, except for the mouse cursor. The Display Multiple Monitors screen has ticks in all the multiple monitor checkboxes and Identify All Displays correctly identifies both monitors.

View 1 Replies View Related

Ubuntu Installation :: Partitioning (User) Error Leads To Failed Boot?

Nov 10, 2010

Here's the situation: I have the newest release of Ubuntu running in dual mode with a constantly failing Windows XP. I installed with GRUB and had no issues, but wanted to have access to the Windows files from Ubuntu (it did a logical partition and I couldn't locate any of the Windows files), allocate more space to Ubuntu and make the dual mode more efficient. Last night, I read up on how to do these things, went to GParted to briefly look at how the partitioning process would work. I believed that I took no action, shut down, and now the computer won't boot. It brings up the HP load screen with the Boot Device Menu and ROM Based Setup but immediately goes to a black screen with a flashing white bar. I tried restoring my defaults in the BIOS and I tested the RAM and HDD, each failing to resolve my issue. I'm assuming that whatever I've done is keeping the computer from knowing where to boot from.

View 6 Replies View Related

Ubuntu Installation :: Partial Upgrade Leads To Kernel Panic Error Message / Fix It?

Jan 29, 2010

I got a notification that there was an upgrade available today in ubuntu 9.10 64, after the update i restarted my system and while booting i encountered this error message:

Kernel panic - not syncing : VFS : Unable to mount root fs on unknown - block (8,17)

does this have something to do with the OS looking at the wrong hd?
theres no command prompt to actually do anything and i tried booting in safe mode and had the same problem. Let me know what i can do!

View 3 Replies View Related







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