Red Hat / Fedora :: Generate Stackdump & Dumped Register When An App Crashes In Gcc?
Apr 9, 2011
When my c++ app crashes I would like to generate stackdump and display dumped register values. My app runs on Fedora Linux 2.6. I would like my program to be able to generate stackdump and display dumped register values when it crashes and the next time the user run's it, it will ask them if it is ok to send these to me so I can track down the problem. I can handle the stacktrace info but I don't know how to generate these two things.
I would like to know if there is a way to repair a fedora 13 installation without using yum or using smart .Both applications are exiting with a "segmenttation fault".This happend after an general update and the installation of a couple of applications when the installer exited with an error message that indicated that there was not enough diskspace left.The message was wrong because there was plenty of space left and all of the applications were installed, just important programs used for changing the systems started crashing.Here is a small list of prgs that are crashing: yum , smart, system-config-firewall, system-config-printer, abrt-gui and I guess I might find easily more.Strange rpm seems to work.
I have a hard drive from a server that had a severe hardware failure. I have it attached via usb to the new server. I need to dump the database from the hard drive to a .sql file and then import the dump into the new server.
/mnt/external_drive/var/lib/mysql/ mysqldump -u root -p database name > backupdatabase.sql
My problem is, I enter in the root password, and it gives me an access denied error. I know this is the root password because that is how I am logged into the server. How can I test the credentials of the database that is located on the external hard drive? And, I've used all the credentials that could open this database (database user and root user) and still no go. If I can never get the password for the database on the external hard drive, what are my options?
I am using RHEL 6. When i use CAP3 software for the first time it successfully resulted. But second time when i used, it's showing "segmentation fault (core dumped)". Even after restarting and reinstalling it showing same error. When i google, i found it some memmory related problem. But no clear information.
I want to generate core dump files from my program when it crashes. Its a pretty big process and has about 10-11 threads in it.I have followed the documentation to enable core dump by setting ulimit to unlimited etc. I quickly tried "A demo program creating a core dump" from the following webpage, which succeeds in Segfault and dumping a core file in the directory that I configured.However, I tried running my original program and caused it to crash. I did this by making calls to kill(), raise() or the same null pointer access as shown in the webpage above. In each case, my program crashed but did not generate a core dump file. Am I missing something?My program is in C++ and my environment is Redhat 9.0 (kernel 2.4.20)
Going through the "Why do I NOT get a core dump?" section on the same webpage as above, I can see two potential problems. One - there are issues with the suid/sgid (bullet # 6). I am not able to change any settings with suid because my system does not contain either /proc/sys/fs/suid_dumpable or /proc/sys/kernel/suid_dumpableTwo, my program has threads in it and the bullet # 8 is the problem.
I have backuped sql by mysqldump on mysql version 5.1.41. But when I restore this sql by command "mysql -uroot --default-character-set=utf8" my-db < my-sql.sql" I've got this error message.
Quote:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'barunarum',1,1,1,1,1,1,1,1,1,1,3,3,-1,5,1,-20,0,'','script|iframe',0,0,0,0,0,0,0' at line 1
mysqldump <database-name> > bakup.sql in my solaris machine i gave mysql <newly created dbname> < bakup.sql it shows the below error
ERROR 1064 at line 25: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1' at line 7
mysql version in my fedora machine is mysql Ver 14.14 Distrib 5.1.47 mysql version in my solaris machine is mysql Ver 12.22 Distrib 4.0.24
Until my hard disk crashed I was running happily Debian Lenny with KDE 3.5.9. Rock solid, and blazingly fast on a AMD 1700+ processor with an 5 year old NVIDIA MX440. After the hard disk crash six months ago I decided to install Debian testing. Unfortunately Debian Testing comes with KDE4. The experience was horrendous. Instable, slow, dead slow, missing applications, limited setting capabilities, lacking functionality.
At the time I posted some comments on Debian and KDE forums. The KDE gurus blamed Debian, the Debian gurus blamed KDE. The answers I received included "KDE4 is still in development now, but it will be great, one day" In the mean time I replaced the VGA card with a faster one (FX5200) and indeed, the GUI became workable, but that is all to say about it. It still was slow. There are noticable delays between a mouse click and reaction. The system overall feels sluggish and contains many bugs. Even when I disable the graphic effects it doesn't become much better. In no way the snappyness of KDE 3 is achieved.
Almost two years ago I tried KDE4 (4.0 at the time) and I was scared. I posted some messages here and there, stating that KDE4 had become Vistalized. (Does that word need an explanation?) Two years further, and it is still on the edge of unusable. Last week I have installed Xfce. I had seen it before, but too many things were different and I switched back to KDE. This time I put some more effort in and got used to it in a day or two. Nothing wrong with Xfce, it is not even hard to use. For the time being Xfce will be the desktop I install on new machines instead of KDE.Too bad, KDE 3.5 was a great desktop. I am wondering whether there are more people who dumped KDE in favor of a less resource hungry bloated and Vista-like desktop?
When I boot I briefly see 'Grub loading...' then I get dumped in 'sh:grub>'. I can then boot up manually: linux (hd0,1)/vmlinuz root=/dev/sda1 initrd (hd0,1)/initrd.img boot
I'm very new at this, so all my attempts at correcting it has been through reading posts turned up by google searches. Previously, I was dumped at the grub_rescue> prompt (have another thread about that, but I think this is a new issue, so I'm hoping making a new thread won't bring any mod's wrath down on my head), but that seemed to solve itself through no influence of mine...
What I've tried to solve the 'sh:grub>' issue: In /etc/default/grub: I tried disabling quiet splash, in hopes there would be some lines that would give me a clue as to what is going on, but it jumps directly from Grub loading to sh:grub> I tried commenting out Grub_Hidden_Timeout and setting it to a positive integer. I tried uncommenting GRUB_DISABLE_LINUX_UUID=true In /etc/grub.d/10_linux: I tried commenting out 'if [ -n ${have_grubenv} ]; then save_env recordfail; fi'
Then I tried typing 'search -f /boot/grub/grub.cfg' at the sh:grub> prompt and got 'error: no such device: /boot/grub/grub.cfg' which I guess meant all my previous attempts were void as grub couldn't even find grub.cfg. I've tried to reinstall grub with 'grub-install --recheck /dev/sda'. Then I found this thread and tried out "grub-setup -r '(hd0,1)' /dev/sda", hoping it would point to my grub.cfg as well. No such luck.
i'm trying to install an orb, MICO, that can generate stubs, skeletons to C++ language, but i'm not having any sucess until now. Anyone knows some orb to c++ and how to install in fedora? I'm using fedora 12 x86_64, my gcc is gcc (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4).
I am currently generating some EPS images for my thesis and run into a 'practical' problem regarding their size.My method to generate them goes through a program which gives JPG files, and then I use "convert" to pass from the JPGs to a EPS:Code:convert File.jpg File.epsThe problem is that resulting EPS files are obscenely large which makes their inclusion in my thesis impractical.I know GIMP offers the same functionality (JPG > EPS) but considering I am working with many files I want to automatize the process (hence why I used "convert").Is there any way I can make "convert" to output smaller EPS files? Alternatively, is there another utility to do what I am doing?
I was tried to compile the brl-cad for my IA32 machine. I install all the GNU auto series (autoconf, automake, libtool). Then I run sh autogen.sh asnstructed by the installation guide. But after the preparation finish, I check my directory. The make script does not exist. And everything broke down here. When I tried to run "make", I got this feed back: make: *** No targets specified and no makefile found. Stop.(of course, there is no make file)I had run every step by using root account. Hence, there should not be any restriction on operation.
I installed fedora 15 last night, everything installed ok, but i noticed that when i shut down and before i log on, even just running from the cd, a brief message saying something along the lines of "Register 0x00004030 not found in PLL" comes up.
Is this normal? ive installed ok and every update so far has worked so i dont think its a corrupt install. Ive gone back to ubuntu for the time being but I wish to go back to fedora, though I just want to know what this error is
I have recently been given the task of setting up some thirty odd netbooks with F10 and i was wondering if there is a way to generate a kickstart file from the first netbook (my one lol ) that i have setup to our needs so as to use it to create the same install on the rest of the netbooks. i had thought that i could use the anaconda-ks.cfg file in root's home dir but it is not at all representative of the custom package list i chose during the install.
I have an existing Nagios installation from before I started working here. It seems to be working well but my boss has just asked for a report of what servers and the associated processes/functions are being monitored. Is there any way to generate this report other than going through all the Nagios configuration files and putting it together manually?
i've installed directory server in a fedora 12 box, i got it running and i can access it using coldfusion to manage users and groups.i hit a snag when creating a user, this because coldfusion cannot generate a password, the directory server needs a certificate and a ssl connection.so i started googling for a way to generate and install a certificate on the server itself and in the directory.s is my administration server and directory(it's novabase directory) not the other one.
I would like to ask if there's a program that can archive all emails from my employees to a certain server and can generate reports. specifically all types of emails incoming and outgoing. My employees are aware of my policy due to many confidential files within our office.
I was upgrading our lab's dhcp server to Lucid and it totally died. I have it running on a Debian recovery cd right now. I ran into a bug in gtk which I seem to have fixed, but now I have more serious errors. If I boot without a CD, I get dumped into a busybox shell after the machine fails to boot. From the live CD, I tried dist-upgrading again and it dies trying to build and install rsyslog with a broken pipe error. I am at a loss as to what to do from here short of reinstalling (which is the last option as this server has a lot of custom configs on it)
If I start Ubuntu One from Application->Internet, the icon appears in my panel with a red-background X. I tried typing 'u1sync --authorize' from a terminal, but it just hangs and nothing happens with my web browser (Firefox). I've created the LaunchPad account, but I've never been offered an 'add this computer' button in the browser. So it's impossible for me to authorize this computer
I try to register in kubuntuforums.net but I can't. It make makesme questions and still I answered it said me that I was wrong.I don't know how to answer. Maybe is letter in place of numbers,maybe...Well, it's the first time that I can not register in a forum andit's sad because I have booth desktop Ubuntu and Kubuntu.
So I've created my pgp key and attempted to load it to the keyserver only to get the error as shown. This is the situation for 2 days now. Is there a workaround or fix?
I've been struggling this morning trying to associate an application with a custom protocol, namely emacsclient and org-protocol.
I'm calling this protocol from a webbrowser bookmarklet, and I get the following behaviour :
In chromium, the "Launch Application" dialog comes up, and calls xdg-open org-protocol://... which ends up firing a new chromium frame.
In firefox, I've tried setting network.protocol-handler.app.org-protocol to an empty string or my emacsclient path, anyhow I get the following error message : "Firefox doesn't know how to open this address, because the protocol (org-protocol) isn't associated with any program" without even showing any external application selection dialog.
I'm not using any desktop environment, so I need to make this work strictly with xdg, however, despite reading the shared mime info spec etc, I still can't fathom a working configuration.
i just recently switched back to linux from windows and have seen pidgin was replaced with empathy but i cant register my account and therefore can't use emapthy.
For some reason, gnome-terminal, terminator, mrxvt, rxvt, tilda and a few other terminal applications I downloaded are unable to register the 'a' key on my keyboard. However, every other application is able to register my keypresses perfectly. Does anybody know what might be causing this, or what logs/diagnostic tools I could use to find out the reason for this odd behavior?
I've already encountered a couple bugs, and thought it would be nice to be able to report new ones there and/or comment on old ones. But their register button only leads to "Invalid OpenID transaction," and I think that's a bug, and I think I ought to report that over here since I obviously can't register or report it over there.
Im going to registrate a Host on the fog server database.
i have done this befor on a working system befor, so i kinda know how to do it.
Im booting from the network, and im finding the server, and chose Quick host registation ( i have tryed the full host registration, but it dose not work there either)
after the Quick host registration and loading, this show's up:
Loading fog/kernel/bzimage...... decompressing linux .... Parsing ELF......Done Booting the kernel.init.gz.... pci 0000:23:00.1: BAR 6: no parent found for of device [0xffff8000-0xffffffff] unable to query synaptics hardware.