2004-07-07 -+- Paweł Pałucha -+- -+- And dont' forget about valgrind! Sometimes with memory problems gdb cannot catch the real problem - just consequences, many lines of code after the error. Valgrind always shows the problem when it really appears and can also signal other faults - jump depending on unitialized value, bad params for syscall, memory leaks and more. Runing program under valgrind is easy - just write 'valgrind program_name arguments'. Of course, there are also many options ;-). Happy debugging! -+- 62.29.136.2 = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040614 Firefox/0.8
#2004-07-09 -+- Zero Z. Zeibov -+- -+- В листинге программы необходимо поправить код, чтобы видны были include. Иначе браузером они воспринимаются как неизвестные теги -+- 193.111.17.98 = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616
2004-07-10 -+- Hanprog -+- -+- Very good article thank you for this work this is a very actual article!!! -+- 62.213.9.214 = Mozilla/4.0 (compatible; MSIE 6.0; X11; Linux i686) Opera 7.51 [ru]
#2004-07-12 -+- vnp -+- -+- Оригинал:
The program tries now to read /usr/conf/uucp/config. Oh! This is strange I have the config file in /etc/uucp/config ! ... and there is no line where the program attempts to open /etc/uucp/config. This is the fault.
Перевод:
Приложение пытается прочитать файл /usr/conf/uucp/config. Странно! Этот файл существует! но в приложении нет кода с обращением к нему. Это уже ошибка.
Есть разница между /usr/conf/uucp/config и /etc/uucp/config...
И заодно, в "run tail -f /var/log/messages, после этого..." слово "run" тоже подлежит переводу. -+- 63.87.1.107 = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
2004-07-14 -+- Oliver Ebert -+- -+- Very interesting article. Keep up your good work. -+- 194.246.122.10 = Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7) Gecko/20040618
2004-07-15 -+- Navin Singh -+- navin_rathore@yahoo.com -+- Very nice article. I always thought how one could work with the core dump. It is very easy and must for easy debugging.
Thanks
navin -+- 61.95.164.75 = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
2004-07-20 -+- Randy Kramer -+- rhkramer@fast.net -+- Excellent article for my stage of Linux involvement -- well written and a topic that I hadn't seen covered before for the Linux newbie.
I have, however, found a few grammatical / English oversights that could be corrected for increased clarity (imho):
* IIUC, the sentence "It does however not work only with the core file." is intended to mean "it requires more than the core file to work". (Rather than "it can work with the core file or some alternatives to the core file".) I think this would be more clear if the word "only" was moved to after the "with" ("It does however not work with only the core file.") or rephrased more dramatically.
* "Lets" ("OK, lshref is the program that was crashing so lets load it into gdb.") should be "let's" as it is a contraction for "let us".
There may have been others, but the first jumped out at me because I had to read the sentence twice to guess what was really meant.
I am neither a professional nor an expert writer or editor, but I would be willing to do some "final" proofreading of articles before publishing to help catch and eliminate similar oversights. Let me know if you are interested.
regards,
Randy Kramer
PS: I hope I haven't left too many errors in my own writing -- I'm usually better at spotting errors in other people's work than my own (or my own after it has set for a while and I'm trying to reunderstand what I was trying to say originally). What can I say, it's a form of laziness. But, my real point is, it's easier for a reader who is trying to understand the subject to spot lack of clarity than it is for either the original author or someone who is simply proofreading without a need to understand the subject matter. -+- 209.60.105.202 = Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)
2004-07-20 -+- Guido Socher -+- -+- Hello Randy,
thanks for the corrections. I really appreciate your help.
-+- 195.71.95.22 = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1
#2004-11-11 -+- cask -+- g_j_zhou@163.com -+- How to find Segment Fault in multi-thread?
Our application has many threads (more than 40),sometimes,it crashed and ended with Segment Falut,how can we find it?wen has checked the core file,but the postion that crashed is not programming error?how can I debug such a program. -+- 210.22.124.6 = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Maxthon)
2004-11-11 -+- cask -+- g_j_zhou@163.com -+- How to find Segment Fault in multi-thread?
Our application has many threads (more than 40),sometimes,it crashed and ended with Segment Falut,how can we find it?wen has checked the core file,but the postion that crashed is not programming error?how can I debug such a program. -+- 210.22.124.6 = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Maxthon)
2005-01-05 -+- jens -+- -+- Beginners question: I've reproduced the easy core dump example and it stopped with a segmentation fault but unfortunately no core dump was written on my installation (SuSE 9.1), so how can I teach my system to write core dumps on such occasions or is it a kernel setting?
Thanks in advance. jens (BTW: nice article.) -+- 217.234.135.4 = Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)
2005-01-05 -+- Tom -+- -+- Hi Jens,
the article mentions already the answer your question:
"Some shells provide facilities for controlling whether core files are written. Under bash, for example, the default behavior is not to write core files at all. In order to enable core files, you should use the command:
# ulimit -c unlimited" -+- 195.71.95.32 = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
2006-01-23 -+- Sima -+- -+- Good intro! -+- 194.52.58.134 = Mozilla/4.0 (compatible; MSIE 6.0; X11; Linux i686; en) Opera 8.51
2006-07-12 -+- Stephanie -+- -+- Really cool article- thank you! I've always wondered how that stuff worked. -+- 206.255.91.51 = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4