[Comm] fstype segfault

Michael Shigorin =?iso-8859-1?q?mike_=CE=C1_osdn=2Eorg=2Eua?=
Чт Сен 6 20:12:31 MSD 2007


On Thu, Sep 06, 2007 at 10:01:51PM +0600, Starodumoff Ilya wrote:
> > fstype --help
> угу...  от рута: раздел c ext3:
> [root на localhost ~]# fstype -d /dev/hdb5
> *** stack smashing detected ***: fstype terminated
> Aborted
> Внимание, знатоки, вопрос - ШОЭТО ? :)

Баг, разумеется.

stat64("/dev/hda2", {st_mode=S_IFBLK|0640, st_rdev=makedev(3, 2), ...}) = 0
open("/dev/hda2", O_RDONLY)             = 3
lseek(3, 1024, SEEK_SET)                = 1024
read(3, "XAGI\0\0\0\1\0\0\0\0\0\0\37`\0\0\5\300\0\0\0\3\0\0\0\1\0\0\0\33"..., 228) = 228
lseek(3, 0, SEEK_SET)                   = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\0\0\373\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 8192) = 8192
lseek(3, 0, SEEK_SET)                   = 0
read(3, "XFSB\0\0\20\0\0\0\0\0\0\0\373\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 576) = 576
brk(0)                                  = 0x804a000
brk(0x806b000)                          = 0x806b000
close(3)                                = 0
open("/dev/tty", O_RDWR|O_NOCTTY|O_NONBLOCK) = 3
writev(3, [{"*** stack smashing detected ***:"..., 33}, {"fstype", 6}, {" terminated\n", 12}], 3*** stack smashing detected ***: fstype terminated
) = 51
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
gettid()                                = 5925
tgkill(5925, 5925, SIGABRT)             = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++

Повесите по праву первонаступателя?

-- 
 ---- WBR, Michael Shigorin <mike на altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/



Подробная информация о списке рассылки community