Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Differences between invoking Singular on OSX and Windows
PostPosted: Thu May 30, 2013 6:06 pm 
Hi all,

I need to run Singular on both OSX and Windows. The following happens when trying to invoke Singular on both platforms:

Code:
OSX
---------------
wifi:singular mars$ ./Singular -q -c 'LIB "solve.lib";2+2;quit;'
4
wifi:singular mars$


Code:
Windows
---------------
c:\cygwin\bin>bash Singular -q -c 'LIB "solve.lib";2+2;quit;'
// ** Can not open "solve.lib";2+2;quit;
Singular : signal 11 (v: 3160):
current line:>>;return();<<
Segment fault/Bus error occurred (r:1369929484)
please inform the authors
trying to restart...
// ** Can not open "solve.lib";2+2;quit;
     15 [main] Singular 668 exception::handle: Exception: STATUS_ACCESS_VIOLATION
  11027 [main] Singular 668 open_stackdumpfile: Dumping stack trace to Singular.exe.stackdump
  57650 [main] Singular 668 exception::handle: Exception: STATUS_ACCESS_VIOLATION
  64231 [main] Singular 668 exception::handle: Error while dumping state (probably corrupted stack)


The command runs correctly in OSX but in Windows there appears to be some problem.
If I change the Windows command to just load the LIB, same thing happens:

Code:
Windows
---------------
c:\cygwin\bin>bash Singular -q -c 'LIB "solve.lib"'
// ** Can not open "solve.lib"
Singular : signal 11 (v: 3160):
current line:>>;return();<<
Segment fault/Bus error occurred (r:1369929633)
please inform the authors
trying to restart...
// ** Can not open "solve.lib"
      6 [main] Singular 3148 exception::handle: Exception: STATUS_ACCESS_VIOLATION
   4600 [main] Singular 3148 open_stackdumpfile: Dumping stack trace to Singular.exe.stackdump
  43597 [main] Singular 3148 exception::handle: Exception: STATUS_ACCESS_VIOLATION
  48595 [main] Singular 3148 exception::handle: Error while dumping state (probably corrupted stack)


Contents of Singular.exe.stackdump is:

Quote:
Exception: STATUS_ACCESS_VIOLATION at eip=0049FF49
eax=FFAC4018 ebx=00000000 ecx=00000000 edx=FFAC4130 esi=00000000 edi=FFAC4130
ebp=00000005 esp=00289BB0 program=C:\cygwin\lib\Singular\Singular.exe, pid 3148, thread main
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame Function Args
43597 [main] Singular 3148 exception::handle: Exception: STATUS_ACCESS_VIOLATION
48595 [main] Singular 3148 exception::handle: Error while dumping state (probably corrupted stack)


What can I do?

Running Singular version 3-1-6 on both platforms, OSX 10.8.3 and Windows 8 Pro. On windows I'm running Single File Installer -> Singular-3-1-6-Small.exe.


Report this post
Top
  
Reply with quote  
 Post subject: Re: Differences between invoking Singular on OSX and Windows
PostPosted: Thu May 30, 2013 6:09 pm 
Forgot to add that, if I change the Windows command and remove the LIB, it works as expected:

Quote:
c:\cygwin\bin>bash Singular -q -c '2+2;quit;'
4

c:\cygwin\bin>


So, it seems to be a problem with loading libraries and cygwin...


Report this post
Top
  
Reply with quote  
 Post subject: Re: Differences between invoking Singular on OSX and Windows
PostPosted: Fri Jun 21, 2013 4:59 pm 

Joined: Tue Jun 23, 2009 10:33 pm
Posts: 51
Location: Kaiserslautern
what about starting Singular and typing the same code?

Could you please try to run Singular only with "-v" argument and check that libs are in the search path.

O.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 11:06 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group