ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Andrey Rahmatullin <wrar@altlinux.org>
To: devel@lists.altlinux.org
Subject: Re: [devel] автогенерация debug-пакетов в rpm
Date: Sat, 7 Aug 2010 15:36:23 +0600
Message-ID: <20100807093622.GA10853@wrars-comp.wrarsdomain> (raw)
In-Reply-To: <20100807032908.GA11133@shutemov.name>

[-- Attachment #1: Type: text/plain, Size: 4420 bytes --]

On Sat, Aug 07, 2010 at 06:29:08AM +0300, Kirill A. Shutemov wrote:
> Я попробовал перетащить наш rpm на более живой beecrypt.
> 
> Обновлённый beecrypt и патченый rpm (ветка beecrypt) лежит у меня в git.
> rpm притворяется, что работает. Нужно хорошенько его потестировать.
> Наверняка что-нибудь сломано.
> 
> Ещё я не уверен, правильно ли сделал переезд на новый soname libbeecrypt.
> Посмотрите, пожалуйста.
> 
> debuginfo теперь (с новым beecrypt) похож на рабочий. Потребовалось немного
> напильника. И, конечно, ещё понадобиться, но для proof of concept сойдёт.
> Смотрите ветку debuginfo у меня в git.
В /people/wrar/packages/hello.git в ветке debug лежит спек с добавленными
ровно двумя строчками:

%def_enable debug (чтоб собиралось с -g)
%debug_package (чтоб создавался дебаг-пакет)

Создался пакет hello-debug с таким содержимым:

drwxr-xr-x    2 root    root                0 Авг  7 15:24 /usr/lib/debug/.build-id
drwxr-xr-x    2 root    root                0 Авг  7 15:24 /usr/lib/debug/.build-id/36
lrwxrwxrwx    1 root    root               21 Авг  7 15:24 /usr/lib/debug/.build-id/36/515c96c9c09363cd0fbe9156e2926013a087bd -> ../../../../bin/hello
lrwxrwxrwx    1 root    root               25 Авг  7 15:24 /usr/lib/debug/.build-id/36/515c96c9c09363cd0fbe9156e2926013a087bd.debug -> ../../usr/bin/hello.debug
drwxr-xr-x    2 root    root                0 Авг  7 15:24 /usr/lib/debug/usr
drwxr-xr-x    2 root    root                0 Авг  7 15:24 /usr/lib/debug/usr/bin
-rwxr-xr-x    1 root    root            26780 Авг  7 15:24 /usr/lib/debug/usr/bin/hello.debug
drwxr-xr-x    2 root    root                0 Авг  7 15:24 /usr/src/debug/hello-2.4
drwxr-xr-x    2 root    root                0 Авг  7 15:24 /usr/src/debug/hello-2.4/gnulib
drwxr-xr-x    2 root    root                0 Авг  7 15:24 /usr/src/debug/hello-2.4/gnulib/lib
-rw-r--r--    1 root    root             3050 Авг  7 15:24 /usr/src/debug/hello-2.4/gnulib/lib/close-stream.c
-rw-r--r--    1 root    root             4522 Авг  7 15:24 /usr/src/debug/hello-2.4/gnulib/lib/closeout.c
-rw-r--r--    1 root    root              856 Авг  7 15:24 /usr/src/debug/hello-2.4/gnulib/lib/exitfail.c
-rw-r--r--    1 root    root              759 Авг  7 15:24 /usr/src/debug/hello-2.4/gnulib/lib/exitfail.h
-rw-r--r--    1 root    root            22370 Авг  7 15:24 /usr/src/debug/hello-2.4/gnulib/lib/quotearg.c
-rw-r--r--    1 root    root            11981 Авг  7 15:24 /usr/src/debug/hello-2.4/gnulib/lib/quotearg.h
-rw-r--r--    1 root    root             1322 Авг  7 15:24 /usr/src/debug/hello-2.4/gnulib/lib/xalloc-die.c
-rw-r--r--    1 root    root             8152 Авг  7 15:24 /usr/src/debug/hello-2.4/gnulib/lib/xalloc.h
-rw-r--r--    1 root    root             3327 Авг  7 15:24 /usr/src/debug/hello-2.4/gnulib/lib/xmalloc.c
drwxr-xr-x    2 root    root                0 Авг  7 15:24 /usr/src/debug/hello-2.4/src
-rw-r--r--    1 root    root             5774 Авг  7 15:24 /usr/src/debug/hello-2.4/src/hello.c

У него, кстати, нет зависимостей ни на что, включая главный пакет.

В hello/src/hello.c внесено изменение специального вида, позволяющее
протестировать нужность пакета hello-debug. Сначала этот пакет не
установлен:

Reading symbols from /usr/bin/hello...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/hello 

Program received signal SIGSEGV, Segmentation fault.
0x08048bba in exit ()
(gdb) bt
#0  0x08048bba in exit ()
#1  0x0804a4f3 in ?? ()
#2  0x4ef47c66 in __libc_start_main () from /lib/libc.so.6
#3  0x08048ac1 in exit ()

Теперь установлен:

Reading symbols from /usr/bin/hello...Reading symbols from
/usr/lib/debug/usr/bin/hello.debug...done.
done.
(gdb) r
Starting program: /usr/bin/hello 

Program received signal SIGSEGV, Segmentation fault.
0x08048bba in main (argc=1, argv=0xbfffefd4) at hello.c:63
63        *((char*)0) = 0;
(gdb) bt
#0  0x08048bba in main (argc=1, argv=0xbfffefd4) at hello.c:63


-- 
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(6):

> >"Что было бы, если бы ALT Linux Team производила самолеты?" :-)
> А Вы не пользуйтесь Сизифом ;)
"Да нет, ничего, мы привыкли" (TM). Просто, гхм, слегка оторопь берет,
когда таким вот способом из биплана в полете делают дирижабль: вначале
отламывают крылья, а уж потом начинают искать баллоны с гелием :-)
		-- morozov in sisyphus@

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

  reply	other threads:[~2010-08-07  9:36 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-16 12:27 [devel] *-gdb пакеты Max Ivanov
2009-04-21 13:37 ` Pavlov Konstantin
2009-04-21 14:24   ` [devel] автогенерация debug-пакетов в rpm Pavlov Konstantin
2009-04-21 18:18     ` Alexey Tourbin
2009-04-21 18:28       ` Alexey I. Froloff
2009-04-21 18:32       ` Pavlov Konstantin
2009-04-21 20:28         ` Alexey Tourbin
2009-05-02 17:24           ` Andrey Rahmatullin
2009-04-21 20:34       ` Mikhail Gusarov
2009-04-27  8:58     ` Денис Смирнов
2009-04-27 22:01       ` Хихин Руслан
2009-04-28  6:23       ` Slava Semushin
2009-05-03 17:55     ` Andrey Rahmatullin
2010-08-05 17:00       ` Dmitry V. Levin
2010-08-07  3:29         ` Kirill A. Shutemov
2010-08-07  9:36           ` Andrey Rahmatullin [this message]
2010-08-07 11:05             ` Kirill A. Shutemov
2010-08-07 14:11               ` Andrey Rahmatullin
2010-08-08  4:56                 ` Денис Смирнов
2010-08-08  7:27                   ` Andrey Rahmatullin
2010-08-08 16:32                     ` Денис Смирнов
2010-08-07 16:49               ` Alexey Tourbin
2010-08-07 18:38               ` Michael Shigorin
2010-08-07 18:41                 ` Andrey Rahmatullin
2010-08-07 18:50                   ` Michael Shigorin
2010-08-07 18:55                     ` Andrey Rahmatullin
2010-08-07 19:29                     ` Led
2010-08-08  4:32                       ` Денис Смирнов
2010-08-07 19:35                     ` Kirill A. Shutemov
2010-08-07 19:44                       ` Michael Shigorin
2010-08-07 19:45                         ` Andrey Rahmatullin
2010-08-07 19:48                           ` Michael Shigorin
2010-08-07 13:57             ` Dmitry V. Levin
2010-08-07 14:09               ` Andrey Rahmatullin
2010-08-07 14:12                 ` Andrey Rahmatullin
2010-08-09 23:14           ` Kirill A. Shutemov
2010-08-11  0:28             ` Dmitry V. Levin
2010-08-11  1:11               ` Kirill A. Shutemov
2010-08-11  1:35                 ` Kirill A. Shutemov
2010-08-11 13:52                 ` Dmitry V. Levin
2010-08-12  0:09                   ` Kirill A. Shutemov
2010-08-12  0:35                     ` Dmitry V. Levin
2010-08-11 15:02           ` [devel] перевод rpm на свежий beecrypt Dmitry V. Levin
2010-08-11 19:08             ` Kirill A. Shutemov
2010-08-11 19:34               ` Dmitry V. Levin
2010-08-12  0:06                 ` Kirill A. Shutemov
2010-08-12 16:22                   ` Dmitry V. Levin
2010-08-12 21:07                     ` Dmitry V. Levin
2010-08-12 21:48                       ` Kirill A. Shutemov
2010-08-04 21:18 [devel] base2 <-> base62 Alexey Tourbin
2010-08-04 21:26 ` Dmitry V. Levin
2010-08-04 21:38   ` Alexey Tourbin
2010-08-04 22:05     ` Dmitry V. Levin
2010-08-05  7:41       ` Alexey Tourbin
2010-08-05 12:44         ` Денис Смирнов
2010-08-06 13:17         ` Alexey Tourbin
2010-08-06 14:26           ` Alexey Tourbin
2010-08-06 15:43             ` Sergey Vlasov
2010-08-10 10:50               ` Alexey Tourbin
2010-08-05 13:07 ` Alexander Bokovoy
2010-08-05 14:48   ` Alexey Tourbin

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=20100807093622.GA10853@wrars-comp.wrarsdomain \
    --to=wrar@altlinux.org \
    --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