Software :: Trap A Crashing App?
Aug 29, 2010
I would like to learn the right way, or some neat technique, to discover why a compiled-from-source application just unaccountably quits. it it easy enough to discover that the pre-compiled version from Ubuntu does work just fine. My motivation is to explore, and maybe try to modify it a little for myself.
At my level of programming expertise, I have often used the "sh configure, make, make install" route; and sometimes made small changes to the code eg. changing a window size and similar. C and C++ tutorials teach the main rules, but I am no expert at classes, structures or obscure expression tricks.
The application is a QT type called "qantenna", used for electromagnetic simulation of antennas. The source I downloaded from SourceForge. Although a KDE application, the repository version seems to run just fine on my Ubuntu 9.10 Karmic (soon to become Lucid), on its Gnome desktop.
The compiled version behavior is that the main window opens and runs OK, with the GUI view operating with fully alterable views. As soon as a valid antenna file is loaded, the whole application instantly quits.
How does one deal with an application that gives no chance to catch it doing things wrong?
View 14 Replies
ADVERTISEMENT
Nov 21, 2010
Code:
#!/bin/sh
onexit()
{
echo "Error At line - $1"
}
[Code].....
What I want to do is to make the onexit function to handle any generic error that comes during script execution. I am not thinking about using 'set -e' since it will cause a quick exit. I did 127, because I wanted my script to handle atleast the command not found error. I am not thinking about handling any interrupt or any other signal at the moment.
View 10 Replies
View Related
Mar 4, 2011
I'm trying to get SNMP setup so I can send custom snmp trap messages. I followed this "How to" [URL] and I think I have it setup and working. This is my fist time messing around with SNMP, and I don't know where to check to see if I received the trap message. Do the snmp trap message even get logged any where?
View 1 Replies
View Related
Nov 5, 2010
Quote: Attackers are constantly changing their tactics and adapting to what the security community and researchers are doing, and it's not unusual for the bad guys to adopt techniques used by their adversaries. The latest example of this is a malware gang that has deployed what amounts to a honeypot designed to monitor the activity of researchers or other attackers who try to access a command-and-control server.
View 1 Replies
View Related
Jun 16, 2010
#!/bin/sh
trap "echo Haha" SIGUSER1
echo "asit"
count=1
while [ $count -le 10 ]
do
echo "Loop #$count"
sleep 10
count=$[ $count + 1 ]
done
echo "This is the end"
Why this is showing following error?
trap: 3: SIGUSER1: bad trap
View 4 Replies
View Related
Oct 15, 2010
how an agent itself generate trap on some particular situation arises
View 1 Replies
View Related
Jul 3, 2010
how can I configure snmp and snmptrap to receive a trap when the used disk (/home/linux) is 20%
View 1 Replies
View Related
Mar 27, 2010
I wanted to know is there any way to send a content of a file as snmp trap with snmpd agent of linux?
View 3 Replies
View Related
Mar 16, 2011
I want to generate snmp trap when cpu usage is high..me how to configure snmpd.conf....to generate this trap...
View 2 Replies
View Related
Jan 8, 2011
In cisco 6509 switch port 1status is being traped it is showing "SNMP CRITICAL - *down(2)*"
View 2 Replies
View Related
Nov 8, 2010
I have a function in perl which I want to use trap all errors a script ocurs which the script does not explicitly handle. These errors are then logged to various places. So I tried to use a eval block but the problem I have is sometimes if you put a die statement in the evaled script it doesn't get handled. What I have so far is:
[Code]....
View 4 Replies
View Related
Jan 25, 2011
I ran Ubuntu 10 from a USB flash drive on my HP Desktop with an AMD Athlon processor (2.16 GHz), 512MB or RAM, and 160 GB of hard drive disk space. I gained access to the Internet and ran my e-mail program (Verizon). After about 10 minutes, the session froze. Not knowing the equivalent of Windows Task Manager, there was nothing I could do but do a cold boot. Are there setting that I can change that will prevent my sessions from crashing while using Ubuntu from a flash drive?
View 2 Replies
View Related
Apr 27, 2010
I have a vpn server and dhcp server installed on my debian box.All wired and wireless authenticate through the server.Each day the system crash, the only way to recover it is to restart the box.To be honest, I don't really know how to start.I started my new job recently and Linux is my weakness... yikes*
View 2 Replies
View Related
Nov 20, 2009
I had the latest adobe plug in installed in fedora 11, and then recently did a fresh install of fedora 12. The flash usually works fine until I open multiple tabs in firefox and crashes almost immeditely when I open multiple flash videos, though not always.It is not that big of a pain, but it would be nice to have multiple tabs open for the kind of work I do :-).
View 4 Replies
View Related
Feb 25, 2010
I log in, and it works perfectly fine until I try to actually use it. As soon as I click to open a chat with someone, it crashes. It wasn't doing this until this morning, and it's given me no problems before now, other than the occasional failure to send messages through.
When it crashes, it brings up the Bug Buddy bug reporting tool. Also, on further testing, it seems to only be doing this when I try to open a chat with my sister, and it does it whether it's recognizing her as being online or not.
View 11 Replies
View Related
May 12, 2010
i dont know what happens to my fedora 12 firefox browser it keep crashing after 5 minutes. the first one week after installation had no problem but since yesterday it keeps crashing after 5 minutes after start. please tell how to resolve this. and how to update my Mozilla firefox.
View 13 Replies
View Related
Aug 6, 2011
Fedora keeps crashing on me. It happens randomly. Sometimes it will give the equivalent of a blue screen for windows. Other times it will just reboot. [URL] Does any of this mean anything to anyone? Would really love to use fedora because I like it a lot an I'm getting familiar with it but it keeps crashing.
Its a fresh install. All I have done so far is installed updates via Yum, including the updated kernel, installed RPM fusion and I installed my wireless drivers.
View 2 Replies
View Related
Jul 19, 2010
I recently installed OpenSUSE 11.3 x86_64 on my dual core AMD box. Everything seems to run great except for OpenOffice Spreadsheet. Whenever I attempt to open a spreadsheet it crashes on me.
View 7 Replies
View Related
Nov 30, 2010
I've installed quantum GIS on opensuse 11.3 gnome, so far so good. I run the app and it opens fine. To get the app to use data on the HD you get a dialogue box with a browse button. It should just be a case of clicking browse and selecting the required data file. Unfortunately when I click on browse the app crashes. I've no idea how to get info about the crash in an attempt to solve the problem. Had a similar problem with gimp in suse 11 kde could only fix it by updating the os to 11.3.
View 4 Replies
View Related
Feb 12, 2011
Anybody knows a bluetooth application that works? Not like kbluetooth/KDE 3 that crashes anytime I run it. And where I can found it! (I need this to put some files on my mobile phone).
View 9 Replies
View Related
Aug 30, 2011
OpenSuse 11.4, 64-bit, using LXDE (but with KDE also installed. The system updated Firefox to version 6 yesterday, but now Firefox keeps crashing.I don't see anything in any logs, nor is there anything in the ~/.mozilla/firefox/Crash Reports directory.When I restart Firefox, sometimes it asks if I want to restart the lost sessions, sometimes it doesn't. Sometimes I have Firefox in the background, and I'm not even using it, and it will crash.Is there some other information I could grab? GPU Accelerated Windows 0/1. Blocked for your graphics driver version. Try updating your graphics driver to version <NOT Gallium> or newer.
View 1 Replies
View Related
Jan 28, 2010
I keep having problems with firefox. It keeps crashing when I'm listening to the radio. Has anyone else had this issue?
View 1 Replies
View Related
Jun 5, 2010
every time that im entering to eclipse and the mouse is over a method for example Socket ... the eclipse is crashing
this is the log file
hs_err_pid11080 - UpF.co.il
View 2 Replies
View Related
Sep 9, 2010
I have Ubuntu 10.04 32bit on two machines and the one my parents has been crashing/having other issues a lot (the other is fine). I build my own PCs, and this one I built for my parents as a budget build as they basically use the internet and upload photos, that's it. It's got an AMD 64 3800+ processor, a GeForce 8400GS, 1 Gig of Corsair DDR2 (this passed 8 hours of memtest), an ASUS M2A-VM mobo and a 320GB WD HDD.
The crashes initially and may still be, GUI/graphics related. The biggest problem is they would boot up the system and there would be no GUI, it just never loaded so they would hard reboot. The other thing that would happen, when it went into screensaver mode, moving the mouse wouldn't bring up the password prompt, it wouldn't do anything just leave a black screen with no mouse, it would lead to a hard restart. These problems initially occurred on an older HDD that used to have windows xp on it that my parents loaded with viruses. Of course that HDD had been reformatted for Ubuntu, but I felt that it was damaged and these problems were related so I went and got a new Western Digital one for them and installed it with fresh installs of Ubuntu 10.04 (and a dual boot of Windows 7) but these crashing issues have persisted.
I found a fix on here that had me "force" the GUI to load each time via the terminal, which seems to have worked somewhat and the GUI loads more often. However, every now and then on boot up, parts of the GUI do not load and a window pops up asking that I delete elements from the panel. Again, this leads to a restart, except now sometimes when it reboots it gets to a DOS prompt (sorry, old windows user) of sorts that asks for a system password, when entered, nothing happens and requires another hard restart. These restarts tend to happen in chains leading to DOS prompt a faulty GUI or a GUI with missing elements.
There are also other general issues. Periodically desktop icons won't launch programs and or menu items will not load programs when selected, just nothing happens. When browsing the net with Opera or trying to open the recycle bin, the screen will just go black.I also messed around with the built in Nvidia Driver finder tool under system - administration-hardwaredrivers, tried the recommended and not recommended drivers, no difference. I've booted into recovery mode on the grub menu tried fixing and updating things via the menu options, still get one of the above issues.This system is up to date with system updates as well. I'm not sure what else to do, but I still have a sinking suspicion this is caused by some kind of graphics driver problem or maybe a problem with that graphics card in particular! I've installed Ubuntu fresh on this machine 3 total times, the latest install only last month when I created a dual boot with Win7.
View 6 Replies
View Related
Sep 28, 2010
VLC started to crash today, after (I think?) updating to KDE 4.5 . I'm not sure if it's the update's fault, as it was also today that I switched to KDE from GNOME. All I know is, that up until now, VLC was very stable, it never crashed. Now, it will start only to close in a few seconds later. I tried re-installing it, but it didn't work. It doesn't matter if I open a file directly, or start it from a terminal/menu. If I start it from a terminal, this is what I see:
Code:
$ vlc
VLC media player 1.0.6 Goldeneye
(15966) KSharedDataCache::Private::mapSharedMemory: Opening cache "/var/tmp/kdecache-damnated/icon-cache.kcache" page size is 4096
(15966) KSharedDataCache::Private::mapSharedMemory: Attached to cache, determining if it must be initialized
[Code]....
View 1 Replies
View Related
Feb 16, 2011
I rebooted my computer and there was strangely 2 audio icons next to the clock. I right clicked 1 and removed it from the bar. Now I can t seem to get that bar to quit flashing. I tried the recovery console. to repair any broken packages. Still flashing. I can't seem to get any programs open. What could be causing this issue and how I can fix it?
View 2 Replies
View Related
Feb 19, 2011
My laptop, running Ubuntu 10.10, keeps on crashing. For a Windows user, this would be normal, but isn't it rare for Unix-based OSs to crash? Could there have been some corruption in the disk I installed it with?
View 7 Replies
View Related
Mar 3, 2011
i have upgraded vlc 1.1.4 to 1.1.7....but im having a problem regarding the 1.1.7 version. the vlc(1.1.7) is crashing on exit.
View 1 Replies
View Related
Apr 27, 2011
iv been on the beta 2 for a long time! and its working really nice but the pulse audio loves to crash it crashs flash and the computer it self like the browser and all and when ever i start skype witch i need for work it crashs and forces me to re boot witch is annoying and i hear can crash a harddrive im wondering if any one can help me! if it my sound card or ubuntu ?
View 4 Replies
View Related
Apr 30, 2011
I've managed to install the 32bit version on my laptop with little issue, and I'm really liking the Unity interface. There's a few issues around customisation and minor usability quirks, but from my experience with things like KDE4, I'm guessing it's only time. Anyway, I've been having major problems getting the 64bit version running with my Desktop. I have 8Gb of RAM in that, so it's not really an option to use the 32bit version. The Installer crashes constantly, but I was able to upgrade from 10.10 using update manager, but unfortunately Natty is no more stable than it's installer.
While logging in, or shortly after, the machine will crash to a text console displaying a Kernel Panic message. There's also messages indicating a problem with the CPU MCE. I've tried setting various kernel parameters at boot, such as nomce and nomodeset, these have extended the time the machine is up before crashing out, and removed the Kernel panic message, but not the crashes. I'm guessing the MCE messages were unrelated or a symptom in this case.I've done a huge amount of searching, and found no suggestions that I haven't already tried. Running Ubuntu 10.10 64 bit the system is rock solid.
View 1 Replies
View Related