wrcad / xictools

XicTools: Xic graphical editor, WRspice circuit simulator, and accessories. for electronic design.
http://wrcad.com
145 stars 41 forks source link

Startup failure on Debian #4

Open svenn71 opened 5 years ago

svenn71 commented 5 years ago

Manage to compile, create deb-packages and install xictools.

Then try to run:

export XIC_LIBRARY_PATH=/usr/local/xictools /usr/local/xictools/xic/bin/xic.sh

Xic integrated circuit design system release 4.3.6, build 011419-170950 Copyright (C) Whiteley Research Inc., Sunnyvale, CA 2019 All Rights Reserved

Found true color visual, 24 planes. Using Python (py27.so). Reading technology file /usr/local/xictools/xic/startup/xic_tech. Loading MRouter Current directory: /home/svennb/work/prg/git/xictools

Fatal internal error: segmentation violation. All logs retained in /tmp/xic.1105. mail: cannot send message: Process exited with a non-zero status File gdbout emailed to xic@wrcad.com. /usr/local/xictools/xic/bin/xic.sh: line 26: 1105 Killed /usr/local/xictools/xic/bin/xic $*

the gdbout file is included here

Xic-4.3.6 LinuxUnknown (xic-4-3-6) Tue Jan 15 11:48:33 2019 Pid = 1105 DeathAddr = 0x55e6614bde4d /usr/local/xictools/xic/bin/xic(_ZN8miscutil14dump_backtraceEPKcS1_S1_PKv+0x29d)[0x55e661b5907d] /usr/local/xictools/xic/bin/xic(_ZN5cMain4ExitE8ExitType+0x191)[0x55e66149e383] /usr/local/xictools/xic/bin/xic(+0x1bfccc)[0x55e6614cdccc] /usr/local/xictools/xic/bin/xic(+0x1c001a)[0x55e6614ce01a] /lib/x86_64-linux-gnu/libpthread.so.0(+0x12670)[0x7f0908670670] /usr/local/xictools/xic/bin/xic(_ZN11ContextDesc5clearEv+0x9)[0x55e6614bde4d] /usr/local/xictools/xic/bin/xic(_ZN8cPushPop12ClearContextEb+0x30)[0x55e6614bfe34] /usr/local/xictools/xic/bin/xic(_ZN5cMain15ClearReferencesEbb+0x248)[0x55e66149b818] /usr/local/xictools/xic/bin/xic(_ZN5cMain4LoadEP10WindowDescPKcPK11FIOreadPrmsS3_P4cCHD+0x738)[0x55e66149fc04] /usr/local/xictools/xic/bin/xic(_ZN5cMain8EditCellEPKcbPK11FIOreadPrmsS1_P4cCHD+0x482)[0x55e6614a105e] /usr/local/xictools/xic/bin/xic(+0x141b34)[0x55e66144fb34] /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x158)[0x7f09087cecb8] /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4e0a8)[0x7f09087cf0a8] /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c)[0x7f09087cf13c] /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main_iteration+0x21)[0x7f0908e83b01] /usr/local/xictools/xic/bin/xic(_ZN6GTKpkg17CheckForInterruptEv+0x185)[0x55e661806ec7] /usr/local/xictools/xic/bin/xic(_ZN5cMain12UpdateCursorEP10WindowDesc10CursorTypeb+0x9a7)[0x55e66177e9ff] /usr/local/xictools/xic/bin/xic(+0x4f5ca3)[0x55e661803ca3] /usr/local/xictools/xic/bin/xic(_ZN6GTKpkg10SetWorkingEb+0x6c)[0x55e661803d58] /usr/local/xictools/xic/bin/xic(_ZN10WindowDesc10RunPendingEv+0xb9)[0x55e6618720f7] /usr/local/xictools/xic/bin/xic(_ZN8cDisplay17RedisplayIdleProcEPv+0x14)[0x55e661872dda] /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x158)[0x7f09087cecb8] /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4e0a8)[0x7f09087cf0a8] /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0xb2)[0x7f09087cf3a2] /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main+0xb7)[0x7f0908e838e7] /usr/local/xictools/xic/bin/xic(_ZN9gtkinterf6GTKdev8MainLoopEb+0x19)[0x55e661b1dbb9] /usr/local/xictools/xic/bin/xic(_ZN6GTKpkg7AppLoopEv+0x43)[0x55e66180765f] /usr/local/xictools/xic/bin/xic(main+0x86b)[0x55e661454cf1] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb)[0x7f0907e4509b] /usr/local/xictools/xic/bin/xic(_start+0x2a)[0x55e66144fa3a]

wrcad commented 5 years ago

Thanks for the report, I'll see if I can figure out the problem.

This should not be needed, and is not correct anyway but should be harmless.

export XIC_LIBRARY_PATH=/usr/local/xictools

xic.sh should be copied into /usr/local/xictools/bin as "xic" by the installer.

/usr/local/xictools/xic/bin/xic.sh

You should have /usr/local/xictools/bin in your shell search path, then just type "xic" to start the program.

Note that /usr/local/xictools/xic is a link to /usr/local/xictools/xic.current, or at least it should be. Debian install scripts have not been checked much, though they should be the same as for Ubuntu.

Regards, Steve Whiteley

On Tue, Jan 15, 2019 at 05:34:21PM +0000, svenn71 wrote:

Manage to compile, create deb-packages and install xictools.

Then try to run:

export XIC_LIBRARY_PATH=/usr/local/xictools /usr/local/xictools/xic/bin/xic.sh

Xic integrated circuit design system release 4.3.6, build 011419-170950 Copyright (C) Whiteley Research Inc., Sunnyvale, CA 2019 All Rights Reserved

Found true color visual, 24 planes. Using Python (py27.so). Reading technology file /usr/local/xictools/xic/startup/xic_tech. Loading MRouter Current directory: /home/svennb/work/prg/git/xictools

Fatal internal error: segmentation violation. All logs retained in /tmp/xic.1105. mail: cannot send message: Process exited with a non-zero status File gdbout emailed to xic@wrcad.com. /usr/local/xictools/xic/bin/xic.sh: line 26: 1105 Killed /usr/local/xictools/xic/bin/xic $*

Xic-4.3.6 LinuxUnknown (xic-4-3-6) Tue Jan 15 11:48:33 2019 Pid = 1105 DeathAddr = 0x55e6614bde4d /usr/local/xictools/xic/bin/xic(_ZN8miscutil14dump_backtraceEPKcS1_S1_PKv+0x29d)[0x55e661b5907d] /usr/local/xictools/xic/bin/xic(_ZN5cMain4ExitE8ExitType+0x191)[0x55e66149e383] /usr/local/xictools/xic/bin/xic(+0x1bfccc)[0x55e6614cdccc] /usr/local/xictools/xic/bin/xic(+0x1c001a)[0x55e6614ce01a] /lib/x86_64-linux-gnu/libpthread.so.0(+0x12670)[0x7f0908670670] /usr/local/xictools/xic/bin/xic(_ZN11ContextDesc5clearEv+0x9)[0x55e6614bde4d] /usr/local/xictools/xic/bin/xic(_ZN8cPushPop12ClearContextEb+0x30)[0x55e6614bfe34] /usr/local/xictools/xic/bin/xic(_ZN5cMain15ClearReferencesEbb+0x248)[0x55e66149b818] /usr/local/xictools/xic/bin/xic(_ZN5cMain4LoadEP10WindowDescPKcPK11FIOreadPrmsS3_P4cCHD+0x738)[0x55e66149fc04] /usr/local/xictools/xic/bin/xic(_ZN5cMain8EditCellEPKcbPK11FIOreadPrmsS1_P4cCHD+0x482)[0x55e6614a105e] /usr/local/xictools/xic/bin/xic(+0x141b34)[0x55e66144fb34] /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x158)[0x7f09087cecb8] /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4e0a8)[0x7f09087cf0a8] /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c)[0x7f09087cf13c] /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main_iteration+0x21)[0x7f0908e83b01] /usr/local/xictools/xic/bin/xic(_ZN6GTKpkg17CheckForInterruptEv+0x185)[0x55e661806ec7] /usr/local/xictools/xic/bin/xic(_ZN5cMain12UpdateCursorEP10WindowDesc10CursorTypeb+0x9a7)[0x55e66177e9ff] /usr/local/xictools/xic/bin/xic(+0x4f5ca3)[0x55e661803ca3] /usr/local/xictools/xic/bin/xic(_ZN6GTKpkg10SetWorkingEb+0x6c)[0x55e661803d58] /usr/local/xictools/xic/bin/xic(_ZN10WindowDesc10RunPendingEv+0xb9)[0x55e6618720f7] /usr/local/xictools/xic/bin/xic(_ZN8cDisplay17RedisplayIdleProcEPv+0x14)[0x55e661872dda] /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x158)[0x7f09087cecb8] /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4e0a8)[0x7f09087cf0a8] /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0xb2)[0x7f09087cf3a2] /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main+0xb7)[0x7f0908e838e7] /usr/local/xictools/xic/bin/xic(_ZN9gtkinterf6GTKdev8MainLoopEb+0x19)[0x55e661b1dbb9] /usr/local/xictools/xic/bin/xic(_ZN6GTKpkg7AppLoopEv+0x43)[0x55e66180765f] /usr/local/xictools/xic/bin/xic(main+0x86b)[0x55e661454cf1] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb)[0x7f0907e4509b] /usr/local/xictools/xic/bin/xic(_start+0x2a)[0x55e66144fa3a]

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/wrcad/xictools/issues/4

svenn71 commented 5 years ago

I tried again with /usr/local/xictools/xic/bin/xic but got the same segmentation violation.

In order to have the packaging working for Debian, I had to modify the xt_base/info.sh script manually as the osname was decoded to LinuxUnknown. This modification was done after make config. I guess the parsing of /etc/os-release is not quite correct for Debian distributions. I see from the gdbout that LinuxUnknown is still persistent so maybe the info.sh is used at some stage before make all I attach my /etc/os-release

PRETTY_NAME="Debian GNU/Linux buster/sid" NAME="Debian GNU/Linux" ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"