|
||
|
Добро пожаловать, CruncH.
Ваш последний визит: 24.07.2009 в 15:12 Личные сообщения: Новых 0, всего 7.
|
![]() |
|
Опции темы
![]() |
Поиск в этой теме
![]() |
Оценить тему
![]() |
Опции просмотра
![]() |
![]() |
#11 | |
RMDC Guest
Регистрация: 11.01.2007
Сообщений: 5
Сказали спасибо: 0 раз
![]() |
![]() Цитата:
|
|
![]() ![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
RMDC Civilian
Регистрация: 12.11.2006
Сообщений: 78
Сказали спасибо: 8 раз
![]() |
![]()
Так. А как получить .core файл ?
Код:
gdb ${sbin}/mangos-worldd -c ${sbin}/*.core --n --batch --command=${coredump}/bt >> ${coredump}/${datec}_dump PS. Погуглил - сейчас попробую Код:
ulimits -c unlimited /etc/security/limits.conf Код:
* soft core 0 |
![]() ![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Guest
Сообщений: n/a
|
![]() Цитата:
1) опция в ядре: Код:
makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols Код:
kern.coredump=1 kern.corefile=/home/cores/%U.%N.core Код:
sysctl -w kern.coredump=1 sysctl -w kern.corefile=/home/cores/%U.%N.core Код:
-rw------- 1 mangos wheel 1277284352 May 15 01:08 1002.mangos-worldd.core |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
RMDC Civilian
Регистрация: 12.11.2006
Сообщений: 78
Сказали спасибо: 8 раз
![]() |
![]()
Во ! Дампы заработали ! ( Ubuntu 7.04 )
|
![]() ![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Guest
Сообщений: n/a
|
![]()
Вот кстати свежая корка Mangos rev: 3635:
Код:
GNU gdb 6.1.1 [FreeBSD] Copyright 2004 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 "amd64-marcel-freebsd"... Core was generated by `mangos-worldd'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libssl.so.4...done. Loaded symbols for /usr/lib/libssl.so.4 Reading symbols from /wow/lib/libmangosscript.so.0...done. Loaded symbols for /wow/lib/libmangosscript.so.0 Reading symbols from /usr/local/lib/mysql/libmysqlclient_r.so.15...done. Loaded symbols for /usr/local/lib/mysql/libmysqlclient_r.so.15 Reading symbols from /lib/libz.so.3...done. Loaded symbols for /lib/libz.so.3 Reading symbols from /lib/libcrypt.so.3...done. Loaded symbols for /lib/libcrypt.so.3 Reading symbols from /wow/lib/libZThread.so.2...done. Loaded symbols for /wow/lib/libZThread.so.2 Reading symbols from /lib/libpthread.so.2...done. Loaded symbols for /lib/libpthread.so.2 Reading symbols from /usr/lib/libstdc++.so.5...done. Loaded symbols for /usr/lib/libstdc++.so.5 Reading symbols from /lib/libm.so.4...done. Loaded symbols for /lib/libm.so.4 Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/libcrypto.so.4...done. Loaded symbols for /lib/libcrypto.so.4 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x000000080120989c in pthread_testcancel () from /lib/libpthread.so.2 [New Thread 0x1545800 (runnable)] [New Thread 0x1545400 (runnable)] [New Thread 0x1545000 (sleeping)] [New Thread 0x1544c00 (sleeping)] [New Thread 0x1544800 (sleeping)] [New Thread 0x1544400 (sleeping)] [New Thread 0x1544000 (sleeping)] [New Thread 0x1d8ec00 (sleeping)] [New Thread 0x1d8e800 (LWP 100254)] [New Thread 0xae3000 (runnable)] [New LWP 100199] (gdb) bt full #0 0x000000080120989c in pthread_testcancel () from /lib/libpthread.so.2 No symbol table info available. #1 0x00000008011f8100 in sigaction () from /lib/libpthread.so.2 No symbol table info available. #2 0x000000080120209a in pthread_mutexattr_init () from /lib/libpthread.so.2 No symbol table info available. #3 0x0000000000000000 in ?? () No symbol table info available. Cannot access memory at address 0x7fffffbff000 (gdb) thread 1 [Switching to thread 1 (Thread 0x1545800 (runnable))]#0 0x000000080120215f in pthread_mutexattr_init () from /lib/libpthread.so.2 (gdb) bt full #0 0x000000080120215f in pthread_mutexattr_init () from /lib/libpthread.so.2 No symbol table info available. #1 0x00000008012002c2 in pthread_mutex_lock () from /lib/libpthread.so.2 No symbol table info available. #2 0x00000008010bb7eb in ZThread::Monitor::notify (this=0xf0d7f0) at Monitor.cxx:250 wasNotifyable = true #3 0x00000008010d126e in ZThread::ThreadImpl::dispatch (parent=0xae0400, impl=0xf2de00, task= {<ZThread::CountedPtr<ZThread::Runnable,ZThread::AtomicCount>> = {_count = 0xf0d800, _instance = 0xf0d7f0}, <No data fields>}) at ThreadImpl.cxx:407 No locals. #4 0x00000008010d3197 in ZThread::(anonymous namespace)::Launcher::run (this=0x7fffffffe280) at ThreadImpl.cxx:49 No locals. #5 0x00000008010d74de in _dispatch (arg=0x7fffffffe280) at ThreadOps.cxx:137 task = (class ZThread::Runnable *) 0x7fffffffe280 __func__ = "_dispatch" #6 0x00000008011faa99 in pthread_create () from /lib/libpthread.so.2 No symbol table info available. #7 0x000000080166acd4 in makecontext () from /lib/libc.so.6 No symbol table info available. #8 0x0000000000000000 in ?? () No symbol table info available. #9 0x0000000001545800 in ?? () No symbol table info available. #10 0x00000008010d7490 in ZThread::ThreadOps::spawn () at ThreadOps.cxx:127 ZThread::ThreadOps::INVALID = {_tid = 0x0, static INVALID = {_tid = 0x0, static INVALID = <same as static member of an already seen type>}} |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
RMDC Civilian
Регистрация: 12.11.2006
Сообщений: 78
Сказали спасибо: 8 раз
![]() |
![]()
Первый пост обновлен - сделаем FAQ по отладке под линуксом )
|
![]() ![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
RMDC People
Регистрация: 02.12.2006
Сообщений: 234
Сказали спасибо: 16 раз
![]() |
![]()
Люди помогите разобратся
![]() Сделал всё как написано в первом посте, дальше что ? откуда появятся корки ? Тоесть если я запускаю мангос таким образом ./mangos-worldd -с ../etc/mangos-worldd.conf ещё что-то прописывать нужно или нет ? |
![]() ![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
RMDC Civilian
Регистрация: 12.11.2006
Сообщений: 78
Сказали спасибо: 8 раз
![]() |
![]()
Прочти первый пункт. После редактирования /etc/security/limits.conf и ребута, будут коры в папке с мангосом. У меня имена core.<pid>
|
![]() ![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
RMDC People
Регистрация: 02.12.2006
Сообщений: 234
Сказали спасибо: 16 раз
![]() |
![]()
странно, краши вроде были, а вот коры не появляются...
вот мой limits.conf, сделал ребут после изменений Код:
# /etc/security/limits.conf # #Each line describes a limit for a user in the form: # #<domain> <type> <item> <value> # #Where: #<domain> can be: # - an user name # - a group name, with @group syntax # - the wildcard *, for default entry # - the wildcard %, can be also used with %group syntax, # for maxlogin limit # #<type> can have the two values: # - "soft" for enforcing the soft limits # - "hard" for enforcing hard limits # #<item> can be one of the following: # - core - limits the core file size (KB) # - data - max data size (KB) # - fsize - maximum filesize (KB) # - memlock - max locked-in-memory address space (KB) # - nofile - max number of open files # - rss - max resident set size (KB) # - stack - max stack size (KB) # - cpu - max CPU time (MIN) # - nproc - max number of processes # - as - address space limit # - maxlogins - max number of logins for this user # - maxsyslogins - max number of logins on the system # - priority - the priority to run user process with # - locks - max number of file locks the user can hold # - sigpending - max number of pending signals # - msgqueue - max memory used by POSIX message queues (bytes) # - nice - max nice priority allowed to raise to # - rtprio - max realtime priority # #<domain> <type> <item> <value> # * soft core 0 #* hard rss 10000 #@student hard nproc 20 #@faculty soft nproc 20 #@faculty hard nproc 50 #ftp hard nproc 0 #@student - maxlogins 4 # End of file |
![]() ![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
RMDC Civilian
Регистрация: 12.11.2006
Сообщений: 78
Сказали спасибо: 8 раз
![]() |
![]()
у тебя линукс ?
1) поищи по всему компу *core* формат имени может быть разный 2) попробуй в скрипте запуска перед вызовом мангоса добавить Код:
ulimits -c unlimited |
![]() ![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
Здесь присутствуют: 1 (пользователей: 1 , гостей: 0) | |
CruncH |
|
|
![]() |
||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
Anti-Crash | waza123 | Ядро | 21 | 20.02.2009 18:04 |
Crash | nhtrfgb | Корзина форума | 2 | 08.12.2008 20:40 |
Crash 6061-67 [Win] | Andreyko | Корзина форума | 5 | 11.07.2008 13:59 |
[crash] 5785+SD2 385 (linux) | -={ CaT MaX }=- | Корзина форума | 3 | 20.05.2008 03:47 |
Crash boss_midnight | cyberkill | Корзина форума | 1 | 27.01.2008 19:23 |