forwarded 927785 https://github.com/dcantrell/pyparted/issues/57
thanks

Sent debugging.txt file (Bernhard Übelacker file)



On 4/23/19 6:35 AM, Bernhard Übelacker wrote:
> Dear Maintainer,
> I just tried to find some more information.
> 
> I could reproduce the issue in a unstable amd64 VM
> on the second attempt.
> 
> It looks like in a garbage collector run a
> division by zero is triggered because we
> get there with sector_size==0.
> 
> If wanted I can forward the core file.
> 
> Kind regards,
> Bernhard
> 
> 
> 
> 1708    gpt_alloc_metadata (PedDisk *disk)
> 1709    {
> ...
> 1718      gptlength = ped_div_round_up (sizeof (GuidPartitionTableHeader_t),
> 1719                                    disk->dev->sector_size);
> 
> 
> (gdb) bt
> #0  0x00007fb67449e727 in ped_div_round_up (divisor=0, numerator=100) at 
> ../../../include/parted/natmath.h:130
> #1  gpt_alloc_metadata (disk=0x558890efb060) at 
> ../../../libparted/labels/gpt.c:1718
> #2  0x00007fb67448851a in _disk_alloc_metadata (disk=0x558890efb060) at 
> ../../libparted/disk.c:1164
> #3  _disk_pop_update_mode (disk=0x558890efb060) at ../../libparted/disk.c:1164
> #4  0x00007fb6744890b2 in ped_disk_delete_all 
> (disk=disk@entry=0x558890efb060) at ../../libparted/disk.c:2104
> #5  0x00007fb67449dd59 in gpt_free (disk=0x558890efb060) at 
> ../../../libparted/labels/gpt.c:622
> #6  0x00007fb674abee82 in ?? ()
> #7  0x00007fb673c46348 in ?? ()
> #8  0x000055888eb4b67b in dict_dealloc (mp=0x7fb673c46280) at 
> ../Objects/dictobject.c:1086
> #9  0x000055888ebf8339 in subtype_clear (self=<Disk at remote 
> 0x7fb673bbaa10>) at ../Objects/typeobject.c:912
> #10 0x000055888eb3860c in delete_garbage (old=0x55888eda25b0 
> <generations.lto_priv+80>, collectable=0x7ffd0ab2f4e0) at 
> ../Modules/gcmodule.c:817
> #11 collect (generation=2) at ../Modules/gcmodule.c:981
> #12 0x000055888eb9fcaa in PyGC_Collect () at ../Modules/gcmodule.c:1439
> #13 0x000055888eb9ef44 in Py_Finalize () at ../Python/pythonrun.c:455
> #14 0x000055888ebc92c8 in Py_Exit (sts=0) at ../Python/pythonrun.c:1795
> #15 0x000055888ebc6a8d in handle_system_exit () at ../Python/pythonrun.c:1160
> #16 0x000055888ebc63b6 in PyErr_PrintEx (set_sys_last_vars=<optimized out>, 
> set_sys_last_vars=<optimized out>) at ../Python/pythonrun.c:1170
> #17 0x000055888ebc527d in RunModule (module=<optimized out>, 
> set_argv0=<optimized out>) at ../Modules/main.c:199
> #18 0x000055888eb2cea2 in Py_Main (argc=<optimized out>, argv=0x7ffd0ab2f888) 
> at ../Modules/main.c:592
> #19 0x00007fb674bc209b in __libc_start_main (main=0x55888eb2ca90 <main>, 
> argc=5, argv=0x7ffd0ab2f888, init=<optimized out>, fini=<optimized out>, 
> rtld_fini=<optimized out>, stack_end=0x7ffd0ab2f878) at 
> ../csu/libc-start.c:308
> #20 0x000055888eb2c9ca in _start () at ../Modules/gcmodule.c:1003
> 

Reply via email to