-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
If you try to use getPlaylistcontainer() on a session before receiving the login callback you'll trigger a segmentation fault. This is of course low prio but I still think that we never should segfault. I'll try to submit a pull request as well.
console.log('This gets printed');
pc = this.session.getPlaylistcontainer();
console.log('This will not...');Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000028
0x000000010222ffd5 in sp_image_add_load_callback ()
(gdb) bt
#0 0x000000010222ffd5 in sp_image_add_load_callback ()
#1 0x00000001022300c3 in sp_playlistcontainer_add_callbacks ()
#2 0x00000001009de52d in Session_PlaylistContainer (args=<value temporarily unavailable, due to optimizations>) at ../src/session.cc:482
#3 0x000000010016665c in v8::internal::Builtin_HandleApiCall ()
#4 0x00003e4f82e0618e in ?? ()
#5 0x00003e4f8307cf33 in ?? ()
#6 0x00003e4f8306a397 in ?? ()
#7 0x00003e4f82e636f7 in ?? ()
#8 0x00003e4f82e2851e in ?? ()
#9 0x00003e4f82e62fb0 in ?? ()
#10 0x00003e4f82e5de25 in ?? ()
#11 0x00003e4f82e59f16 in ?? ()
#12 0x00003e4f82e492e7 in ?? ()
#13 0x00003e4f82e48cab in ?? ()
#14 0x00003e4f82e2d119 in ?? ()
#15 0x00003e4f82e2c6a5 in ?? ()
#16 0x00003e4f82e245e7 in ?? ()
#17 0x00003e4f82e118b7 in ?? ()
#18 0x000000010018abd7 in v8::internal::Invoke ()
#19 0x0000000100147104 in v8::Function::Call ()
#20 0x000000010000b2f5 in node::Load ()
#21 0x000000010000bdf4 in node::Start ()
#22 0x0000000100003034 in start ()
(gdb)
Metadata
Metadata
Assignees
Labels
No labels