Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core dump when using jamplus (instead of ftjam-2.5.2) #46

Open
aanno opened this issue May 23, 2021 · 3 comments
Open

core dump when using jamplus (instead of ftjam-2.5.2) #46

aanno opened this issue May 23, 2021 · 3 comments

Comments

@aanno
Copy link

aanno commented May 23, 2021

At https://github.com/aanno/argyllcms/tree/feature/aanno-jamplus-bug (Branch feature/aanno-jamplus-bug), I'm trying to compile a current version of argyllcms (2.2.0). As argyllcms uses jam for building, I decided to give jamplus a try. However, jampluscore dumps at:

$ ./scripts/jam   
+ SYSTEM=linux64
++ git rev-parse --show-toplevel
+ ROOT=/mnt/home/tpasch/scm/aanno/argyllcms
+ REALJAM=/mnt/home/tpasch/scm/aanno/argyllcms/jamplus/bin/linux64/jam
+ FTJAM=/mnt/home/tpasch/scm/aanno/argyllcms/ftjam-2.5.2/bin.unix/jam
+ exec /mnt/home/tpasch/scm/aanno/argyllcms/jamplus/bin/linux64/jam -f /mnt/home/tpasch/scm/aanno/argyllcms/Jambase -d3
We're on a 64 bit host 
Argyll Jamrules has been read 
DESTDIR = '.', PREFIX = '', REFSUBDIR = 'ref' 
Using Argyll TIFF library 
Using Argyll JPEG library 
Using Argyll PNG library 
Using system Z library 
Using Argyll SSL library 
HOME =  /mnt/home/tpasch 
PWD =  /mnt/home/tpasch/scm/aanno/argyllcms 
make    --      all
time    --      all: unbound
make    --       shell
time    --       shell: unbound
make    --        first
time    --        first: unbound
made    stable    first
made    stable   shell
make    --       files
time    --       files: unbound
make    --        <tiff!libtiff>tif_config.h
bind    --        <tiff!libtiff>tif_config.h: tiff/libtiff/tif_config.h
time    --        <tiff!libtiff>tif_config.h: Sun May 23 17:59:42 2021
make    --         <tiff>configure
bind    --         <tiff>configure: tiff/configure
time    --         <tiff>configure: Mon May  3 14:05:52 2021
made    stable     <tiff>configure
make    --         <tiff>libtiff
bind    --         <tiff>libtiff: tiff/libtiff
time    --         <tiff>libtiff: Sun May 23 18:00:46 2021
make    --          tiff
time    --          tiff: Sun May 23 18:00:46 2021
made    stable      tiff
made    stable     <tiff>libtiff
made*   stable    <tiff!libtiff>tif_config.h
make    --        <tiff!libtiff>tiffconf.h
bind    --        <tiff!libtiff>tiffconf.h: tiff/libtiff/tiffconf.h
time    --        <tiff!libtiff>tiffconf.h: Sun May 23 17:59:42 2021
made*   stable    <tiff!libtiff>tiffconf.h
make    --        <tiff>tiffconf.h
bind    --        <tiff>tiffconf.h: tiff/tiffconf.h
time    --        <tiff>tiffconf.h: Sun May 23 17:59:43 2021
made*   stable    <tiff>tiffconf.h
make    --        <tiff>tiffvers.h
bind    --        <tiff>tiffvers.h: tiff/tiffvers.h
time    --        <tiff>tiffvers.h: Sun May 23 17:59:43 2021
make    --         <tiff!libtiff>tiffvers.h
bind    --         <tiff!libtiff>tiffvers.h: tiff/libtiff/tiffvers.h
time    --         <tiff!libtiff>tiffvers.h: Mon May  3 14:05:57 2021
made    stable     <tiff!libtiff>tiffvers.h
made*   stable    <tiff>tiffvers.h
make    --        <tiff>tiffio.h
bind    --        <tiff>tiffio.h: tiff/tiffio.h
time    --        <tiff>tiffio.h: Sun May 23 17:59:43 2021
make    --         <tiff!libtiff>tiffio.h
bind    --         <tiff!libtiff>tiffio.h: tiff/libtiff/tiffio.h
time    --         <tiff!libtiff>tiffio.h: Mon May  3 14:05:56 2021
made    stable     <tiff!libtiff>tiffio.h
make    --         <tiff>tiffio.h
time    --         <tiff>tiffio.h: unbound
make    --          <tiff>tiff.h
bind    --          <tiff>tiff.h: tiff/tiff.h
time    --          <tiff>tiff.h: Sun May 23 17:59:43 2021
make    --           <tiff!libtiff>tiff.h
bind    --           <tiff!libtiff>tiff.h: tiff/libtiff/tiff.h
time    --           <tiff!libtiff>tiff.h: Mon May  3 14:05:56 2021
made    stable       <tiff!libtiff>tiff.h
make    --           <tiff>tiff.h
time    --           <tiff>tiff.h: unbound
made*   stable      <tiff>tiff.h
made*   stable    <tiff>tiffio.h
make    --        <jpeg>jconfig.h
bind    --        <jpeg>jconfig.h: jpeg/jconfig.h
time    --        <jpeg>jconfig.h: Sun May 23 17:59:46 2021
make    --         <jpeg>configure
bind    --         <jpeg>configure: jpeg/configure
time    --         <jpeg>configure: Mon May  3 14:06:13 2021
made    stable     <jpeg>configure
make    --         jpeg
time    --         jpeg: Sun May 23 18:00:50 2021
made    stable     jpeg
made*   stable    <jpeg>jconfig.h
made    stable   files
make    --       lib
time    --       lib: unbound
make    --        <numlib>libnum.a
bind    --        <numlib>libnum.a: numlib/libnum.a
time    --        <numlib>libnum.a: Sun May 23 17:59:49 2021
make    --         numlib
time    --         numlib: Sun May 23 18:00:56 2021
made    stable     numlib
make    --         <numlib>libnum.a(numsup.o)
bind    --         <numlib>libnum.a(numsup.o): numlib/libnum.a(numsup.o)
time    --         <numlib>libnum.a(numsup.o): Sun May 23 17:59:47 2021
make    --          <numlib>numsup.o
bind    --          <numlib>numsup.o: numlib/numsup.o
time    --          <numlib>numsup.o: parents
make    --           <numlib>numsup.c
bind    --           <numlib>numsup.c: numlib/numsup.c
time    --           <numlib>numsup.c: Mon May  3 14:05:07 2021
make    --            <numlib>numsup.c
time    --            <numlib>numsup.c: unbound
make    --             <h>aconfig.h
bind    --             <h>aconfig.h: h/aconfig.h
time    --             <h>aconfig.h: Mon May  3 14:05:38 2021
made    stable         <h>aconfig.h
make    --             <__unknown__>sa_config.h
bind    --             <__unknown__>sa_config.h: sa_config.h
time    --             <__unknown__>sa_config.h: missing
made    stable         <__unknown__>sa_config.h
make    --             <numlib>numsup.h
bind    --             <numlib>numsup.h: numlib/numsup.h
time    --             <numlib>numsup.h: Mon May  3 14:05:07 2021
made    stable         <numlib>numsup.h
made    stable       <numlib>numsup.c
made    stable      <numlib>numsup.o
made    stable     <numlib>libnum.a(numsup.o)
make    --         <numlib>libnum.a(dnsq.o)
bind    --         <numlib>libnum.a(dnsq.o): numlib/libnum.a(dnsq.o)
time    --         <numlib>libnum.a(dnsq.o): Sun May 23 17:59:48 2021
make    --          <numlib>dnsq.o
bind    --          <numlib>dnsq.o: numlib/dnsq.o
time    --          <numlib>dnsq.o: parents
make    --           <numlib>dnsq.c
bind    --           <numlib>dnsq.c: numlib/dnsq.c
time    --           <numlib>dnsq.c: Mon May  3 14:05:07 2021
make    --            <numlib>dnsq.c
time    --            <numlib>dnsq.c: unbound
make    --             <numlib>dnsq.h
bind    --             <numlib>dnsq.h: numlib/dnsq.h
time    --             <numlib>dnsq.h: Mon May  3 14:05:07 2021
made    stable         <numlib>dnsq.h
made    stable       <numlib>dnsq.c
made    stable      <numlib>dnsq.o
made    stable     <numlib>libnum.a(dnsq.o)
make    --         <numlib>libnum.a(powell.o)
bind    --         <numlib>libnum.a(powell.o): numlib/libnum.a(powell.o)
time    --         <numlib>libnum.a(powell.o): Sun May 23 17:59:48 2021
make    --          <numlib>powell.o
bind    --          <numlib>powell.o: numlib/powell.o
time    --          <numlib>powell.o: parents
make    --           <numlib>powell.c
bind    --           <numlib>powell.c: numlib/powell.c
time    --           <numlib>powell.c: Mon May  3 14:05:07 2021
make    --            <numlib>powell.c
time    --            <numlib>powell.c: unbound
make    --             <numlib>powell.h
bind    --             <numlib>powell.h: numlib/powell.h
time    --             <numlib>powell.h: Mon May  3 14:05:07 2021
made    stable         <numlib>powell.h
made    stable       <numlib>powell.c
made    stable      <numlib>powell.o
made    stable     <numlib>libnum.a(powell.o)
make    --         <numlib>libnum.a(dhsx.o)
bind    --         <numlib>libnum.a(dhsx.o): numlib/libnum.a(dhsx.o)
time    --         <numlib>libnum.a(dhsx.o): Sun May 23 17:59:48 2021
make    --          <numlib>dhsx.o
bind    --          <numlib>dhsx.o: numlib/dhsx.o
time    --          <numlib>dhsx.o: parents
make    --           <numlib>dhsx.c
bind    --           <numlib>dhsx.c: numlib/dhsx.c
time    --           <numlib>dhsx.c: Mon May  3 14:05:07 2021
make    --            <numlib>dhsx.c
time    --            <numlib>dhsx.c: unbound
made    stable       <numlib>dhsx.c
made    stable      <numlib>dhsx.o
made    stable     <numlib>libnum.a(dhsx.o)
make    --         <numlib>libnum.a(varmet.o)
bind    --         <numlib>libnum.a(varmet.o): numlib/libnum.a(varmet.o)
time    --         <numlib>libnum.a(varmet.o): Sun May 23 17:59:48 2021
make    --          <numlib>varmet.o
bind    --          <numlib>varmet.o: numlib/varmet.o
time    --          <numlib>varmet.o: parents
make    --           <numlib>varmet.c
bind    --           <numlib>varmet.c: numlib/varmet.c
time    --           <numlib>varmet.c: Mon May  3 14:05:07 2021
make    --            <numlib>varmet.c
time    --            <numlib>varmet.c: unbound
make    --             <numlib>varmet.h
bind    --             <numlib>varmet.h: numlib/varmet.h
time    --             <numlib>varmet.h: Mon May  3 14:05:07 2021
made    stable         <numlib>varmet.h
make    --             <numlib>aconfig.h
Speicherzugriffsfehler (Speicherabzug geschrieben)

But ftjam-2.5.2 works on the same sources!

@aanno
Copy link
Author

aanno commented May 26, 2021

For everybody that steps upon this: jamplus seems to be dead since 2015! I switched to b2 of boost.org (fedora package: boost-build) without problems (only Jambase has needed some more escaped characters).

@jamplus
Copy link
Owner

jamplus commented May 28, 2021

Hmmm... I don't think it is dead. It's true that the last commit was nearly a month and a half ago, but...

Anyway, I did the following on Windows. I'll have to fire up a Linux VM.

  • Launched an x64 Native Tools for VS 2019 Command Prompt.
  • Cloned a fresh JamPlus. Ran bootstrap-win64-vc.bat.
  • Cloned argyllcms.
  • Checked out the branch aanno-jamplus-bug.
  • Added the environment variable: set MSVCDIR=c:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1428~1.293\bin\Hostx86\x86 (which doesn't seem to matter other than existing).
  • Patched Jambase with the following line at the top: PATHDELIM_OLDSTYLE = 1 ;
  • Patched spectro/dispwin.c, because it fails when building:
 #if !defined(NTDDI_LONGHORN) || NTDDI_VERSION < NTDDI_LONGHORN
 
+/*
 typedef enum {
 	WCS_PROFILE_MANAGEMENT_SCOPE_SYSTEM_WIDE,
 	WCS_PROFILE_MANAGEMENT_SCOPE_CURRENT_USER
 } WCS_PROFILE_MANAGEMENT_SCOPE;
+*/
 
 BOOL (WINAPI* pWcsAssociateColorProfileWithDevice)(WCS_PROFILE_MANAGEMENT_SCOPE,PCWSTR,PCWSTR) = NULL;
  • Ran makeall.bat.
  • Success!

I don't crash. :(

I'll try it under a Linux VM soon.

@diegzumillo
Copy link

Their main website is offline. It does seem dead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants