Re: 4.1 Beta Binary Release

new topic     » goto parent     » topic index » view thread      » older message » newer message
Jerome said...

But Tom is running into an issue that when ed.ex is compiled with euc, it crashes. This still seems to be happening with your published fix (the issue seems to be intermittent). I also am not familiar enough with ed.ex to understand where the exact problem is coming from and the backtrace from gdb didn't lead me to an immediate solution.

I just got this with valgrind:

==4349== Invalid read of size 4  
==4349==    at 0x4223A5: _1try_auto_complete (ed.c:9530) 
==4349==    by 0x4245AE: _1edit_file (ed.c:10863) 
==4349==    by 0x424CD1: _1ed (ed.c:11607) 
==4349==    by 0x42522D: _1ed_main (ed.c:11713) 
==4349==    by 0x411492: main (main-.c:2024) 
==4349==  Address 0x5968080 is 16 bytes inside a block of size 120 free'd 
==4349==    at 0x4C2B60C: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) 
==4349==    by 0x44C8E8: de_reference (in /home/matt/eu/test/ed) 
==4349==    by 0x421EB4: _1insert_string (ed.c:9153) 
==4349==    by 0x42293E: _1try_auto_complete (ed.c:9432) 
==4349==    by 0x4245AE: _1edit_file (ed.c:10863) 
==4349==    by 0x424CD1: _1ed (ed.c:11607) 
==4349==    by 0x42522D: _1ed_main (ed.c:11713) 
==4349==    by 0x411492: main (main-.c:2024) 

That seems repeatable. 9530 is the end of try_auto_complete and 9153 is part of:

/** ed.ex:2035				buffer[b_line] = splice( buffer[b_line], text[i], b_col )*/ 

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu