Skip to contentSkip to conversation

Analogy a4l_fill_desc() bug

Xenomai-core Daniele Nicolodi 3 participants 5 messages Mar 11, 2010 – Jun 27, 2010

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
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 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.

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

#2 lore raw
In reply to Daniele Nicolodi
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 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.

This bug is still biting me...

Cheers,

Signature · 1 line
Daniele
#3 lore raw

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 failing a4l_fill_desc() call, I free() 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.

#4 lore raw

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 failing a4l_fill_desc() call, I free() 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-core

Alexis.

Signature · 1 line
Alexis.