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

Stack overflow when grouping uses itself #531

Closed
dreamesee opened this issue Jun 25, 2018 · 1 comment
Closed

Stack overflow when grouping uses itself #531

dreamesee opened this issue Jun 25, 2018 · 1 comment

Comments

@dreamesee
Copy link

dreamesee commented Jun 25, 2018

The following incorrect yang file (because a grouping certainly does not need to use itself):

module any_mod_name {
  namespace "any_mod_name";
  prefix "any_mod_name";
  grouping stuff-top {
    uses stuff-top;
  }
}

Produces:

ASAN:DEADLYSIGNAL                                                                                                                                         
==============================                                                                                         
==23396==ERROR: AddressSanitizer: stack-overflow on address 0x7ffec18a7ff8 (pc 0x7f7b7aefcb09 bp 0x000000000002 sp 0x7ffec18a8000 T0)                     
    #0 0x7f7b7aefcb08  (/lib64/libasan.so.4+0x2bb08)                                                                                                      
    #1 0x7f7b7aef7d9b  (/lib64/libasan.so.4+0x26d9b)                                                                                                      
    #2 0x7f7b7afafa50 in __interceptor_calloc (/lib64/libasan.so.4+0xdea50)                                                                               
    #3 ...libyang/src/tree_schema.c:2738  
    #4 ...libyang/src/tree_schema.c:2890  
    #5 ...libyang/src/tree_schema.c:2890  
    #6 ...libyang/src/tree_schema.c:2890  
    #7 ...libyang/src/tree_schema.c:2890  
    ...
    #250 ...libyang/src/tree_schema.c:2890
                                                                                                                                                          
SUMMARY: AddressSanitizer: stack-overflow (/lib64/libasan.so.4+0x2bb08)                                                                                   
==23396==ABORTING`

We are compiling and executing with C++ sanitizer ASAN, libyang-0.14.50-0.x86_64.rpm.

@michalvasko
Copy link
Member

Hi,
should not happen with most recent master or devel.

Regards,
Michal

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