Programming :: Pthread_cancel Throw Exception But Not Always?
Apr 21, 2010
I am writing an application that uses POSIX thread. I am spawning a threads and threads performs task in infinite loop .I have another monitor which monitors the activities of these threads. Due to some reason I have to kill one thread from monitor thread. so I use pthread_cancel() . It terminates thread however it throws exception. I searched about the exception on internet and i am able to catch the exception and handle it as well . However the exception is not thrown every time . I wanted to know under what circumstances it throws exception. Accordingly I have to write cleanup handler
To parse several XML documents I'm using libxml++. I do programming for linux angstrom-armv5te. Because compiling libxml++ for this distribution and platform was impossible, I simply included the library to my project, which workes fine. Unfortunately I'm not able not use the exception handing which effects that a simple error inside a documents makes my whole program crash. This should not happen.
Is there a way to check the documents validity before parsing or better active the exception handling for doing this.
I have perl/tk installed and working. I tried using c++/tk and had to change the #include path in the headers to find the tk.h and tcl.h. I tried compiling a simple c++ program with g++ to test that the headers are correct. the line i type at console is:
g++ test.c cpptk.cc cpptkbase.cc -o test.bin
I fixed all previous errors, except for the following.
working on a script to update .Jar file, I have tried jar xf to unpack and jar cf to repack it is giving me java.lang.NoClassDefFoundError exception at main class. I also tried jar uf, which is also not working for me Basically my jar file requires to update date, which i do from "winrar" Manual it works fine, but now to remove "Donkey work", i want to make an script which does this all automatically, and the last stage is to update jar file which is not happening.
I've written a simple server in linux used fork to create a FIFO pipe.The server create two FIFO pipe.One for server read data from client and write data to client.Then another pipe for client read data from server and write data to server.When the server read data from a client used server-pipe and then write data to client.But ,if the client no read open the pipe,the server side write will be crashed because of a broken-pipe SIGPIPE. How to check whether the read side is opened?Or,how to catch the SIGPIPE,and then my server will still execute on,not crashed!!
I have a Macbook 2,1 since 2007. Last week my hard drive just died, so I decided to replace it with a new one, no problems with that. The problem came when I had to install an operative system, because my DVD drive has been broken for a year and a half now. I know we can easily install MacOSX from an external usb drive, but I don't have a big enough pendrive at the moment. So I went for Ubuntu. I have managed to get an Ubuntu 10.10 live usb stick working like charm, if anyone is interested. I just downloaded the latest i386 iso and followed this advice by pxwpxw for the 32bit EFI.
The only thing I had to change in the boot.cfg was the name of the iso and -very important- changed initrd.gz for initrd.lz. The live usb works great. But I decided to do an installation on the hard drive. I installed it using the whole hard drive and didn't get any errors. But when I boot the macbook it doesn't detect anything. I guess I need an EFI bootloader or something to make it work. I've tried to follow this guide but it seems to be intended for someone who already has MacOSX and the Ubuntu installation working. I just want to install a bootloader or whatever I need from the "outside" (from the live usb I'm using). I tried to just throw reFit into the main hard drive's root folder but it doesn't work. I think that maybe creating an HFS+ partition and installing reFit in it may work, but I don't think I can create that kind of partition from the Ubuntu usb and I also need a working MacOSX to run the enable.sh. I've also read of elilo but I've seen that it hasn't been updated for 3 years
I have a lot virtual hosts running on Apache. Directory browsing is enabled on every single vhost (by default), and I want to disable this globally. Been searching and struggling with this for some time now, but can't seem to get it right. I have tried following in my apache2.conf
Code: <Directory /var/www/> Options -Indexes FollowSymLinks MultiViews AllowOverride None </Directory> Also tried following in /sites-available/default
[Code]...
I know I can throw "Options -Indexes" on every single vhost, but it must be possible to do this globally.What am I doing wrong?
I'm having some trouble with NAT in my gateway.For the 10.13.0.0/16 network, I do not want to apply NAT through the gateway. However, the way it is configured, it is applying SOURCE NAT to traffic coming from 10.13.0.0/16 and changing source ip address to 8.8.8.1 For example, pinging from 10.13.0.11 to 10.101.14.1 (passing through the gateway, which is also a router in this case), then SNAT is applied and the ip packet gets changed to :
i'm aware it requires the use of 'cmake', i've installed the required plugins, and all i get is "missing make file"...I git cloned the packages properly
system occurs "Too many files open exception" when application server run serval hours. I use "ls -l /proc/pid/fd" command view all fd in this java process.I found that the number of pipe is increase slowly and constantly.
I tried to run xfire with wine (yes, i installed it with wine also from the installer) , and it gave me an exception error (picture in attachments), how do i fix this?
Google says this has something to do with Intel hardware and the way it handles real mode. run it with -no-kvm, but that's not much of a fix really.. so in the mean time I reverted to using qemu-kvm-devel-88 which works well, but is pretty old.
I want a internet browser to open a site that needs java engine,firefox has not this and also galeon :
The certificate is not trusted because it is self-signed.
(Error code: sec_error_ca_cert_invalid)
* This could be a problem with the server's configuration, or it could be someone trying to impersonate the server.
* If you have connected to this server successfully in the past, the error may be temporary, and you can try again later.
Or you can add an exception
You should not add an exception if you are using an internet connection that you do not trust completely or if you are not used to seeing a warning for this server.
If you still wish to add an exception for this site, you can do so in your advanced encryption settings.
How i can add exception or it is better to say me that :is there any browser instead of internet explorer for linux??
pidgin started crashing today for no apparent reason. It just shutdowns. No freezing or anything, it just goes away, disappears. From what I can say, there's no specific trigger for this, it can happen after 2 or 10 min after I started it. Once it even shutdown right 10seconds. I tried to run it from the terminal. When I do that, the only thing that appears before closing is
Code: Floating point exception Anyone has an idea of what it can be? I made no upgrade to pidgin or libpurple recently. I made however an upgrade today of the following packages
I have a cron job that backs up some files over to an external disk.It ignores the hidden folders in my home dir, by using the --exclude-from option.However, there is one specific hidden dir that I do want to back up.Is there some way to add an exception to the list of exclusions?
I am facing floating point exception issues in running top on some of my Red-Hat Linux servers
# top 6:45am up 476 days, 52 min, 4 users, load average: 0.00, 0.00, 0.00 109 processes: 108 sleeping, 1 running, 0 zombie, 0 stopped Floating point exception When I am executing the same command using strace or ltrace, its running fine. # ls -lrt /usr/bin/top
I am using a gateway server, 1st NIC eth0 which is acting as WAN (DHCP)and 2nd NIC acting LAN(static). I am using DHCP to assign IP to eth0 from a Wimax modem. I am also use it as a MAIL server (openmail), and as a DHCP server. My server is of RHEL and kernel version is 2.4.8.18-14 and DHCP client & server version - 30pl1-9. The prolem is whenever I run the command..
ifup eth0 getting the error...
Determining IP information for eth0.../ifup: line277: 23328 Floating point exception/sbin/dhclient ${DHCLIENTARGS} ${DEVICE} so what should I do?? if I update the DHCP, would it be ok?
I have problem in installing Fedora10 on to a UsbHarddisk(transend 250GB).
After installation of some packages it is saying that "An exception has occured .It is possibly a bug.file a report to bugzilla.redhat.com".
The problem is that,ihave previously seen this kind of message a month ago.And when i tried to install the second time it is installed. Can i debug it?
I have no problem when installing Fedora on to a normalharddisk.
Another question can i install both Gnome and Kde on the disk.
I had fuzzy icons in system tray so before couple of days i installed some updates and after that i have floating point exception in ktorrent and virtualbox 2.6.34.7-0.7-desktop #1 SMP PREEMPT 2010-12-13 11:13:53 +0100 i686 athlon i386 GNU/Linux
nvidia 9500 GT X.Org X Server 1.8.0 KDE 4.4.4 Here is the updates nvidia-gfxG02-kmp-desktop-260.19.21_k2.6.34.0_12-19.1 Tue 04 Jan 2011 04:14:42 PM CET x11-video-nvidiaG02-260.19.21-20.1
When I try to open Banshee, I can see the GUI for about half a second, then it closes with "Unhandled Exception: GLib.GException: Can't recursively copy directory".I'm running Ubuntu 10.10 amd64, and had an old version of banshee installed from a few releases back (don't remember which). I deleted the banshee-1 folder in my ~/.config directly, as well as uninstalled and reinstalled with no luck. Other Mono apps (such as gnome-do) work fine.Here is the full output of "banshee --debug":
This is the first time I post a question on these forums My problem is as follows: I can't start gnome-terminal from the Applications->Accesories menu or from the Alt+F2 application launcher. I get a "Starting Terminal" in the task-bar that disappears after a few seconds and no terminal. I'm pretty sure there is something I did, but I can't really figure out what it is.
The things I've tried so far:
1. I used synaptic to remove and reinstall gnome-terminal. That didn't work 2. Started Xterm and tried to run "gnome-terminal". This is where it gets weird for me:
a. running the command as normal user I get a "Floating point exception" error and obviosly no terminal b. when I do "sudo gnome-terminal" and enter the root password I get, as expected, a root terminal. I could live with that, but it's not ideal.
I have FC-4 with Squid and Dansguardian. Internet Users in my organisation are configured to use proxy with 8080 in browser IE. There's no issue with Users as DG working perfect for them. We have Business Development Team, as they need to do most of the research over internet, their IP's are included into "Exception IP List" in Dansguardian. Obviously these people will be excepted from all banned sites, BD Team able to do chat, play games and do social networking and other stuff over the net, which results in more bandwidth consumption and breaking office policies.
I have tried to implement SQUID ACL's to block few sites like " meebo.com, orkut.com,facebook.com etc" but SQUID acl's not coming into picture. any one who successfully blocked chat, banned sites and social networking in DG with my case.