Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

savestate double free segmentation fault. #1

Closed
n2k opened this issue Nov 13, 2011 · 5 comments
Closed

savestate double free segmentation fault. #1

n2k opened this issue Nov 13, 2011 · 5 comments
Assignees
Labels

Comments

@n2k
Copy link

n2k commented Nov 13, 2011

On line 174 in plugins/savestate.c you are doing sp_track_release(tr); and then later on line 196 you are doing a g_array_free(s->tracks, TRUE); so you get a double free segmentation fault

@Schnouki
Copy link
Owner

I'm sorry, but I don't think this can cause a double free.

sp_track_release() frees some libspotify internal memory. g_array_free() frees a GArray allocated by spop, but it does not touch anything in libspotify. So really, I don't see how this can cause a double free.

If you still have this issue, could you please send me a spop debug log, maybe a gdb backtrace, and if posible a copy of the state file? (~/.cache/spop/state.json)

(To produce a gdb backtrace, run gdb --args /path/to/spopd -d, type run, and after it crashed type bt.)

@ghost ghost assigned Schnouki Nov 17, 2011
@n2k
Copy link
Author

n2k commented Nov 17, 2011

Here is the "faulty" state file.
think it fails on 2-3 tracks not being available.

By the way, are you still studying or have you started working ?

.n

On Thursday, November 17, 2011 at 2:05 PM, Thomas Jost wrote:

I'm sorry, but I don't think this can cause a double free.

sp_track_release() frees some libspotify internal memory. g_array_free() frees a GArray allocated by spop, but it does not touch anything in libspotify. So really, I don't see how this can cause a double free.

If you still have this issue, could you please send me a spop debug log, maybe a gdb backtrace, and if posible a copy of the state file? (~/.cache/spop/state.json)

(To produce a gdb backtrace, run gdb --args /path/to/spopd -d, type run, and after it crashed type bt.)


Reply to this email directly or view it on GitHub:
#1 (comment)

@Schnouki
Copy link
Owner

On Thu, 17 Nov 2011 07:05:47 -0800, n2k [email protected] wrote:

Here is the "faulty" state file.
think it fails on 2-3 tracks not being available.

No file here (thank you Github issue management system :)). Maybe you
shoudl try Pastebin or something like that to send it.

By the way, are you still studying or have you started working ?

Both :) PhD students are hired with a 3 years work contract here (legal
requirement). So I do have a job with a decent salary :)

Regards,

Thomas/Schnouki

@n2k
Copy link
Author

n2k commented Nov 24, 2011

Hi again,
here is the state file that breaks it… looks like there is 2-3 tracks that isn't available and that makes it crash.
http://degero.se/state.json

are you working on any more new features on spopd ?

So how much studying do you have left ? :)

Best Regards

.n

On Friday, November 18, 2011 at 1:12 AM, Thomas Jost wrote:

On Thu, 17 Nov 2011 07:05:47 -0800, n2k <[email protected] (mailto:[email protected])> wrote:

Here is the "faulty" state file.
think it fails on 2-3 tracks not being available.

No file here (thank you Github issue management system :)). Maybe you
shoudl try Pastebin or something like that to send it.

By the way, are you still studying or have you started working ?

Both :) PhD students are hired with a 3 years work contract here (legal
requirement). So I do have a job with a decent salary :)

Regards,

Thomas/Schnouki


Reply to this email directly or view it on GitHub:
#1 (comment)

@Schnouki
Copy link
Owner

Thanks for the state file. I was able to reproduce the problem and I think I fixed it. Could you please check?

(Theoretically I have one year left before the end of my thesis. I hope it will be enough :))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants