[argyllcms] dispread crash in Ubuntu 16.04 AMD64 - free(): invalid next size (fast)

  • From: Uwe Röger <uwer@xxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Sat, 20 Aug 2016 17:01:00 +0200

Hi and thank you Graeme for this great piece of software.

I have run into a problem when trying to calibrate the screen of my Thinkpad SL510 in Ubuntu 16.04.1 Xenial
The current package version is 1.8.3+repack-2
The instrument I use is a Colormunki Smile
Calibrating used to work in Ubuntu 14.04 Trusty

This error has persisted since Ubuntu 16.04 first came out, a different Thinkpad model (X220) yields the same error.

Below is a dump from trying to calibrate, please excuse the extraneous single quotes.
Additionally, at the bottom, there's some dmesg output.

Any ideas on how to proceed from here?
Best regards.

'Argyll 'V1.8.3' Build 'Linux 64 bit' System 'Linux #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 4.4.0-34-generic x86_64''
'Setting up the instrument'
'Display type is 'e''
'Target white = 6500.000000 degrees kelvin Daylight spectrum'
'Target white brightness = native brightness'
'Target black brightness = native brightness'
'Target advertised gamma = 2.400000'
'Commencing display calibration'
'Black = XYZ 0.9387 0.9612 1.8737'
'Red   = XYZ 78.457 44.749  5.179'
'Green = XYZ 95.354 161.740 26.827'
'Blue  = XYZ 42.093 14.130 239.537'
'White = XYZ 213.863 218.565 267.962'
'Automatic black point hue correction level = 0.00'
'Initial native brightness target = 218.565242 cd/m^2'
'Had to scale brightness from 218.565242 to 214.003545 to fit within gamut,'
'corresponding to aprox. RGB 0.980194 1.000000 0.897585'
'Target white value is XYZ 203.338475 214.003545 232.723199 [xy 0.312797 0.329203]'
'Adjusted target black XYZ 0.9387 0.9612 1.8737, Lab 4.057 0.488 -5.544'
'Target black after min adjust: XYZ 0.9387 0.9612 1.8737, Lab 4.057 0.488 -5.544'
'Gamma curve input offset = 0.000000, output offset = 0.004491, power = 2.428117'
'Total Iteration 2, Final Samples = 32 Final Repeat threshold = 0.900000'
'Creating initial calibration curves...'
'Doing iteration 1/2 with 16 sample points and repeat threshold of 1.272792 DE'
'Brightness error = -1.515198 cd/m^2 (is 212.488346, should be 214.003545)'
'White point error = 1.053999 deltaE'
'Maximum neutral error (@ 0.699752) = 1.244319 deltaE'
'Average neutral error = 0.581930 deltaE'
'Failed to meet target 1.272792 delta E, got worst case 0.240272'
'Number of measurements taken = 53'
'Computing update to calibration curves...'
'Doing iteration 2/2 with 32 sample points and repeat threshold of 0.900000 DE'
'Brightness error = -2.125452 cd/m^2 (is 211.878092, should be 214.003545)'
'White point error = 0.851203 deltaE'
'Maximum neutral error (@ 1.000000) = 0.931775 deltaE'
'Average neutral error = 0.452852 deltaE'
'Failed to meet target 0.900000 delta E, got worst case 0.931775'
'Number of measurements taken = 156'
'Computing update to calibration curves...'
'Written calibration file 'GCM - Lenovo - 28477MG - unknown (2016-08-20) [11-05-51].cal''
'Number of patches = 64'
'Argyll 'V1.8.3' Build 'Linux 64 bit' System 'Linux #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 4.4.0-34-generic x86_64''
'Setting up the instrument'
'*** Error in `/usr/bin/dispread': free(): invalid next size (fast): 0x0000000002104630 ***'
'======= Backtrace: ========='
'/lib/x86_64-linux-gnu/libc.so.6(+0x77725)[0x7f05b6774725]'
'/lib/x86_64-linux-gnu/libc.so.6(+0x7ff4a)[0x7f05b677cf4a]'
'/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f05b6780abc]'
'/usr/bin/dispread[0x5091cc]'
'/usr/bin/dispread[0x420e61]'
'/usr/bin/dispread[0x42216b]'
'/usr/bin/dispread[0x438abc]'
'/usr/bin/dispread[0x40f34b]'
'/usr/bin/dispread[0x408d73]'
'/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f05b671d830]'
'/usr/bin/dispread[0x4093b9]'
'======= Memory map: ========'
---Comment: Memory map removed here, due to length.

(gcm-calibrate:5157): Gcm-WARNING **: failed to calibrate: command failed to run successfully: 6_64-linux-gnu/ld-2.23.so
7f05b8a83000-7f05b8a84000 rw-p 00026000 08:01 4985262 /lib/x86_64-linux-gnu/ld-2.23.so
7f05b8a84000-7f05b8a85000 rw-p 00000000 00:00 0
7fff8cf48000-7fff8cf69000 rw-p 00000000 00:00 0 [stack]
7fff8cfbf000-7fff8cfc1000 r--p 00000000 00:00 0 [vvar]
7fff8cfc1000-7fff8cfc3000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

---Comment: Snip from dmesg when dispread crashed
dispread[32048]: segfault at 0 ip 0000000000406e6d sp 00007ffd3898b2a0 error 4 in dispread[400000+175000]

---Comment: Snip from dmesg when Colormunki Smile device is connected
[193562.344090] usb 6-2: new low-speed USB device number 4 using uhci_hcd
[193562.520107] usb 6-2: New USB device found, idVendor=0765, idProduct=6003
[193562.520115] usb 6-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[193562.520120] usb 6-2: Product: colormunki display lite
[193562.520124] usb 6-2: Manufacturer: x-rite

Other related posts: