So I've been writing a code and I have been adding functions to make life easy, but all of a sudden when i added the last function I got this error *** glibc detected *** /home/ahzeeper/Desktop/C-code/check6: free(): invalid next size (fast): 0x0804c048 ***followed by a huge backtraceNow here is my code
I wrote a test program for learning usage of realloc() and I thin I did everything right but I get this error exactly with my 4th time that while tries to reallocate memory in MakeDSt function for DSt->SArray:
Basically, I am running diskwarrior on my mac now to try and fix invalid b-tree node size error. It is my boot drive and therefore cannot get onto the operating system. I have used live linux distros to try and get at the hdd that way, I have installed HFStools and testdisk and tried almost everything possible from within Linux itself to recover this HFS+ drive, but they were all a no go. My last resort was to try diskwarrior and it is rebuilding the drive now, well it has been for about 38 hours now but doesn't give any indication as to how long it will take.
I am pretty sure I am right in thinking data is never truly deleted until it is overwritten, is that right? Even if reformatted, would I be correct in thinking that if I were to format the drive and install linux on my machine, some of the data on the Drive would still be technically recoverable, even though the file system has changed? i.e. from HFS to EXT3. If this is technically possible what software would I need to try and recover files from a drive that has been formatted from HFS+ to EXT3?
It doesn't matter if I cant get it all, or might be more hassle than its worth, my girlfriend has another laptop to use for now and is in no hurry and I like getting to play around with Linux. The data is somewhat important but not enough so to go through the whole sending off the drive and paying hefty fees, it would be very nice to get back and I enjoy working in linux and learning more about software/hardware etc.
I have just started using Valgrind,which really is great. Most of the reported errors look kinda weird, though I can't really understand what's going on here, for example:
==00:00:02:52.033 7754== Invalid read of size 4 ==00:00:02:52.033 7754== at 0x80B0987: MyCls::MyPrintf(long, char*, ...) (MyCls.cpp:270) ... ==00:00:02:52.033 7754== Address 0x47a5ee8 is 0 bytes after a block of size 296 alloc'd ... ==00:00:02:52.033 7754== by 0x809A6C1: ClsMain::taskRun(int, char**) (ClsMain.cpp:177) ==00:00:02:52.033 7754== by 0x816CFE8: main (main-C.cpp:2060)
==7754== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- Y ==00:00:02:57.410 7754== starting debugger with cmd: /usr/bin/gdb -nw /proc/7765/fd/1014 7765 GNU gdb Red Hat Linux (6.5-25.el5rh) Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
Attaching to program: /proc/7765/fd/1014, process 7765 MyCls::MyPrintf (this=0x47a5dc0, iPrm=3, sMsg=0x6974320 "blablabla"...) at MyCls.cpp:270 270 cout<<endl<<"m_FilePtr="<<hex<<m_FilePtr<<dec<<endl;
Basically, Valgrind reported the "Invalid Read" error at line 270 of file MyCls.cpp, which is simply a cout of the m_FilePtr variable, which is a member variable of the MyCls class. It's a FILE* variable I use to write repeatedly on a text file. The address reported (0x47a5ee8) is 296 bytes after the "this" pointer (0x47a5dc0),as Valgrind correctly tells me but I honestly don't understand that. And of course, I need to read that variable, not only for the cout (indeed,the error is reported at every reading attempt). Besides, the application doesn't crash, but still I would like to understand if I really have to worry about this "error".
Essentially my ksh script calls a program and passes some commands. It's entering the program just fine, but when it passes the commands it gets "invalid command" error, and loops for a bit.
When I run all the steps manually the program works fine. I turned debug on and see that it enters the program, cmbview, but for whatever reason, it fails on any command that it tries to parse.
Tried running it in a ksh shell, same error. Tried running it as bash shell, same error.
The cmbview exe works and the following commands work, so I can only assume its something with the script parsing the commands.
Just installed Debian 8 last night and trying to run one a few of my scripts that use easygui (a front-end for python-tk basically) and I keep getting alloc: invalid block any time a file or folder selection dialog is presented. I'm able to select a file/folder with no issues, but once the dialog closes I get a variation of what appears to be a memory error followed by alloc: invalid block.
Here's one of my scripts that does it. This one pops up a file selection dialog pretty early on to ask for a file to check, and as soon as I select any file the dialog closes and that error appears in the terminal. It happens whether I run it with Python 2 or Python 3. You will need to install python3-easygui for this script to run properly if you want to check for yourself what happens. This is a first time encountering this error for me.
insmod: error inserting 'kernel.ko': -1 Invalid parametersI am getting this error when i am try to insert kernel.ko into kernelMy systemfedora 12 with gcc 4.4.2insmod kernel.koinsmod: error inserting 'kernel.ko': -1 Invalid parametersmy program
I'm having a bit of trouble with a regular expression I'm trying to write and I'm not sure if it's something Tcl specific or my lack of regexp understanding.
[Code]...
I get a number of strings passed to a proc in the format 3|x where x is a number, either 0 or within the range 5-12. My understanding is that that regexp will match the literal '3' followed by a '|', the escapes the special meaning of |, and then 0 or, because of |, a number within the range 5-12. However I'm getting the error 'couldn't compile regular expression pattern: invalid character range'.
Installing 11.2 from KDE LiveCD on an IBM ThinkCenter with 3.2Gb CPU and 1Gb RAM. Ubuntu 9.04 on first two partitions. I go through the configuration, click to 'install': Install display bars remain blank. After 2-3 minutes, black screen with scroll of attempted installation pieces and the error message: "Respawning too fast. Disabled for 5 min." Freeze.
Other posts mention problem with init. But this is happening with the install so not able to address that. No apparent md5chksum for LiveCDs. No mention of this problem in installation help guide. Does anyone know how to deal with this? If you need more info, I will provide. Though it seems this is not an unusual problem when booting an installed system, there's no mention of it happening during installation.
I have an 80GB Intel X25-M SSD drive installed on a Linux box running Debian 5.0. The file system on the SSD is ext4. I've had no problems with the drive, and have been using it for quite some time as both swap file storage as well as a place to store a few large database files which require random access.
I changed the names of the files here for security reasons, but other than that this is exactly what ls has output. Obviously, the total size readout is incorrect.
Here is the corresponding output from df
> df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 74G 35G 36G 50% /ssd
Despite this incorrect readout, the drive seems to be working fine, and diagnostic utilities turned up nothing wrong with the drive. Is this some sort of known bug in ext4, or is it more likely there's something physically wrong with the drive?
Usually when a compile doesn't work, the error message indicates a missing dependancy, and it's pretty straightforward. This came up while trying to install arts-1.5.10 for KDE 3.5
Code: mcoputils.cc:74: error: 'PATH_MAX' was not declared in this scope mcoputils.cc:91: error: 'kde_tmp_dir' was not declared in this scope
Bottom Line: Dvd Drive died in my toshiba laptop and it was replaced (not before tech for some reason reformatted the Win7 partition... which was 100% un-needed, but thats beside the point now. I redid win7 (the tech installed vista) and am TRYING to "redo grub". Facts: The Slackware AND Ubuntu Partitions ARE STILL THERE and when i use SuperGrub Boot CD (which doesn't restore my grub by itself) to boot into slackware, i can see ALL THE CONTENT of both Linuxes still there including grub on ubuntu partition
(Tri-Boot: Ubuntu, Slackware, and WIn7) I had it working for two years or so, SO i know this "setup" works fine. I am A) Trying to do this as simply as possible. B) Trying to avoid the need to download a 800MB ISO (as seen for this issue on this forum) and trying not to have to reformat Ubuntu Partition (though I have the .Debs I have downloaded for it backed up ... all 1.7GB of them) I have /dev/sda1 as win7, /dev/sda2 as Slack and /dev/sda3 as Ubuntu (which contains Grub Legacy).. Every command I do seems to result in an error like "invalid command" or "invalid Execution format " (i think that second one is right) type errors. I compiled (awhile back) a few kernels for Slackware, but feel goofy that I cant figure what i this out (what i thought was going to be a "2 minute" fix)
I want to read values from a text file about 2 times a second and update a textLabel with those values but it only inputs the values with the last value from the text file? I tried the same thing with an LCDNumber but it only updated every 10 value changes? After each change do I need to clear the textLabel or refresh the window? For testing the print z and print x in the code prints the values correctly.Heres my code:
I have a bash script that is tracking ERROR connections (running in a cron every 15 minutes), sometimes the errors are true and are not connecting. But most of the time, the disconnects/reconnects are between 30 seconds are sending out false positives. I am looking for a time comparison code to pick out the 30 second disconnects and know that this is and "ok" error. Here is a section of the log with timestamps, errors, etc.
Tue 2010-06-01 22:01:30 ERROR [DataBufferSendService] 172.31.0.1:8016 caught exception: [NetworkAPI] Exception: [SocketStream] socket error Tue 2010-06-01 22:01:32 ERROR [DataBufferSendService] 172.31.0.2:8016 caught exception: [NetworkAPI] Exception: [SocketStream] socket error Tue 2010-06-01 22:02:00 INFO [Client] 172.31.0.1:8016 connecting to 172.31.0.1 on port 8016 Tue 2010-06-01 22:02:02 INFO [Client] 172.31.0.2:8016 connecting to 172.31.0.2 on port 8016
I have an academic simulator software and I want to visualize its output at the same time the simulation is happening. However I want to separate visualization and simulation modules. The simulation data will be held in an array of a size around 0.5M and will be read only to visualization software (but updated regularly by simulator).
- In past I have used shared memory to share small variables among two applications.
- TCP/IP adds the option of having the simulator and visualization applications on separate machines but the implementation will be more difficult.
- I have also thought about an abstraction layer which allows to replace the communication/interconnection layer with other methods later (file/network/shared memory/pipe).
I am developing a program in a system where the Linux does not take care of the sync command automatically. So I have to run it from my application always I save some data in the disk, which in my case is a 2GB sdcard. It is true that I can make the operation system takes care of the syncronization, using a proper mount option, but in this case the programm's performance drops drastically. In particular I use the shelve module from Python to save data that comes from a socket/TCP connection and I have to deal with the potencial risk of the system being turned off suddenly Initially I wrote something like that to save data using shelve:
But that takes too much time to save the data. Note that I use the sync from the OS every time I close a file to prevent data corruption in the case of the "computer" being turned off with data even in the buffer. To improve the performance I made something like that:
Code:
def saveListData( list ) fd = shelve.open('file_name', 'c') for itemVo in list: fd[itemVo.key] = itemVo fd.close() os.system("sync")
Thus, first I saved an amount of objects in a list then I open the file and save the objects. In this way I have to open the file just one time to save a lot of objects.However I would like to know if adding a lot of objects before closing the file would increase the risk of data corruption.I known that turning off the system after fd.close() and before os.sync may cause problems. But what about turning off the system after
I'm still getting my head around setting things up on my web server, I've configured php to run off of Fast CGI, rather than mod_php, due to better memory consumption. I've managed to get my virtual hosts configured to work with fastcgi, ensuring the following options are set:
I tried adding those settings to /etc/phpmyadmin/apache.conf, but this doesn't seem to work. Whenever I go to www.mydomain.com/phpmyadmin , I just get a 403 Forbidden Error. This used to work no problems on mod_php.
[URL].. because the alias is set so that my virtual hosts can access it through /phpmyadmin. There is probably something basic I am missing here.
I tried to compile Atheros AR8152 PCI-E Fast Ethernet Controller driver for fedora 13 64 bit kernel version is 2.6.34.7-56.fc13.x86_64. I have installed kernel source , kernel header and necessary all things to compile it. (linux-firmware-20100806-4.fc13.noarch also installed). I tried AR81Family-linux-v1.0.1.13 source from Atheros web site.
But when I try to make it it give following error. Code: Makefile:173: *** *** Aborting the build. *** This driver is not supported on kernel versions older than 2.4.0. Stop. It is not compiling issue because I compiled and installed broadcom wireless driver. Makefile is attached here (renamed as Makefile.txt -> Makefile)
My wireless seems to be fast for a good 30secs then bang takes good while to load the next page almost as if it's disconnecting and then reconnecting/scanning reconnecting. Why cant it stay connected. I have WAP PSK security here is my network setting please let me know if I should change any of them:(side not is there a way to fix this problem occuring so frequently it says on the wiki that it should only occur once in a whilce https:[url].....
Dear Advanced c/g++ on boost programers: I have copied and testd a simple (Copy a file with Boost) program from page 372, Example10-10, book(C++ cookbook)
I am writing a code to restore original packet type from encapsulated packet type. However the following error occurred. Below is an extract of my code. Would appreciate if someone could help me explain why the error occurred and how to resolve this.
packet.h struct hdr_cmn { packet_t ptype_; // packet type
I am running Red Hat with 2.6.18-194.8.1.el5PAE kernel version. I am trying to run encryptfs to encrypt a partition on my hard drive. One of the kernel modules necessary is the md5.ko. I noticed it wasn't loaded in when doing an lsmod. I tried running modprobe md5 and it fails to load:
I have installed Windows 7 followed by Fedora 11. Everytime I install Fedora 11 with Win 7, the first to boot, I get BOOTMGR missing. Later I used "df -h" command to see the disk file usage fdisk -l" to see the info regarding Disk Partitions. Went into the /boot/grub/menu.lst and modified the order. I set the partition where I find the bootmgr.exe.mui, there was another file named "memtest.exe.mui in the same file.
I navigated to the above said through Fedora 11. Located inside the Win 7 installed directory /boot/en-US/
When I changed the menu.lst file, I get a new error Error 12: Invalid device requested when I tried to boot Win 7. Does that mean that Fedora 11 GRUB is not getting the bootmgr.exe.mui since its 2 levels inside the boot directory ??