This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

fdisk crashes (Was: glibc 2.1.93)


On my RedHat 5.2 installation, after upgrading numerous utilities and
recently installing glibc 2.1.93, I now find that fdisk crashes:

[root@mira martin]# /sbin/fdisk 
Using /dev/sda as default device!
The number of cylinders for this disk is set to 1109.
This is larger than 1024, and may cause problems with:
1) software that runs at boot time (e.g., LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Segmentation fault

rpm says

[root@mira martin]# rpm -qf /sbin/fdisk 
util-linux-2.8-11

ldd says

        libc.so.6 => /lib/libc.so.6 (0x40021000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Inside gdb, it looks like

Program received signal SIGSEGV, Segmentation fault.
0x40098154 in __memchr () from /lib/libc.so.6
(gdb) bt
#0  0x40098154 in __memchr () from /lib/libc.so.6
#1  0x8052d50 in _IO_stdin_ ()
#2  0x40086723 in _IO_getline (fp=0x8052d50, buf=0x80551d0 "", n=79, delim=10, 
    extract_delim=1) at iogetline.c:39
#3  0x40085b6b in _IO_fgets (buf=0x80551d0 "", n=80, fp=0x8052d50)
    at iofgets.c:48
(gdb)

gdb is incapable of further unwinding the stack. Restarting, and
breaking on _IO_fgets, I see

(gdb) p *fp
$1 = {_flags = -72540024, 
  _IO_read_ptr = 0xffffffff <Address 0xffffffff out of bounds>, 
  _IO_read_end = 0x0, _IO_read_base = 0x0, _IO_write_base = 0x0, 
  _IO_write_ptr = 0x0, _IO_write_end = 0x0, _IO_buf_base = 0x0, 
  _IO_buf_end = 0x0, _IO_save_base = 0x0, _IO_backup_base = 0x0, 
  _IO_save_end = 0x0, _markers = 0x0, _chain = 0x0, _fileno = 0, _blksize = 0, 
  _old_offset = -1, _cur_column = 0, _vtable_offset = -72 '¸', _shortbuf = "", 
  _lock = 0x40125ca0, _offset = 5369912384, _codecvt = 0x40117160, 
  _wide_data = 0x0, _mode = 0, _unused2 = '\000' <repeats 51 times>}

I believe this error is caused by an incompatibility of glibc
2.1.93. If anybody wants the binary, please let me know. I've verified
that it works by changing LD_LIBRARY_PATH to the glibc-2.1.3.

Regards,
Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]