Segmentation fault while manual routing in OpenGL

Bug #1480732 reported by Xavier
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
KiCad
Expired
Critical
Unassigned

Bug Description

Kicad crashed after a while when interactive routing. You've been saying you can't reproduce this bug, but what can I do? I sent you before the GDB output and the board I was working on. This is other small design. Crashes happen in my laptop and my desktop, both 64b.

$ gdb kicad
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 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-linux-gnu".
Type "show configuration" for configuration details.
Para las instrucciones de informe de errores, vea:
<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"...
Leyendo símbolos desde kicad...(no se encontraron símbolos de depuración)hecho.
(gdb) r
Starting program: /usr/bin/kicad
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py", line 63, in <module>
    from libstdcxx.v6.printers import register_libstdcxx_printers
ImportError: No module named 'libstdcxx'
[Depuración de hilo usando libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 185: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 247: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 279: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 301: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 386: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 466: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 533: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 627: saw number, expected matrix
Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 1309: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 1440: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 1518: Having multiple values in <test> isn't supported and may not work as expected
[Nuevo Thread 0x7fffec024700 (LWP 5402)]
[Nuevo Thread 0x7fffeb823700 (LWP 5403)]
[Nuevo Thread 0x7fffeb022700 (LWP 5404)]
[Thread 0x7fffeb022700 (LWP 5404) terminado]
[Nuevo Thread 0x7fffeb022700 (LWP 5418)]
[Thread 0x7fffeb022700 (LWP 5418) terminado]
[Nuevo Thread 0x7fffeb022700 (LWP 5427)]

Program received signal SIGSEGV, Segmentation fault.
0x00007fffe90c0fb6 in BOARD_CONNECTED_ITEM::GetNetClass() const ()
   from /usr/bin/_pcbnew.kiface
(gdb) backtrace
#0 0x00007fffe90c0fb6 in BOARD_CONNECTED_ITEM::GetNetClass() const ()
   from /usr/bin/_pcbnew.kiface
#1 0x00007fffe9189796 in ROUTER_TOOL::prepareInteractive() ()
   from /usr/bin/_pcbnew.kiface
#2 0x00007fffe918a89c in ROUTER_TOOL::performRouting() ()
   from /usr/bin/_pcbnew.kiface
#3 0x00007fffe918ba4f in ROUTER_TOOL::mainLoop(PNS_ROUTER_MODE) ()
   from /usr/bin/_pcbnew.kiface
#4 0x00007fffe918bc04 in ROUTER_TOOL::RouteSingleTrace(TOOL_EVENT const&) ()
   from /usr/bin/_pcbnew.kiface
#5 0x00007fffe9265a41 in COROUTINE<int, TOOL_EVENT const&>::callerStub(long)
    () from /usr/bin/_pcbnew.kiface
#6 0x00007fffe936f2ae in make_fcontext () from /usr/bin/_pcbnew.kiface
#7 0x000000000702ded0 in ?? ()
#8 0x000000000702de10 in ?? ()
#9 0x000000000702ded8 in ?? ()
#10 0x0000000004fec948 in ?? ()
#11 0x0000000000000000 in ?? ()
(gdb)

Tags: cern pns
Revision history for this message
Xavier (fjrg76-z) wrote :
Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Hi Xavier,

I apologize if you read my response to the previous report as harsh, I did not mean it. I just wanted to know if there are any hints that could help us triggering the bug, as sometimes it is enough to perform a specific action to diagnose a bug. Apparently here we have a bug of tough kind, so it may take some time before fixing it, unless we find a reliable way to reproduce it.

Regards,
Orson

tags: added: cern pns
Revision history for this message
Maciej Suminski (orsonmmz) wrote :

I have just committed a patch from Tom that can potentially fix the problem (revision 6043), so please let us know if the problem persists afterwards.

Regards,
Orson

Revision history for this message
Nick Østergaard (nickoe) wrote :

Marking critical beacuase it is a crash.

Changed in kicad:
importance: Undecided → Critical
Revision history for this message
Xavier (fjrg76-z) wrote : RE: [Bug 1480732] Re: Segmentation fault while manual routing in OpenGL
Download full text (5.5 KiB)

Hi Orson,

I'll install the latest update ASAP, and I'll let you know the outcome.

Thanks!

> Date: Mon, 3 Aug 2015 19:24:15 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 1480732] Re: Segmentation fault while manual routing in OpenGL
>
> I have just committed a patch from Tom that can potentially fix the
> problem (revision 6043), so please let us know if the problem persists
> afterwards.
>
> Regards,
> Orson
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1480732
>
> Title:
> Segmentation fault while manual routing in OpenGL
>
> Status in KiCad:
> New
>
> Bug description:
> Kicad crashed after a while when interactive routing. You've been
> saying you can't reproduce this bug, but what can I do? I sent you
> before the GDB output and the board I was working on. This is other
> small design. Crashes happen in my laptop and my desktop, both 64b.
>
> $ gdb kicad
> GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
> Copyright (C) 2014 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-linux-gnu".
> Type "show configuration" for configuration details.
> Para las instrucciones de informe de errores, vea:
> <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"...
> Leyendo símbolos desde kicad...(no se encontraron símbolos de depuración)hecho.
> (gdb) r
> Starting program: /usr/bin/kicad
> Traceback (most recent call last):
> File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py", line 63, in <module>
> from libstdcxx.v6.printers import register_libstdcxx_printers
> ImportError: No module named 'libstdcxx'
> [Depuración de hilo usando libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 185: Having multiple values in <test> isn't supported and may not work as expected
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 247: Having multiple values in <test> isn't supported and may not work as expected
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 279: Having multiple values in <test> isn't supported and may not work as expected
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 301: Having multiple values in <test> isn't supported and may not work as expected
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 386: Having multiple values in <test> isn't supported and may not work as expected
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", l...

Read more...

Revision history for this message
Xavier (fjrg76-z) wrote :
Download full text (5.9 KiB)

Hi Orson,

For some strange reason I've experiencing segmentation faults whenever I try OpenGL mode. In fact, I've saved some GDB outputs besides the one I posted. If you're interested I can sent them to you.

And no worry, we're Ok, and thanks for your great effort in Kicad.

Regards!

> Date: Mon, 3 Aug 2015 08:34:06 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 1480732] Re: Segmentation fault while manual routing in OpenGL
>
> Hi Xavier,
>
> I apologize if you read my response to the previous report as harsh, I
> did not mean it. I just wanted to know if there are any hints that could
> help us triggering the bug, as sometimes it is enough to perform a
> specific action to diagnose a bug. Apparently here we have a bug of
> tough kind, so it may take some time before fixing it, unless we find a
> reliable way to reproduce it.
>
> Regards,
> Orson
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1480732
>
> Title:
> Segmentation fault while manual routing in OpenGL
>
> Status in KiCad:
> New
>
> Bug description:
> Kicad crashed after a while when interactive routing. You've been
> saying you can't reproduce this bug, but what can I do? I sent you
> before the GDB output and the board I was working on. This is other
> small design. Crashes happen in my laptop and my desktop, both 64b.
>
> $ gdb kicad
> GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
> Copyright (C) 2014 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-linux-gnu".
> Type "show configuration" for configuration details.
> Para las instrucciones de informe de errores, vea:
> <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"...
> Leyendo símbolos desde kicad...(no se encontraron símbolos de depuración)hecho.
> (gdb) r
> Starting program: /usr/bin/kicad
> Traceback (most recent call last):
> File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py", line 63, in <module>
> from libstdcxx.v6.printers import register_libstdcxx_printers
> ImportError: No module named 'libstdcxx'
> [Depuración de hilo usando libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 185: Having multiple values in <test> isn't supported and may not work as expected
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 247: Having multiple values in <test> isn't supported and may not work as expected
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 279: Having multiple va...

Read more...

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Hi Xavier,

Please send me the reports. Does it happen both with a board loaded and without?

Regards,
Orson

Revision history for this message
Xavier (fjrg76-z) wrote :
Download full text (5.4 KiB)

Hi Orson,

I'm sending you part of the report. Same day two runnings in a row.

> Date: Wed, 5 Aug 2015 07:20:28 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 1480732] Re: Segmentation fault while manual routing in OpenGL
>
> Hi Xavier,
>
> Please send me the reports. Does it happen both with a board loaded and
> without?
>
> Regards,
> Orson
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1480732
>
> Title:
> Segmentation fault while manual routing in OpenGL
>
> Status in KiCad:
> New
>
> Bug description:
> Kicad crashed after a while when interactive routing. You've been
> saying you can't reproduce this bug, but what can I do? I sent you
> before the GDB output and the board I was working on. This is other
> small design. Crashes happen in my laptop and my desktop, both 64b.
>
> $ gdb kicad
> GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
> Copyright (C) 2014 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-linux-gnu".
> Type "show configuration" for configuration details.
> Para las instrucciones de informe de errores, vea:
> <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"...
> Leyendo símbolos desde kicad...(no se encontraron símbolos de depuración)hecho.
> (gdb) r
> Starting program: /usr/bin/kicad
> Traceback (most recent call last):
> File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py", line 63, in <module>
> from libstdcxx.v6.printers import register_libstdcxx_printers
> ImportError: No module named 'libstdcxx'
> [Depuración de hilo usando libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 185: Having multiple values in <test> isn't supported and may not work as expected
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 247: Having multiple values in <test> isn't supported and may not work as expected
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 279: Having multiple values in <test> isn't supported and may not work as expected
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 301: Having multiple values in <test> isn't supported and may not work as expected
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 386: Having multiple values in <test> isn't supported and may not work as expected
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 466: Having multiple values in <test> isn't supported and may no...

Read more...

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Hi Xavier,

I need some more clarification here. I guess it might be better to move it to another bug report, as it seems to be a different problem than the one related to the router.

According to what I see in the backtrace, I am guessing you are using the legacy canvas to remove tracks by selecting an area and trying to remove the selection? It does not crash directly after switching to the OpenGL canvas (as I have understood from the previous message)?

Regards,
Orson

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Xavier,

Has the segfault described in the report happened when you were working in GAL or legacy canvas? It seems to me that it was caused by removing a track in the legacy canvas.

Does pcbnew really crash right after switching to OpenGL without any preceding actions in the legacy canvas?

What is the problematic revision number?

Regards,
Orson

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Hi Xavier,

Any comments on the above questions?

Regards,
Orson

Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Hi Xavier,

Tom has recently pushed a few fixes to the Push and Shove router, could you confim the problem still ocurrs? It still not clear to me whether there is another issue that you have shown in the attached backtraces. If so, would you give us a hint how to reproduce it?

Regards,
Orson

Changed in kicad:
status: New → Incomplete
Revision history for this message
Xavier (fjrg76-z) wrote :
Download full text (5.7 KiB)

Hi Orson,

I'll try my Kicad design routine so that I can reproduce the bug, it it still exists.

Thanks!

> Date: Sat, 29 Aug 2015 11:57:30 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 1480732] Re: Segmentation fault while manual routing in OpenGL
>
> Hi Xavier,
>
> Tom has recently pushed a few fixes to the Push and Shove router, could
> you confim the problem still ocurrs? It still not clear to me whether
> there is another issue that you have shown in the attached backtraces.
> If so, would you give us a hint how to reproduce it?
>
> Regards,
> Orson
>
> ** Changed in: kicad
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1480732
>
> Title:
> Segmentation fault while manual routing in OpenGL
>
> Status in KiCad:
> Incomplete
>
> Bug description:
> Kicad crashed after a while when interactive routing. You've been
> saying you can't reproduce this bug, but what can I do? I sent you
> before the GDB output and the board I was working on. This is other
> small design. Crashes happen in my laptop and my desktop, both 64b.
>
> $ gdb kicad
> GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
> Copyright (C) 2014 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-linux-gnu".
> Type "show configuration" for configuration details.
> Para las instrucciones de informe de errores, vea:
> <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"...
> Leyendo símbolos desde kicad...(no se encontraron símbolos de depuración)hecho.
> (gdb) r
> Starting program: /usr/bin/kicad
> Traceback (most recent call last):
> File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py", line 63, in <module>
> from libstdcxx.v6.printers import register_libstdcxx_printers
> ImportError: No module named 'libstdcxx'
> [Depuración de hilo usando libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 185: Having multiple values in <test> isn't supported and may not work as expected
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 247: Having multiple values in <test> isn't supported and may not work as expected
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 279: Having multiple values in <test> isn't supported and may not work as expected
> Fontconfig warning: "/home/fjrg76/.config/fontconfig/fonts.conf", line 301: Having multiple values in <test> isn't supported and may not work as expected
> Fontconfi...

Read more...

Revision history for this message
Strntydog (strntydog) wrote :

I tried manually routing in OpenGL canvas Yesterday, using the latest Kicad from the daily PPA. It was segfault like this, every few tracks. I edited manually. I had to switch back to Default Canvas, which doesn't crash. Most of my tracks were routed on the Default canvas, and i was trying to use the OpenGL canvas feature of pushing tracks to fix some clearance problems. Editing those tracks with clearance problems would randomly cause Kicad to lockup and then segfault.

Revision history for this message
Nick Østergaard (nickoe) wrote :

@Strntydog, could you provide the exact version information and ubuntu version?

Also, are you able to describe a way to reproduce this easily? Is it on an old board you are working on, or is it a fresh design?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for KiCad because there has been no activity for 60 days.]

Changed in kicad:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.