← Back to team overview

kicad-developers team mailing list archive

Re: Zone fill hangup?

 

On 02/03/2018 07:04 PM, Tomasz Wlostowski wrote:
> On 03/02/18 18:40, Steven A. Falco wrote:
>> Thanks, but now I'm confused.
> 
> Sorry, I got confused by the date of your PCB file. You're indeed
> running fresh Feb 2018 build. I tried opening your design in today's
> latest master and it doesn't hang while filling zones.
> 
> Could you get a stack trace (Ctrl-C in gdb while pcbnew is hanged)? It
> would let us find the source of the problem faster.
> 
> Thanks,
> Tom

Ok - below are two dumps from running pcbnew directly in gdb (kicad-r11969.dc66b73-nightlies.fc27.x86_64 version) - I ran it twice in case I caught it at a different point.  I also put an strace in the Dropbox directory.  The strace is missing carriage returns for some reason, but seems to be showing an endless repeat of EAGAIN errors.

	Steve

fedora27$ gdb pcbnew
GNU gdb (GDB) Fedora 8.0.1-35.fc27
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from pcbnew...Reading symbols from /home/sfalco/pcbnew...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Missing separate debuginfos, use: dnf debuginfo-install kicad-r11969.dc66b73-nightlies.fc27.x86_64
(gdb) run
Starting program: /usr/bin/pcbnew 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Detaching after fork from child process 4987.
Detaching after fork from child process 4989.
Detaching after fork from child process 4991.
Detaching after fork from child process 4993.
Detaching after fork from child process 4995.
[New Thread 0x7fffd75a8700 (LWP 4997)]
[New Thread 0x7fffcd14e700 (LWP 4998)]
[New Thread 0x7fffcc94d700 (LWP 4999)]
[Thread 0x7fffcc94d700 (LWP 4999) exited]
SetProjectFullName: old:'' new:'/home/sfalco/kicad/new_weather/main/main.pro'
08:31:12 PM: Debug: Loading project '/home/sfalco/kicad/new_weather/main/main.pro' settings.
[Thread 0x7fffcd14e700 (LWP 4998) exited]
^C
Thread 1 "pcbnew" received signal SIGINT, Interrupt.
0x00007ffff3932f50 in nanosleep () from /lib64/libpthread.so.0
(gdb) bt
#0  0x00007ffff3932f50 in nanosleep () from /lib64/libpthread.so.0
#1  0x00007ffff6531cbc in wxMicroSleep(unsigned long) ()
   from /lib64/libwx_baseu-3.0-gtk2.so.0
#2  0x00007fffdfeee7d2 in PROGRESS_REPORTER::KeepRefreshing(bool) ()
   from /usr/bin/_pcbnew.kiface
#3  0x00007fffdfbe0010 in ZONE_FILLER::Fill(std::vector<ZONE_CONTAINER*, std::allocator<ZONE_CONTAINER*> >) [clone ._omp_fn.0] () from /usr/bin/_pcbnew.kiface
#4  0x00007ffff3d64cdf in GOMP_parallel () from /lib64/libgomp.so.1
#5  0x00007fffdfbdce1e in ZONE_FILLER::Fill(std::vector<ZONE_CONTAINER*, std::allocator<ZONE_CONTAINER*> >) () from /usr/bin/_pcbnew.kiface
#6  0x00007fffdfc434f4 in ZONE_FILLER_TOOL::ZoneFillAll(TOOL_EVENT const&) ()
   from /usr/bin/_pcbnew.kiface
#7  0x00007fffdffd25b0 in COROUTINE<int, TOOL_EVENT const&>::callerStub(long)
    () from /usr/bin/_pcbnew.kiface
#8  0x00007fffe0018ec1 in make_fcontext () from /usr/bin/_pcbnew.kiface
#9  0x3cb0d83000000000 in ?? ()
#10 0x00000000be151450 in ?? ()
#11 0xb25800003a98f660 in ?? ()
#12 0x0000000000030061 in ?? ()
#13 0x00007ffff391c430 in main_arena () from /lib64/libc.so.6
#14 0x00007ffff391c430 in main_arena () from /lib64/libc.so.6
#15 0x00005555580c0900 in ?? ()
#16 0x00005555580c0900 in ?? ()
#17 0x00005555580e2910 in ?? ()
#18 0x0000000000000000 in ?? ()
(gdb) 


fedora27$ gdb pcbnew          
GNU gdb (GDB) Fedora 8.0.1-35.fc27
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from pcbnew...Reading symbols from /home/sfalco/pcbnew...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Missing separate debuginfos, use: dnf debuginfo-install kicad-r11969.dc66b73-nightlies.fc27.x86_64
(gdb) run
Starting program: /usr/bin/pcbnew 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Detaching after fork from child process 5017.
Detaching after fork from child process 5019.
Detaching after fork from child process 5021.
Detaching after fork from child process 5023.
Detaching after fork from child process 5025.
SetProjectFullName: old:'' new:'/home/sfalco/kicad/new_weather/main/main.pro'
08:36:46 PM: Debug: Loading project '/home/sfalco/kicad/new_weather/main/main.pro' settings.
[New Thread 0x7fffd75a8700 (LWP 5027)]
[New Thread 0x7fffd0da0700 (LWP 5028)]
[Thread 0x7fffd0da0700 (LWP 5028) exited]
^C
Thread 1 "pcbnew" received signal SIGINT, Interrupt.
0x00007ffff3932f50 in nanosleep () from /lib64/libpthread.so.0
(gdb) bt
#0  0x00007ffff3932f50 in nanosleep () from /lib64/libpthread.so.0
#1  0x00007ffff6531cbc in wxMicroSleep(unsigned long) ()
   from /lib64/libwx_baseu-3.0-gtk2.so.0
#2  0x00007fffdfeee7d2 in PROGRESS_REPORTER::KeepRefreshing(bool) ()
   from /usr/bin/_pcbnew.kiface
#3  0x00007fffdfbe0010 in ZONE_FILLER::Fill(std::vector<ZONE_CONTAINER*, std::allocator<ZONE_CONTAINER*> >) [clone ._omp_fn.0] () from /usr/bin/_pcbnew.kiface
#4  0x00007ffff3d64cdf in GOMP_parallel () from /lib64/libgomp.so.1
#5  0x00007fffdfbdce1e in ZONE_FILLER::Fill(std::vector<ZONE_CONTAINER*, std::allocator<ZONE_CONTAINER*> >) () from /usr/bin/_pcbnew.kiface
#6  0x00007fffdfc434f4 in ZONE_FILLER_TOOL::ZoneFillAll(TOOL_EVENT const&) ()
   from /usr/bin/_pcbnew.kiface
#7  0x00007fffdffd25b0 in COROUTINE<int, TOOL_EVENT const&>::callerStub(long)
    () from /usr/bin/_pcbnew.kiface
#8  0x00007fffe0018ec1 in make_fcontext () from /usr/bin/_pcbnew.kiface
#9  0x000000003f800000 in ?? ()
#10 0x0000000000000000 in ?? ()
(gdb) 


Follow ups

References