Re: anyone with a Mac running 10.7 or 10.8?

2017-01-01 Thread Dirk Hohndel

> On Jan 1, 2017, at 12:44 PM, Robert Helling  wrote:
> 
> Hi Dirk,
> 
>> On 01 Jan 2017, at 21:14, Dirk Hohndel > > wrote:
>> 
>> Robert, I know it's getting late, but could you possibly try
>> 
>> http://subsurface-divelog.org/downloads/daily/Subsurface-4.5.96-59-g7312cfc2d047-10.7.dmg
>>  
>> 
>> 
>> on that old Mac Mini for me?
> 
> well done. This seems to work (of course it’s a bit slow but that holds for 
> everything on that computer).

Excellent. This will run slower on more modern systems, so I think I'll
just create two different binaries again - one that requires 10.7 and doesn't
require AVX, and one that runs on 10.9 and newer and utilizes AVX.

/D

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: anyone with a Mac running 10.7 or 10.8?

2017-01-01 Thread Robert Helling
Hi Dirk,

> On 01 Jan 2017, at 21:14, Dirk Hohndel  wrote:
> 
> Robert, I know it's getting late, but could you possibly try
> 
> http://subsurface-divelog.org/downloads/daily/Subsurface-4.5.96-59-g7312cfc2d047-10.7.dmg
>  
> 
> 
> on that old Mac Mini for me?

well done. This seems to work (of course it’s a bit slow but that holds for 
everything on that computer).

Best
Robert


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: anyone with a Mac running 10.7 or 10.8?

2017-01-01 Thread Dirk Hohndel

> On Jan 1, 2017, at 12:02 PM, Thiago Macieira  wrote:
> 
> Em domingo, 1 de janeiro de 2017, às 09:48:01 BRST, Dirk Hohndel escreveu:
>>> On Jan 1, 2017, at 6:58 AM, Thiago Macieira  wrote:
>>> 
>>> It is the old AVX bug. VXORPS is an AVX instruction (that V is the tell)
>> 
>> And this library comes from OpenSSL which we get from HomeBrew. I can
>> already see that I will hate where all this will take me, but I appreciate
>> that thanks to Robert's access (if somewhat limited) to such an old machine
>> we got reminded of the issue...
>> 
>> Doing some more research, it seems that not a lot of Macs should fall into
>> the narrow overlap of "able to run 10.7 and don't have AVX". But I'll see
>> what I can do.
> 
> I think HomeBrew by default builds targetting the local machine (-
> march=native), which makes the binaries unsuitable for distribution. There's 
> a 
> switch somewhere to make it build generic binaries.

I identified the four libraries that had AVX instructions included and manually
rebuilt them with that disabled (which took a few attempt for openssl).

Robert, I know it's getting late, but could you possibly try

http://subsurface-divelog.org/downloads/daily/Subsurface-4.5.96-59-g7312cfc2d047-10.7.dmg

on that old Mac Mini for me?

Thanks

/D
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: anyone with a Mac running 10.7 or 10.8?

2017-01-01 Thread Thiago Macieira
Em domingo, 1 de janeiro de 2017, às 09:48:01 BRST, Dirk Hohndel escreveu:
> > On Jan 1, 2017, at 6:58 AM, Thiago Macieira  wrote:
> > 
> > It is the old AVX bug. VXORPS is an AVX instruction (that V is the tell)
> 
> And this library comes from OpenSSL which we get from HomeBrew. I can
> already see that I will hate where all this will take me, but I appreciate
> that thanks to Robert's access (if somewhat limited) to such an old machine
> we got reminded of the issue...
> 
> Doing some more research, it seems that not a lot of Macs should fall into
> the narrow overlap of "able to run 10.7 and don't have AVX". But I'll see
> what I can do.

I think HomeBrew by default builds targetting the local machine (-
march=native), which makes the binaries unsuitable for distribution. There's a 
switch somewhere to make it build generic binaries.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: anyone with a Mac running 10.7 or 10.8?

2017-01-01 Thread Dirk Hohndel

> On Jan 1, 2017, at 6:58 AM, Thiago Macieira  wrote:
> 
> It is the old AVX bug. VXORPS is an AVX instruction (that V is the tell)

And this library comes from OpenSSL which we get from HomeBrew. I can already
see that I will hate where all this will take me, but I appreciate that thanks 
to Robert's
access (if somewhat limited) to such an old machine we got reminded of the 
issue...

Doing some more research, it seems that not a lot of Macs should fall into the 
narrow
overlap of "able to run 10.7 and don't have AVX". But I'll see what I can do.

/D

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: anyone with a Mac running 10.7 or 10.8?

2017-01-01 Thread Dirk Hohndel

> On Jan 1, 2017, at 8:00 AM, Robert Helling  wrote:
> 
> Thiago,
> 
>> On 01 Jan 2017, at 15:58, Thiago Macieira > > wrote:
>> 
>> It is the old AVX bug. VXORPS is an AVX instruction (that V is the tell)
>> 
> 
> ok. So what shall we do? Build lib crypto with -mno-avx?

IIRC, 4.5.6 should fail on that hardware as well. Would you mind testing that, 
first?

Thanks

/D

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: anyone with a Mac running 10.7 or 10.8?

2017-01-01 Thread Robert Helling
Thiago,

> On 01 Jan 2017, at 15:58, Thiago Macieira  wrote:
> 
> It is the old AVX bug. VXORPS is an AVX instruction (that V is the tell)
> 

ok. So what shall we do? Build lib crypto with -mno-avx?

Best
Robert


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: anyone with a Mac running 10.7 or 10.8?

2017-01-01 Thread Thiago Macieira
  It is the old AVX bug. VXORPS is an AVX instruction (that V is the tell)Sent from my BlackBerry — the most secure mobile deviceFrom: hell...@atdotde.deSent: 1 January 2017 12:54 p.m.To: thi...@macieira.orgCc: subsurface@subsurface-divelog.orgSubject: Re: anyone with a Mac running 10.7 or 10.8?  On 01 Jan 2017, at 14:07, Robert Helling <hell...@atdotde.de> wrote:that was quick: Xcode requires at least 10.11.5 … luckily, knowing the URL one can download old developer disks. So, here we go:* thread #1: tid = 0x1f03, 0x0001043eb574 libcrypto.1.0.0.dylib`ENGINE_pkey_asn1_find_str + 12, stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)    frame #0: 0x0001043eb574 libcrypto.1.0.0.dylib`ENGINE_pkey_asn1_find_str + 12libcrypto.1.0.0.dylib`ENGINE_pkey_asn1_find_str + 12:-> 0x1043eb574:  vxorps %xmm0, %xmm0, %xmm0   0x1043eb578:  vmovaps%xmm0, -48(%rbp)   0x1043eb57d:  movq   %rsi, -32(%rbp)   0x1043eb581:  movl   %edx, -24(%rbp)As I don’t speak i386 assembly, I have no idea what that means.BestRobert___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: anyone with a Mac running 10.7 or 10.8?

2017-01-01 Thread Robert Helling

> On 01 Jan 2017, at 14:07, Robert Helling  wrote:
> 
> that was quick: Xcode requires at least 10.11.5
> 

… luckily, knowing the URL one can download old developer disks. So, here we go:

* thread #1: tid = 0x1f03, 0x0001043eb574 
libcrypto.1.0.0.dylib`ENGINE_pkey_asn1_find_str + 12, stop reason = 
EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
frame #0: 0x0001043eb574 
libcrypto.1.0.0.dylib`ENGINE_pkey_asn1_find_str + 12
libcrypto.1.0.0.dylib`ENGINE_pkey_asn1_find_str + 12:
-> 0x1043eb574:  vxorps %xmm0, %xmm0, %xmm0
   0x1043eb578:  vmovaps%xmm0, -48(%rbp)
   0x1043eb57d:  movq   %rsi, -32(%rbp)
   0x1043eb581:  movl   %edx, -24(%rbp)

As I don’t speak i386 assembly, I have no idea what that means.

Best
Robert


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: anyone with a Mac running 10.7 or 10.8?

2017-01-01 Thread Thiago Macieira
 Apologies about top-postingDoesn't OSX generate a crash report? It should be possible to debug on your regular Mac. If not, we can probably guess what instruction it was: do you know what processor this old mini of your has? Sent from my BlackBerry — the most secure mobile deviceFrom: hell...@atdotde.deSent: 1 January 2017 11:14 a.m.To: thi...@macieira.orgCc: subsurface@subsurface-divelog.orgSubject: Re: anyone with a Mac running 10.7 or 10.8?  On 01 Jan 2017, at 14:07, Robert Helling <hell...@atdotde.de> wrote:that was quick: Xcode requires at least 10.11.5 … and home-brew also requires Xcode command line tools…Any idea how I could install a debugger?BestRobert___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: anyone with a Mac running 10.7 or 10.8?

2017-01-01 Thread Robert Helling

> On 01 Jan 2017, at 14:07, Robert Helling  wrote:
> 
> that was quick: Xcode requires at least 10.11.5


… and home-brew also requires Xcode command line tools…

Any idea how I could install a debugger?

Best
Robert


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: anyone with a Mac running 10.7 or 10.8?

2017-01-01 Thread Robert Helling
Hi,

> On 01 Jan 2017, at 14:03, Robert Helling  wrote:
> 
> I can go and try to install Xcode but this might take forever.

that was quick: Xcode requires at least 10.11.5

Bummer
Robert


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: anyone with a Mac running 10.7 or 10.8?

2017-01-01 Thread Robert Helling
Hi,

> On 01 Jan 2017, at 13:55, Thiago Macieira  wrote:
> 
> Any chance you can get the backtrace or disassembly of the crashing
> instruction? This rings a bell of a problem we had way in the past when some
> code had AVX instructions, which would cause it to run on hardware pre-2011.

this machine is very very slow and my access to it is through VNC only (with 
the alternative turning on the projector and holding a white piece of paper in 
the air).

I can go and try to install Xcode but this might take forever.

Best
Robert


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: anyone with a Mac running 10.7 or 10.8?

2017-01-01 Thread Thiago Macieira
Em domingo, 1 de janeiro de 2017, às 12:52:50 BRST, Robert Helling escreveu:
> From the command line it's the same, it crashes with "Illegal instruction:4"

Any chance you can get the backtrace or disassembly of the crashing 
instruction? This rings a bell of a problem we had way in the past when some 
code had AVX instructions, which would cause it to run on hardware pre-2011.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: anyone with a Mac running 10.7 or 10.8?

2017-01-01 Thread Thiago Macieira
Em sábado, 31 de dezembro de 2016, às 20:29:10 BRST, Dirk Hohndel escreveu:
> From looking through the Subsurface cloud server logs I can see that we
> still have a fair number of users on MacOS 10.7 and 10.8. I went through
> the effort to create a DMG that should run even on 10.7. I'd love it if
> someone could verify that this actually works.
> 
> http://subsurface-divelog.org/downloads/daily/Subsurface-4.5.96-36-ge94d4966
> 8ef9-10.7.dmg
> 
> The regular DMG should run on 10.9 and newer (it would also be useful to
> verify that this does, indeed, run on 10.9 and doesn't run on 10.7 or
> 10.8).

I have a 10.9 VM in the office, so I can test it in a week's time.

Unfortunately, it didn't occur to me to create VMs from the recovery images 
until after I had upgraded from 10.8 to 10.9, so I can't test 10.8.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: anyone with a Mac running 10.7 or 10.8?

2017-01-01 Thread Robert Helling

Am 01.01.2017 um 05:29 schrieb Dirk Hohndel:

> 
> From looking through the Subsurface cloud server logs I can see that we still 
> have a
> fair number of users on MacOS 10.7 and 10.8. I went through the effort to 
> create a
> DMG that should run even on 10.7. I'd love it if someone could verify that 
> this actually
> works.
> 
> http://subsurface-divelog.org/downloads/daily/Subsurface-4.5.96-36-ge94d49668ef9-10.7.dmg

Dirk,

I tried this on my old old MacMini (that I use as TV replacement). The hardware 
is so old that it is stuck on 10.7.

It opens up the main window but then shows the spinning beach ball and then 
unfortunately crashes.

On the bottom I add the crash report (seems somewhere in lib crypto is a 
problem).

From the command line it's the same, it crashes with "Illegal instruction:4"

Best
Robert

Process: Subsurface [714]
Path:/Volumes/VOLUME/Subsurface.app/Contents/MacOS/Subsurface
Identifier:  org.subsurface-divelog
Version: 4.5.96-36-ge94d49668ef9 (4.5.96-36-ge94d49668ef9)
Code Type:   X86-64 (Native)
Parent Process:  launchd [125]

Date/Time:   2017-01-01 12:39:57.975 +0100
OS Version:  Mac OS X 10.7.5 (11G63b)
Report Version:  9

Interval Since Last Report:  97148382 sec
Crashes Since Last Report:   31
Per-App Interval Since Last Report:  30 sec
Per-App Crashes Since Last Report:   1
Anonymous UUID:  6C728383-FCF8-4A7A-831B-FD715081D5FA

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0001, 0x

Application Specific Information:
objc[714]: garbage collection is OFF

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libcrypto.1.0.0.dylib   0x00010d43e574 
ENGINE_pkey_asn1_find_str + 12
1   libcrypto.1.0.0.dylib   0x00010d46bd60 
EVP_PKEY_asn1_find_str + 63
2   libssl.1.0.0.dylib  0x00010d35fa07 0x10d333000 + 182791
3   libssl.1.0.0.dylib  0x00010d35f97f ssl_load_ciphers + 
471
4   libssl.1.0.0.dylib  0x00010d3672e5 SSL_library_init + 
529
5   org.qt-project.QtNetwork0x00010c6ebc17 0x10c621000 + 830487
6   org.qt-project.QtNetwork0x00010c6e40c8 0x10c621000 + 798920
7   org.qt-project.QtNetwork0x00010c6e2f29 0x10c621000 + 794409
8   org.qt-project.QtNetwork0x00010c6cd588 
QSslCertificate::QSslCertificate(QByteArray const&, QSsl::EncodingFormat) + 104
9   org.qt-project.QtNetwork0x00010c6d17e0 0x10c621000 + 722912
10  org.qt-project.QtNetwork0x00010c6cfbd3 
QSslConfiguration::QSslConfiguration() + 35
11  org.qt-project.QtNetwork0x00010c66c0e0 0x10c621000 + 307424
12  org.qt-project.QtNetwork0x00010c669ff7 0x10c621000 + 298999
13  org.qt-project.QtNetwork0x00010c64f0f8 
QNetworkAccessManager::createRequest(QNetworkAccessManager::Operation, 
QNetworkRequest const&, QIODevice*) + 1800
14  org.qt-project.QtNetwork0x00010c64d6ce 
QNetworkAccessManager::get(QNetworkRequest const&) + 30
15  org.subsurface-divelog  0x000109006a43 
UpdateManager::checkForUpdates(bool) + 531
16  org.subsurface-divelog  0x0001090067ef 
UpdateManager::UpdateManager(QObject*) + 559
17  org.subsurface-divelog  0x0001090065ad 
UpdateManager::UpdateManager(QObject*) + 29
18  org.subsurface-divelog  0x00010906a5b2 
MainWindow::MainWindow() + 10354
19  org.subsurface-divelog  0x000109067d35 
MainWindow::MainWindow() + 21
20  org.subsurface-divelog  0x00010900627a init_ui() + 58
21  org.subsurface-divelog  0x000109004957 main + 1415
22  org.subsurface-divelog  0x0001090043c4 start + 52

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib  0x7fff8af647e6 kevent + 10
1   libdispatch.dylib   0x7fff930e2786 _dispatch_mgr_invoke 
+ 923
2   libdispatch.dylib   0x7fff930e1316 _dispatch_mgr_thread 
+ 54

Thread 2:
0   libsystem_kernel.dylib  0x7fff8af64192 __workq_kernreturn + 
10
1   libsystem_c.dylib   0x7fff89d51594 _pthread_wqthread + 
758
2   libsystem_c.dylib   0x7fff89d52b85 start_wqthread + 13

Thread 3:
0   libsystem_kernel.dylib  0x7fff8af64192 __workq_kernreturn + 
10
1   libsystem_c.dylib   0x7fff89d51594 _pthread_wqthread + 
758
2   libsystem_c.dylib   0x7fff89d52b85 start_wqthread + 13

Thread 4:
0   libsystem_kernel.dylib  0x7fff8af64192 __workq_kernreturn + 
10
1   libsystem_c.dylib   0x7fff89d51594 _pthread_wqthread + 
758
2   libsystem_c.dylib   0x7fff89d52b85 start_wqthread + 13

Thread 5:: Qt 

anyone with a Mac running 10.7 or 10.8?

2016-12-31 Thread Dirk Hohndel

From looking through the Subsurface cloud server logs I can see that we still 
have a 
fair number of users on MacOS 10.7 and 10.8. I went through the effort to 
create a 
DMG that should run even on 10.7. I'd love it if someone could verify that this 
actually 
works.

http://subsurface-divelog.org/downloads/daily/Subsurface-4.5.96-36-ge94d49668ef9-10.7.dmg

The regular DMG should run on 10.9 and newer (it would also be useful to verify 
that
this does, indeed, run on 10.9 and doesn't run on 10.7 or 10.8).

Thanks

/D
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface