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

Segfault on running sample roundtrip with ASAN #65

Closed
ya1gaurav opened this issue Nov 25, 2015 · 2 comments
Closed

Segfault on running sample roundtrip with ASAN #65

ya1gaurav opened this issue Nov 25, 2015 · 2 comments

Comments

@ya1gaurav
Copy link
Contributor

Compile:
g++ -fno-omit-frame-pointer -fsanitize=address -g3 roundtrip.c -o roundtrip -I../../include/ -L../../src/.libs/ -llcms2
Run:
./roundtrip ../../testbed/test1.icc

ASAN:SIGSEGV

==10718== ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x7f634eeb302c sp 0x7fff570ac170 bp 0x7fff570ac210 T0)
AddressSanitizer can not provide additional info.
==10718== WARNING: Trying to symbolize code, but external symbolizer is not initialized!
#0 0x7f634eeb302b (/home4/Little-CMS-master/src/.libs/liblcms2.so.2+0x7002b)
src/cmsxform.c:189
#1 0x400f95 (/home4/Little-CMS-master/utils/samples/roundtrip+0x400f95)
utils/samples/roundtrip.c:67
#2 0x7f634e799ec4 (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)
#3 0x400a48 (/home4/Little-CMS-master/utils/samples/roundtrip+0x400a48)
==10718== ABORTING

Analysis:
It fails with test1.icc,test2.icc & bad.icc. Pass with test3.icc, test4.icc & test5.icc
It faults in dereference:
189 p -> xform(p, InputBuffer, OutputBuffer, Size, 1, &stride);

@mm2
Copy link
Owner

mm2 commented Nov 25, 2015

Fixed, thanks for pointing it out.

Regards

Marti Maria

The LittleCMS project

http://www.littlecms.com

From: Gaurav [mailto:notifications@github.com]
Sent: miércoles, 25 de noviembre de 2015 3:22
To: mm2/Little-CMS Little-CMS@noreply.github.com
Subject: [Little-CMS] Segfault on running sample roundtrip with ASAN (#65)

Compile:
g++ -fno-omit-frame-pointer -fsanitize=address -g3 roundtrip.c -o roundtrip -I../../include/ -L../../src/.libs/ -llcms2
Run:
./roundtrip ../../testbed/test1.icc

ASAN:SIGSEGV

==10718== ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x7f634eeb302c sp 0x7fff570ac170 bp 0x7fff570ac210 T0)
AddressSanitizer can not provide additional info.
==10718== WARNING: Trying to symbolize code, but external symbolizer is not initialized!
#0 0x7f634eeb302b (/home4/Little-CMS-master/src/.libs/liblcms2.so.2+0x7002b)
src/cmsxform.c:189
#1 #1 0x400f95 (/home4/Little-CMS-master/utils/samples/roundtrip+0x400f95)
utils/samples/roundtrip.c:67
#2 #2 0x7f634e799ec4 (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)
#3 #3 0x400a48 (/home4/Little-CMS-master/utils/samples/roundtrip+0x400a48)
==10718== ABORTING

Analysis:
It fails with test1.icc,test2.icc & bad.icc. Pass with test3.icc, test4.icc & test5.icc
It faults in dereference:
189 p -> xform(p, InputBuffer, OutputBuffer, Size, 1, &stride);


Reply to this email directly or view it on GitHub #65 . https://github.com/notifications/beacon/AAMLwh2pQtEs72uvvJfTFJOpLaUdCkPzks5pJRLOgaJpZM4Go5Xp.gif

@ya1gaurav
Copy link
Contributor Author

Also, I noticed other samples are written with old code base, they need to be modified for correct working.

@mm2 mm2 closed this as completed Jul 25, 2016
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

2 participants