Bug #16765
closedCrash when use sass image-url in email layout
Description
I have the following layout I use for my emails:
mailer.html.slim
doctype html
html
head
meta(charset='utf-8')
meta(http-equiv="Content-Type" content="text/html")
css:
Files
Updated by chellgouda (Mitchell Gould) about 5 years ago
- File ruby_2020-04-06-170518_Mitchells-MacBook-Pro-3.crash ruby_2020-04-06-170518_Mitchells-MacBook-Pro-3.crash added
- ruby -v set to ruby 2.5.7p206 (2019-10-01 revision 67816) [x86_64-darwin18]
doctype html
html
head
meta(charset='utf-8')
meta(http-equiv="Content-Type" content="text/html")
scss:
.footer-box:after {
content: '';
width: 100%;
height: 100%;
opacity: 0.1;
position: absolute;
top: 0;
left: 0;
background: image-url( 'logo/gould_logo_black.png' ) no-repeat bottom 15% right -15%;
background-size: 30%;
}
This causes a crash
Using slim 4.0.1
Using slim-rails 3.2.0
Using sassc 2.2.1
Rails 5.2.4.2
Updated by jeremyevans0 (Jeremy Evans) about 5 years ago
- Status changed from Open to Feedback
Unfortunately, the crash report does not provide the relevant debugging information:
Thread 22 Crashed:: thread_pool.rb*
0 libsystem_kernel.dylib 0x00007fff6cd2c33a __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff6cde8e60 pthread_kill + 430
2 libsystem_c.dylib 0x00007fff6ccb3808 abort + 120
3 libruby.2.5.dylib 0x0000000106564939 die + 9
4 libruby.2.5.dylib 0x0000000106564b74 rb_bug_context + 564
5 libruby.2.5.dylib 0x0000000106659cf1 sigsegv + 81
6 libsystem_platform.dylib 0x00007fff6cddd5fd _sigtramp + 29
It does appear to be a null pointer dereference:
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
While there isn't much to go by, it seems likely to be a bug in sassc. There are other null pointer dereference bugs on their issue tracker already: https://github.com/sass/sassc-ruby/issues
Can you reproduce this issue without sassc?
Updated by jeremyevans0 (Jeremy Evans) almost 5 years ago
- Status changed from Feedback to Closed