Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gdb: is not a core dump: File format not recognized
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
dmiceman
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 115

PostPosted: Mon Oct 23, 2006 8:31 pm    Post subject: gdb: is not a core dump: File format not recognized Reply with quote

приветствую.

послушайте, что за ерунда! с некоторых пор gdb отказывается принимать корки за корки. никогда такого в жизни не видел.. gdb -- 6.5, ядро 2.6.18
Back to top
View user's profile Send private message
dmiceman
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 115

PostPosted: Fri Oct 27, 2006 8:03 am    Post subject: Reply with quote

неужели у всех работает? а то штука-то полезная.. была.
Back to top
View user's profile Send private message
viy
Veteran
Veteran


Joined: 03 Jul 2004
Posts: 1580
Location: Riga, Latvia

PostPosted: Fri Oct 27, 2006 8:18 am    Post subject: Reply with quote

А что file /path/to/core говорит?
Back to top
View user's profile Send private message
dmiceman
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 115

PostPosted: Fri Oct 27, 2006 8:28 am    Post subject: Reply with quote

viy wrote:
А что file /path/to/core говорит?

что это честная корка. щас еще сделаю..

вот что они все говорят:
Code:

[core]$ gcc -g -o core-test core-test.c
[core]$ ./core-test
core-test: core-test.c:6: main: Assertion `0' failed.
Аварийный останов (core dumped)
[core]$ file core
core: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style, from 'core-test'
[core]$ gdb -core core
GNU gdb 6.5
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 "i686-pc-linux-gnu".
"/home/dm/tmp/core/core" is not a core dump: File format not recognized
Back to top
View user's profile Send private message
ba
l33t
l33t


Joined: 25 May 2003
Posts: 804

PostPosted: Fri Oct 27, 2006 9:24 am    Post subject: Reply with quote

у меня все работает, попробуй собрать gdb без особых флагов оптимизации...
Back to top
View user's profile Send private message
dmiceman
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 115

PostPosted: Fri Oct 27, 2006 9:39 am    Post subject: Reply with quote

ba wrote:
у меня все работает, попробуй собрать gdb без особых флагов оптимизации...

я его за последние дни много-много раз перебирал :-) и так, и этак, и всяко-разно..
Back to top
View user's profile Send private message
viy
Veteran
Veteran


Joined: 03 Jul 2004
Posts: 1580
Location: Riga, Latvia

PostPosted: Fri Oct 27, 2006 12:10 pm    Post subject: Reply with quote

Попробуй еще binutils пересобрать...
Back to top
View user's profile Send private message
dmiceman
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 115

PostPosted: Fri Oct 27, 2006 3:35 pm    Post subject: Reply with quote

viy wrote:
Попробуй еще binutils пересобрать...


tnx, собираю.. но он кажется все-таки ни при чем. но чем черт не шутит!

результат: ни-фи-га


Last edited by dmiceman on Fri Oct 27, 2006 3:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
ba
l33t
l33t


Joined: 25 May 2003
Posts: 804

PostPosted: Fri Oct 27, 2006 3:37 pm    Post subject: Reply with quote

кстати, выложил бы хоть корку для теста, хоть узнаем в gdb дело или нет...
Back to top
View user's profile Send private message
dmiceman
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 115

PostPosted: Fri Oct 27, 2006 3:44 pm    Post subject: Reply with quote

ok, посмотрите правда, плиз. http://ubiz.ru/misc/core.gz -- 12 килобайт
Back to top
View user's profile Send private message
ba
l33t
l33t


Joined: 25 May 2003
Posts: 804

PostPosted: Fri Oct 27, 2006 4:09 pm    Post subject: Reply with quote

dmiceman wrote:
ok, посмотрите правда, плиз. http://ubiz.ru/misc/core.gz -- 12 килобайт

Code:
20:09 bazhin@yume ~ $ wget 'http://ubiz.ru/misc/core.gz'
--20:09:21--  http://ubiz.ru/misc/core.gz
           => `core.gz'
Распознаётся ubiz.ru... 82.146.33.210
Устанавливается соединение с ubiz.ru|82.146.33.210|:80... соединение установлено.
Запрос HTTP послан, ожидается ответ... 403 Forbidden
20:09:24 ОШИБКА 403: Forbidden.
Back to top
View user's profile Send private message
dmiceman
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 115

PostPosted: Fri Oct 27, 2006 4:34 pm    Post subject: Reply with quote

oops, sorry, поправил
Back to top
View user's profile Send private message
ba
l33t
l33t


Joined: 25 May 2003
Posts: 804

PostPosted: Fri Oct 27, 2006 5:33 pm    Post subject: Reply with quote

dmiceman wrote:
oops, sorry, поправил

дело у тебя похоже не в gdb...
Code:
"/home/bazhin/core" is not a core dump: File format not recognized

ulimit -c что говорит?
Back to top
View user's profile Send private message
dmiceman
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2005
Posts: 115

PostPosted: Fri Oct 27, 2006 5:53 pm    Post subject: Reply with quote

спасибо!

но странно это, странно..

ulimit -c тут ни при чем, он говорит то что я ему сказал: unlimited
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum