Re: [LAD] c/jack question

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Egor Sanin <egor.sanin@...>
Cc: <linux-audio-dev@...>
Date: Sunday, April 8, 2012 - 5:43 pm

On 04/08/2012 12:01 PM, Egor Sanin wrote:

Because it's valid to do this according to the docs:

http://jackaudio.org/files/docs/html/group__TransportControl.html#ga5f08...

If pos is NULL it just ignores it. It's not an error at all.

OTOH, if pos is uninitialized, then jack will try to write the data to
whatever random address in in pos... and that will usually segfault.

> If I remove the line

This suggests that pos is indeed NULL, and you tried to dereference a
null pointer... which will always segfault.

-gabriel
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] c/jack question, Egor Sanin, (Sun Apr 8, 4:36 pm)
Re: [LAD] c/jack question, Mark McCurry, (Sun Apr 8, 4:49 pm)
Re: [LAD] c/jack question, Egor Sanin, (Sun Apr 8, 5:02 pm)
Re: [LAD] c/jack question, Gabriel M. Beddingfield, (Sun Apr 8, 5:43 pm)
Re: [LAD] c/jack question, Egor Sanin, (Sun Apr 8, 10:49 pm)
Re: [LAD] c/jack question, Dennis Schulmeister, (Sun Apr 8, 5:21 pm)