Busybox fdisk segmentation fault error

Today I have run into an error with fdisk under busybox. I am currently building a really small system with basic stuffs, and I need to run fdisk in the initramfs. Unfortunately when I try to run fdisk interactively, I get the following error:


fdisk[...]: segfault at 8117dc4 ip 080ff478 sp bffee994 error 7 in fdisk[8048000+df000]
Segmentation fault

It seems this is a bug in the input handling, or maybe I made something wrong. Anyway, the following is working fine:


# cat | fdisk /dev/...

I will take a look on this in the source and update this post if i will have enough time.

This entry was written by kakaopor , posted on Sunday March 15 2009at 01:03 am , filed under Uncategorized and tagged , . Bookmark the permalink . Post a comment below or leave a trackback: Trackback URL.

Leave a Reply

i
north-supercharged