ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] How to generate core and backtrace files
Date: Thu, 14 Jun 2007 22:32:19 +0400
Message-ID: <467189B3.4090501@stc.donpac.ru> (raw)
In-Reply-To: <200706141918.31547.ledest@gmail.com>

Led пишет:
> В сообщении от Thursday 14 June 2007 19:01:31 Eugene Prokopiev написал(а):
> 
>>Led пишет:
>>
>>>В сообщении от Thursday 14 June 2007 18:11:28 Eugene Prokopiev написал(а):
>>>
>>>>Здравствуйте!
>>>>
>>>>Я прошу прощения за вопросы явно из FAQ, но нашел только
>>>>http://www.freesource.info/wiki/AltLinux/Razrabotchiku/OtladkaIProfajjlin
>>>>g? v=tk1&search=core, а кроме того помню, что с core files у нас по
>>>>умолчанию не так как у всех, потому спрашиваю. У меня стабильно
>>>>воспроизводится падение
>>>>callweaver в определенной ситуации. Апстрим по этому поводу говорит:
>>>>
>>>>If you have a core file please generate a backtrace (“gdb
>>>>/path/to/callweaver core” and type “bt” at the prompt.
>>>>
>>>>Собственно вопрос: как это сделать? callweaver у меня собирается в
>>>>hasher, но на той же машине, что и тестируется. Я сделал hsh-install
>>>>~/hasher glibc-core-debug, в hsh-shell сделал rpm -bb --enable debug
>>>>callweaver.spec. Дальше непонятно. Ну поставлю я собранный пакет. Что
>>>>сказать LD_LIBRARY_PATH? Где включить генерацию core?
>>>
>>>man bash
>>>на предмет ulimit
>>
>>после установки собранного пакета:
>>
>># ulimit -c 10000000000
>># cp -a
>>/data/build/hasher-callweaver/chroot/usr/src/RPM/BUILD/callweaver-1.1.99.20
>>070614/ .
>># cd callweaver-1.1.99.20070614
>># LD_LIBRARY_PATH=/usr/lib/debug:$PWD gdb .libs/callweaver
>>GNU gdb 6.6-alt1 (ALT Linux)
>>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 "x86_64-alt-linux"...
>>Using host libthread_db library "/lib64/libthread_db.so.1".
>>(gdb) run -vvvvvcd
>>...
>>Program received signal SIGSEGV, Segmentation fault.
>>[Switching to Thread 1092139328 (LWP 24377)]
>>0x00002afca9067cc4 in strncpy () from /lib64/libc.so.6
>>(gdb) quit
>>The program is running.  Exit anyway? (y or n) y
>>
>>И где теперь сам дамп? В текущем каталоге ничего подозрительного нет.
> 
> 
> А может достаточно -fPIC в CFLAGS добавить, чтобы не сегфолтилось на x86_64? У 
> нас в Сизифе сборка qiv под x86_64 с похожими симптомами лежит. И лечится 
> именно -fPIC.

Как это должно выглядеть в спеке? Глянул в qiv, там make 
CFLAGS="%optflags", а где определена %optflags? Пока запустил на сборку 
c %make CFLAGS='-fPIC', не затрет это какие-нибудь другие опции?

Ну и первоначальный вопрос остается в силе: как core dump получить?

-- 
С уважением, Прокопьев Евгений


  reply	other threads:[~2007-06-14 18:32 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-14 15:11 Eugene Prokopiev
2007-06-14 15:41 ` Led
2007-06-14 15:45   ` Pavlov Konstantin
2007-06-14 16:06     ` Eugene Prokopiev
2007-06-14 16:01   ` Eugene Prokopiev
2007-06-14 16:12     ` Andrey Rahmatullin
2007-06-14 17:47       ` Eugene Prokopiev
2007-06-14 17:51         ` Andrey Rahmatullin
2007-06-14 18:43           ` Eugene Prokopiev
2007-06-14 18:45             ` Andrey Rahmatullin
2007-06-14 19:18             ` Sergey Vlasov
2007-06-14 20:03               ` Eugene Prokopiev
2007-06-15  8:41                 ` Sergey Vlasov
2007-06-15  2:00               ` Hihin Ruslan
2007-06-15 17:29                 ` Alexey I. Froloff
2007-06-16 14:49                   ` [devel] [JT] " Ivan Fedorov
2007-06-17 11:33                     ` Денис Смирнов
2007-06-14 18:41       ` [devel] " Sergey Vlasov
2007-06-14 16:18     ` Led
2007-06-14 18:32       ` Eugene Prokopiev [this message]
2007-06-14 21:15         ` Led
2007-06-14 18:35     ` Sergey Vlasov
2007-06-15  8:57 ` Eugene Prokopiev
2007-06-18 19:24 ` Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=467189B3.4090501@stc.donpac.ru \
    --to=prokopiev@stc.donpac.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git