X-Authentication-Warning: delorie.com: mail set sender to geda-help-bounces using -f X-Recipient: geda-help AT delorie DOT com Subject: Re: [geda-help] PCB segfault - project too big? From: Richard Rasker To: geda-help AT delorie DOT com In-Reply-To: <201110111442.p9BEgtk6025142@envy.delorie.com> References: <1318338356 DOT 29731 DOT 2 DOT camel AT localhost> <201110111442 DOT p9BEgtk6025142 AT envy DOT delorie DOT com> Content-Type: text/plain; charset=utf-8 Organization: Linetec Date: Tue, 11 Oct 2011 19:11:02 +0200 Message-Id: <1318353062.5503.22.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1-2.2mdv2008.1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p9BHBApk029425 Reply-To: geda-help AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-help AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Op dinsdag 11-10-2011 om 10:42 uur [tijdzone -0400], schreef DJ Delorie: > I have panels with over 800 elements on them, and an individual board > with 412. There are no hard-coded limits in PCB that would affect the > number of elements. > > When you build pcb, there's a pcbtest.sh script in src/ that accepts a > -gdb option, which runs pcb in a debugger. Once it crashes, type > "where" to find out *where* it crashed. OK, found pcbtest.sh, and here's what happens: Loading schematic [/home/richard/electron/myproject-page1.sch] Loading schematic [/home/richard/electron/myproject-page2.sch] Loading schematic [/home/richard/electron/myproject-page3.sch] Loading schematic [/home/richard/electron/myproject-page4.sch] Loading schematic [/home/richard/electron/myproject-page5.sch] Loading schematic [/home/richard/electron/myproject-page6.sch] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1221482816 (LWP 7119)] 0xb75a7338 in strcmp () from /lib/i686/libc.so.6 (gdb) where #0 0xb75a7338 in strcmp () from /lib/i686/libc.so.6 #1 0x0806268f in find_element_by_refdes (refdes=0x89a6bc9 "L305") at action.c:6944 #2 0x08062b49 in ActionElementList (argc=4, argv=, x=0, y=0) at action.c:7173 #3 0x080d8a5f in hid_actionv (name=0x89a6bb8 "ElementList", argc=4, argv=0x8994318) at hid/common/actions.c:246 #4 0x080d8dcd in hid_parse_actionstring ( rstr=0xbfc2fb00 "ElementList(Need,\"L305\",\"COIL_3\",\"4.7uH\")", require_parens=1 '\001') at hid/common/actions.c:330 #5 0x0806a4be in ActionExecuteFile (argc=1, argv=0x8481338, x=0, y=0) at action.c:6911 #6 0x0806ab2a in ActionImport (argc=0, argv=0x0, x=0, y=0) at action.c:7782 #7 0x080d8a5f in hid_actionv (name=0x83dd468 "Import", argc=0, argv=0x0) at hid/common/actions.c:246 #8 0x080d8dcd in hid_parse_actionstring (rstr=0x8359bb8 "Import()", require_parens=1 '\001') at hid/common/actions.c:330 #9 0x0810fd0a in ghid_menu_cb (action=0x81d4b48, data=0x8181b60) at hid/gtk/gui-top-window.c:632 #10 0xb78f3585 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 #11 0xb78e5f9d in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #12 0xb78fa2a0 in g_str_equal () from /usr/lib/libgobject-2.0.so.0 #13 0xb78fbeee in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #14 0xb78fc22b in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #15 0xb7af23e6 in g_str_equal () from /usr/lib/libgtk-x11-2.0.so.0 #16 0xb7af33a1 in gtk_action_activate () from /usr/lib/libgtk-x11-2.0.so.0 #17 0xb78f3585 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 #18 0xb78e5f9d in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #19 0xb78fa2a0 in g_str_equal () from /usr/lib/libgobject-2.0.so.0 #20 0xb78fbeee in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #21 0xb78fc22b in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #22 0xb7d14c36 in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0 #23 0xb7bf6b11 in gtk_menu_shell_activate_item () from /usr/lib/libgtk-x11-2.0.so.0 #24 0xb7bf8719 in g_str_equal () from /usr/lib/libgtk-x11-2.0.so.0 #25 0xb7bef2be in g_str_equal () from /usr/lib/libgtk-x11-2.0.so.0 #26 0xb7be8e2c in g_str_equal () from /usr/lib/libgtk-x11-2.0.so.0 #27 0xb78e47ce in g_str_equal () from /usr/lib/libgobject-2.0.so.0 #28 0xb78e5f9d in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #29 0xb78fa439 in g_str_equal () from /usr/lib/libgobject-2.0.so.0 #30 0xb78fbc14 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #31 0xb78fc22b in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #32 0xb7d0ff03 in g_str_equal () from /usr/lib/libgtk-x11-2.0.so.0 #33 0xb7be1bb9 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0 #34 0xb7be2e5c in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0 #35 0xb7a50c08 in g_str_equal () from /usr/lib/libgdk-x11-2.0.so.0 #36 0xb7ea2a40 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #37 0xb7ea5d15 in g_str_equal () from /usr/lib/libglib-2.0.so.0 #38 0xb7ea6058 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #39 0xb7be32bf in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0 #40 0x0810fc0d in ghid_do_export (options=0x0) at hid/gtk/gui-top-window.c:2726 #41 0x080a4150 in main (argc=Cannot access memory at address 0x1fa43 ) at main.c:1091 I really have no clue if this offers any more information; and oh, what's more: someone also involved in this project doesn't experience any crashes with the exact same files and PCB version (pcb-20100929). The main difference is that he's running a more recent Ubuntu installation, whereas I'm still on an old Mandriva 2008.1 installation. > You can run "gnetlist -g pcbfwd" on your schematics to make the script > file that pcb is running; at least if you want someone else to look at > the problem it's fewer files you need to share (you'd still need to > share the pcb and any custom footprints it might need to load) > > Also, make sure you're testing the latest git version of pcb incase > it's something that's already been fixed ;-) As I said, I'm running version 20100929 -- I just pulled in the latest git version, but compiling it fails because of a missing OpenGL GLU library, which apparently isn't available for my ancient Mandriva version. Perhaps I should no longer postpone the major Linux upgrade :-/ But thanks for the help so far, hopefully the problem can be solved without reinstalling pcb (or my complete Linux version ...) Best regards, Richard Rasker