Hi Walter,

libparted was not handling the device names for disks with ZFS GPT labels correctly. Disks with MS-DOS labels can have four partitions. So the device names are /dev/dsk/c0d0p1, ..., p4. Disks with GPT labels can have more partitions. But, there are no Solaris devices for these.

Here's a fixed version of libparted with the assertion removed. I tested it on a machine with ZFS GPT labeled disks. To use it, save the attachment and run these commands:

cp -p /usr/lib/libparted.so.8 /usr/lib/libparted.so.8.save
cp libparted.so.8 /usr/lib

I will open a bug and put the fix into the next release or the one after that.
Mark


mary ding wrote:
Mark:

I am not sure whether you are on the indiana-discuss alias but you should response back.



-------- Original Message --------
Subject: [indiana-discuss] gparted error
Date: Mon, 19 Oct 2009 20:12:17 -0700 (PDT)
From: weknox <[email protected]>
To: [email protected]

Hi all

When I run gparted in a terminal (as su), I receive the following error:


wek...@antonio-gramsci:~# gparted
======================
libparted : 1.8.8
======================
/dev/dsk/c7d0s0 is part of active ZFS pool media-pool. Please see zpool(1M).
Backtrace has 14 calls on stack:
  14: /usr/lib/libparted.so.8'ped_assert+0x33 [0xfef05f93]
  13: /usr/lib/libparted.so.8'_device_get_part_path+0x91 [0xfef0ed81]
12: /usr/lib/libparted.so.8'solaris_partition_get_path+0x16 [0xfef10d16]
  11: /usr/lib/libparted.so.8'ped_partition_get_path+0x5b [0xfef0aa6b]
10: /usr/sbin/gpartedbin'__1cHGPartedMGParted_CoreVset_device_partitions6Mrn0AGDevice__v_+0xc5 [0x8144a95] 9: /usr/sbin/gpartedbin'__1cHGPartedMGParted_CoreLset_devices6MrnDstdGvector4n0AGDevice_n0CJallocator4n0D______v_+0xd18 [0x81422e8] 8: /usr/sbin/gpartedbin'__1cHGPartedLWin_GPartedWthread_refresh_devices6M_v_+0x1b [0x818260b] 7: /usr/sbin/gpartedbin'__1cEsigcSbound_mem_functor04CvnHGPartedLWin_GParted__2f6kM_v_+0x2f [0x819252f] 6: /usr/sbin/gpartedbin'__1cEsigcPadaptor_functor4n0ASbound_mem_functor04CvnHGPartedLWin_GParted____2f6kM_v_+0xe [0x81924ee] 5: /usr/sbin/gpartedbin'__1cEsigcIinternalKslot_call04n0ASbound_mem_functor04CvnHGPartedLWin_GParted___Cv_Hcall_it6Fpn0BIslot_rep__v_+0x1a [0x818fefa] 4: /usr/lib/libglibmm-2.4.so.1.2.0'call_thread_entry_slot+0x37 [0xfe88bcdb] 3: /usr/lib/libglib-2.0.so.0.2200.0'g_thread_create_proxy+0x133 [0xfdbad303]
  2: /lib/libc.so.1'_thrp_setup+0x9b [0xfd88e4a3]
  1: /lib/libc.so.1'_lwp_start+0x0 [0xfd88e730]
Assertion (num >= 1 && num <= 4) at unknown:0 in function unknown() failed.

glibmm-ERROR **:
unhandled exception (type std::exception) in signal handler:
what: unexpected NULL pointer in function: basic_string(const _charT*,const _Allocator&)

aborting...
Abort (core dumped)


Any ideas?

Thanks in advance

walter

_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to