Analogy a4l_fill_desc() bug
Hello.
I found a bug in a4l_fill_desc(). If I call it on a descriptor obtained for an unattached device, the memory allocated for the sbdata descriptor field is corrupted in a bad way. When, after the failing a4l_fill_desc() call, I free() it, glibc complains about an "invalid next size" for the memory chunk.
I'm on x86 architecture using kernel 2.6.30.10 with xenomai 2.5.1.
Thanks. Cheers,
Signature · 1 line
Daniele
Quoted 1 line · Daniele Nicolodi
Hello.
Hello.
Quoted 7 lines
I found a bug in
a4l_fill_desc(). If I call it on a descriptor obtained for an unattached device, the memory allocated for the sbdata descriptor field is corrupted in a bad way. When, after the failinga4l_fill_desc()call, Ifree()it, glibc complains about an "invalid next size" for the memory chunk.I'm on x86 architecture using kernel 2.6.30.10 with xenomai 2.5.1.
I can't talk for Alex (the analogy developer) and I'm pretty sure he will help you by the end of the week...
This bug reminds me an old one which have been fixed. I think that you should work with the analogy branch of Alex (abe) repository here:
http://git.xenomai.org/?p=xenomai-abe.git;a=shortlog;h=refs/heads/analogy
There is a lot of fixes there; especially for NI driver.
Simon.
Quoted 10 lines
Thanks. Cheers,
--
Daniele_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core
Quoted 9 lines · Daniele Nicolodi
Hello.
I found a bug in
a4l_fill_desc(). If I call it on a descriptor obtained for an unattached device, the memory allocated for the sbdata descriptor field is corrupted in a bad way. When, after the failinga4l_fill_desc()call, Ifree()it, glibc complains about an "invalid next size" for the memory chunk.I'm on x86 architecture using kernel 2.6.30.10 with xenomai 2.5.1.
This bug is still biting me...
Cheers,
Signature · 1 line
Daniele
Hi,
Quoted 9 lines · Daniele Nicolodi
Quoted 8 lines · Daniele Nicolodi
Hello.
I found a bug in
a4l_fill_desc(). If I call it on a descriptor obtained for an unattached device, the memory allocated for the sbdata descriptor field is corrupted in a bad way. When, after the failinga4l_fill_desc()call, Ifree()it, glibc complains about an "invalid next size" for the memory chunk.
Quoted 3 lines
Quoted 1 line
I'm on x86 architecture using kernel 2.6.30.10 with xenomai 2.5.1.
This bug is still biting me...
A few months ago, I fixed a bug in a4l_fill_desc() and I forgot there were two. So I closed the case in my TODO list.
Many thanks for reminding me.
Quoted 10 lines
Cheers,
--
Daniele_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core
Alexis.
Hi,
Quoted 12 lines · Alexis Berlemont
Hi,
Quoted 9 lines · Daniele Nicolodi
Quoted 8 lines · Daniele Nicolodi
Hello.
I found a bug in
a4l_fill_desc(). If I call it on a descriptor obtained for an unattached device, the memory allocated for the sbdata descriptor field is corrupted in a bad way. When, after the failinga4l_fill_desc()call, Ifree()it, glibc complains about an "invalid next size" for the memory chunk.
Quoted 9 lines
Quoted 3 lines
Quoted 1 line
I'm on x86 architecture using kernel 2.6.30.10 with xenomai 2.5.1.
This bug is still biting me...
A few months ago, I fixed a bug in
a4l_fill_desc()and I forgot there were two. So I closed the case in my TODO list.Many thanks for reminding me.
The bug should be fixed in my git repository now (branch analogy).
Quoted 12 lines
Quoted 10 lines
Cheers,
--
Daniele_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-coreAlexis.
Signature · 1 line
Alexis.