kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #39036
Re: SIGTRAP crash with ngspice
-
To:
Nick Østergaard <oe.nick@xxxxxxxxx>
-
From:
"Steven A. Falco" <stevenfalco@xxxxxxxxx>
-
Date:
Tue, 15 Jan 2019 16:07:24 -0500
-
Autocrypt:
addr=stevenfalco@xxxxxxxxx; keydata= xsBNBFsz14EBCACybmOt8ADXje8UJJ4hPBTZo3Sm3XS5hhMUDb1/6rQSbT7dpFf3CGp4qwIB DMfS4sV1JMyr3Sl67HzvTMqqHCOTj/QSWiRtFEiasYy82ujfN0/82esM5uKK7Ev2QTs+PZ+Z oqZCwuD7FIRgKtKogJrYmM0aNkKYf1cw4WsND8eGcN1EmmVAQ0PIptpXhiSkJbQLFm06lyTp OBA9MctcPXCRE3DRgByx0YJAjeSckHnU8grJY6niIJgYv5pfrOYSEI+aHgEyePgPzuVz5Y1G 1lb35JG6kdH7GJ406Gggrwe/ia15+HDUMMIy+7EHUSeVWhuXjyW8h4IbbdJ9/YJJa5R9ABEB AAHNJ1N0ZXZlbiBBLiBGYWxjbyA8c3RldmVuZmFsY29AZ21haWwuY29tPsLAlAQTAQgAPgIb AwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgBYhBFyBX3Re/Ohwg2zkVLdBZWVuLJciBQJcFVxD BQkKR4ZCAAoJELdBZWVuLJcixMYH/3DAFR8XdBzXzaBRVHuo5PeEvSbLPgHw9ZbNi+ZlhFKh 99nsHksDx9H0n2htw7B029L7bI0+5rfAR5/CMw1iqeZMRll0NjVPVrdC+8qQAS3Zz0yaQVw0 ReeDEabA5oMuLE4JuWjqULUCyZt3U9feTNeNJeoD29XTt2E2FP6/KXiysbM/+/tez/2VBoYZ wGqxaRkEuo2I9ZTRx0o8wqBFvRgPOPZJC8vwsy72dkwp5z6LIaIHvr4AgdcTbHixRAyx2sUY 7fBc8UROoPJujLIVQeYaHClUev6gJs3XWs7EArFlIvWcda9YcHijAi69KjM1DSkUKQBgkd06 ES/Wgry4E9nOwE0EWzPXgQEIAN5WNTBUyL/eZ6wr4le5J6zoUZTm2pwxaqsyOje+iyoa/Cpa imhAaFnYe3N3z3gvlIPOLUAmyzUmy2ph9yMsi+GXFP3ZxaPk5uP4fmvivF6OuOlrNSpbEdn1 2AU0msRZccTbWIU6wunkvi7cUYJLe+ZZEn43ALaIMwFegRZqe57Re8pc8k0wlYOsVrZ8UTTp NEXGJ+c/aC1K5xhPUt6nCZNfvkAOdQ74mVrg4ogXuGl1vbZS0J8mv+OOe9RYUqFSUPo3MIGT M68SOfE6NmsVXI/Glb7m6kMKQt+Tm22hKVxyptIgNqA4qrYBc/PMCvGObnCKEy4GSLii1bcz D9a+2ZcAEQEAAcLAfAQYAQgAJgIbDBYhBFyBX3Re/Ohwg2zkVLdBZWVuLJciBQJcFV6FBQkK R4iEAAoJELdBZWVuLJciNQcH/2RIXU/dbXIP+QwdTaqmYpuzdXImvy+7l62MpqteQJ+NYwob 3vbZb40ie3xu/WFr+nqbsUzzrw43/s6as923AExZbgsZ6Zx5nN6xf4E5NdvaBZ0vVMezCuvl QvDAOeJ0RFhldzSVPizQ/o9kOxCgtU1eK93NKCBUOfr5/OpoGKnXYV2e8s+DzUkUjih0cN4x qy3/r0Fe+K7QUaNIqjcmjPgI8SX/9axqpEBhmygEQ8Tuy79UwQjemKzkY8/6rIEoM8L2nQsv u7PqvK53liTljqMK7ojVUTsEon0aeHs/4sP1YER7ExDXPC7ogr0JrBuuqZ3gA2M+T2lWq2kM 8CrrKSY=
-
Cc:
KiCad developers <kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
In-reply-to:
<CAOuK9LgNHUZyYHrENW9YeMOZSTTvxcsc87+a-ncSUzzUf7KZ0A@mail.gmail.com>
-
Openpgp:
preference=signencrypt
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
I opened a bug here: https://bugzilla.redhat.com/show_bug.cgi?id=1666505
I've made the necessary changes in "fedora-packaging" but right now I'm getting an unreleated build failure:
[ 18%] Building CXX object common/CMakeFiles/pcbcommon.dir/__/pcbnew/io_mgr.cpp.o
cd /builddir/build/BUILD/kicad-r14777-54334233/common && /usr/bin/c++ -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD_SCRIPTING -DKICAD_SCRIPTING_ACTION_MENU -DKICAD_SCRIPTING_MODULES -DKICAD_SPICE -DKICAD_USE_OCE -DWXUSINGDLL -DWX_COMPATIBILITY -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -DPCBNEW -I/builddir/build/BUILD/kicad-r14777-54334233/include -I/builddir/build/BUILD/kicad-r14777-54334233/common/. -I/builddir/build/BUILD/kicad-r14777-54334233/common/./dialogs -I/builddir/build/BUILD/kicad-r14777-54334233/common/./widgets -I/builddir/build/BUILD/kicad-r14777-54334233/common/./dialog_about -I/usr/include/cairo -I/usr/include/pixman-1 -I/builddir/build/BUILD/kicad-r14777-54334233/common/../3d-viewer -I/builddir/build/BUILD/kicad-r14777-54334233/common/../pcbnew -I/builddir/build/BUILD/kicad-r14777-54334233/common/../polygon -I/builddir/build/BUILD/kicad-r14777-54334233 -I/usr/include/python2.7 -I/builddir/build/BUILD/kicad-r14777-54334233/scripting -I/usr/lib64/oce-0.18/../../include/oce -I/builddir/build/BUILD/kicad-r14777-54334233/common/../include/legacy_wx -isystem /usr/lib64/wx/include/gtk2-unicode-3.0 -isystem /usr/include/wx-3.0 -Wall -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wsuggest-override -Werror=vla -Wno-unused-local-typedefs -Wno-strict-aliasing -pthread -Wshadow -g3 -ggdb3 -DDEBUG -Wno-deprecated-declarations -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++11 -o CMakeFiles/pcbcommon.dir/__/pcbnew/io_mgr.cpp.o -c /builddir/build/BUILD/kicad-r14777-54334233/pcbnew/io_mgr.cpp
BUILDSTDERR: /builddir/build/BUILD/kicad-r14777-54334233/pcbnew/io_mgr.cpp: In static member function 'static IO_MGR::PCB_FILE_T IO_MGR::GuessPluginTypeFromLibPath(const wxString&)':
BUILDSTDERR: /builddir/build/BUILD/kicad-r14777-54334233/pcbnew/io_mgr.cpp:164:19: error: 'GITHUB' was not declared in this scope
BUILDSTDERR: ret = GITHUB;
BUILDSTDERR: ^~~~~~
BUILDSTDERR: /builddir/build/BUILD/kicad-r14777-54334233/pcbnew/io_mgr.cpp:164:19: note: suggested alternative: 'SIGHUP'
BUILDSTDERR: ret = GITHUB;
BUILDSTDERR: ^~~~~~
BUILDSTDERR: SIGHUP
BUILDSTDERR: /builddir/build/BUILD/kicad-r14777-54334233/pcbnew/io_mgr.cpp: At global scope:
BUILDSTDERR: /builddir/build/BUILD/kicad-r14777-54334233/pcbnew/io_mgr.cpp:208:62: error: 'GITHUB' is not a member of 'IO_MGR'
BUILDSTDERR: static IO_MGR::REGISTER_PLUGIN registerGithubPlugin( IO_MGR::GITHUB, wxT("Github"), []() -> PLUGIN* { return new GITHUB_PLUGIN; } );
BUILDSTDERR: ^~~~~~
BUILDSTDERR: make[2]: *** [common/CMakeFiles/pcbcommon.dir/build.make:556: common/CMakeFiles/pcbcommon.dir/__/pcbnew/io_mgr.cpp.o] Error 1
On 1/15/19 3:26 PM, Nick Østergaard wrote:
> Yes, I am fine with using it in the copr builds for now. Do we need to submit a PR for the libngspice package to let the packager pick it up more easy? I have not seen any activity from him.
>
> On Tue, 15 Jan 2019 at 20:58, Steven A. Falco <stevenfalco@xxxxxxxxx <mailto:stevenfalco@xxxxxxxxx>> wrote:
>
> On 1/15/19 9:21 AM, Wayne Stambaugh wrote:
> > Hi Steve,
> >
> > On 1/15/2019 8:51 AM, Steven A. Falco wrote:
> >> I'll look at that. The worst burst of backspaces is about 7 characters long, so I could accumulate 14 chars or so before making a decision. In other words, run a circular buffer, and when I see the first non-backspace after a string of backspaces, then process the buffer.
> >>
> >> But I'm starting to think that the better approach is to drop this patch from the official tree, and just put my original patch into Fedora-only, as a temporary patch, to be removed when the library issue is corrected.
> >
> > This may be the way to go as this is only temporary until the ng-spice
> > library is fixed. I'm assuming this issue is specific to Fedora. If
> > not, we can re-evaluate it at the time that it is broken on another
> > platform.
>
> I committed my original patch into the Fedora build system. A new build will appear in rawhide in a day or two, and it will appear in Fedora 29 after a week or two, once the karma process runs its course. Thus Fedora users can start enjoying ngspice soon. I'll keep track of the ngspice library, and if a fix appears there, then I'll remove my patch.
>
> I did take a stab at a new, efficient patch which addresses Seth's concern - but after studying the dynamics of the message passing, I don't think it really matters. Messages always seem to break on carriage-return boundaries, so either patch will work without any loss of data.
>
> I attached the new patch here so it won't get lost. It behaves about the same as the earlier one, but it does print some extra '%' characters that are left over after the backspaces are processed. Thus, I actually prefer the original patch, because it produces slightly cleaner output.
>
> Nick - Do you want to put either version into the Copr builds?
>
> Steve
>
> P.S. - This time, I tried to follow the coding style, as per Wayne's email. :-)
>
Follow ups
References
-
SIGTRAP crash with ngspice
From: Steven A. Falco, 2019-01-11
-
Re: SIGTRAP crash with ngspice
From: Seth Hillbrand, 2019-01-11
-
Re: SIGTRAP crash with ngspice
From: Steven A. Falco, 2019-01-11
-
Re: SIGTRAP crash with ngspice
From: Steven A. Falco, 2019-01-11
-
Re: SIGTRAP crash with ngspice
From: Steven A. Falco, 2019-01-14
-
Re: SIGTRAP crash with ngspice
From: Wayne Stambaugh, 2019-01-14
-
Re: SIGTRAP crash with ngspice
From: Steven A. Falco, 2019-01-14
-
Re: SIGTRAP crash with ngspice
From: Wayne Stambaugh, 2019-01-14
-
Re: SIGTRAP crash with ngspice
From: Steven A. Falco, 2019-01-14
-
Re: SIGTRAP crash with ngspice
From: Andrew Lutsenko, 2019-01-15
-
Re: SIGTRAP crash with ngspice
From: Steven A. Falco, 2019-01-15
-
Re: SIGTRAP crash with ngspice
From: Wayne Stambaugh, 2019-01-15
-
Re: SIGTRAP crash with ngspice
From: Steven A. Falco, 2019-01-15
-
Re: SIGTRAP crash with ngspice
From: Nick Østergaard, 2019-01-15