bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug bbzzzzzzz !!!!!


From: Andrew Clausen
Subject: Re: bug bbzzzzzzz !!!!!
Date: Wed, 18 Oct 2000 05:32:03 +1100

Stephane BRANGER wrote:
> 
> I got a bug ;-)
> 
> Error: Can't have a partition outside the disk!
> Error in creating partition
> A bug has been detected in GNU parted.  Please email a bug report to 
> address@hidden containing the version (1.2.9)
> and the following message:Assertion (part != NULL) at disk.c:1158 in function
> ped_disk_add_partition() failed. Failure in adding partition
> Erreur de segmentation (core dumped)

Did you get this from using Parted, or using your own front end to
libparted?

I suspect it's a bug in your program... it looks like you're not
checking for failure.  i.e.:

(1)     part = ped_partition_new (XXX);
(2)     ped_disk_add_partition (disk, part);

on (1), it Parted returns NULL, because there's an error.  If you
ignore this, you are doing something wrong.
        Then, when you call ped_disk_add_partition(), you are passing
NULL to ped_disk_add_partition.  libparted complains about this.
        Lastly, if your exception handler chooses to ignore the
exception, libparted will attempt to dereference the pointer, giving
the seg fault.

Also, you might want to try 1.2.11 ;-)

Andrew Clausen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]