bugDcHub: Hub software for Direct Connect - Bugs: bug #6475, plugin receives invalid $SR calls

 
 

bug #6475: plugin receives invalid $SR calls

Submitted by:  Dirk Rieger <hhgoth>
Submitted on:  Tue 11 Nov 2003 04:43:49 PM UTC  
 
Category: PluginsSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 0.5.2_CVS
Operating System: Linux x86Planned Release: None
Fixed Release: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 17 Nov 2003 08:54:34 PM UTC, comment #3:

I implemented another output into the send_evt_to_plugin function inside plugin.c (at the end of the for-loop line 703)
as you may see - the failure's occuring at this point first.

ucmd sr process orig: '$SR nettertest film\Kill Bill SVCD - CD 1 (Deutsch).MPG^E817127696 0/2^Etesthub (62.109.79.115)^Esearch|'
ucmd sr process outgoing to: 'search', 6
ucmd sr process outgoing msg: '$SR nettertest film\Kill Bill SVCD - CD 1 (Deutsch).MPG^E817127696 0/2^Etesthub (62.109.79.115)|'
send evt to plugin: '\fd'
sr_fnc
varname: 'event' => varval: 'sr'
varname: 'nickname' => varval: 'nettertest'
varname: 'argc' => varval: '1'
varname: '0' => varval: '\fd'

Dirk Rieger <hhgoth>
Mon 17 Nov 2003 06:27:12 PM UTC, comment #2:

...some logging output: - this may be helpful...

ucmd sr process orig: '$SR TomBombadil musik\Bruce Springsteen\Tracks\CD 2\01 Restless Nights.mp34583907 0/2Deutschland C@fe 2 (62.109.79.115)mawinckie|'
ucmd sr process outgoing to: 'mawinckie', 9
ucmd sr process outgoing msg: '$SR TomBombadil musik\Bruce Springsteen\Tracks\CD 2\01 Restless Nights.mp34583907 0/2Deutschland C@fe 2 (62.109.79.115)|'
sr_fnc
varname: 'event' => varval: 'sr'
varname: 'nickname' => varval: 'TomBombadil'
varname: 'argc' => varval: '1'
varname: '0' => varval: 'äBŒ'

Dirk Rieger <hhgoth>
Thu 13 Nov 2003 02:38:37 PM UTC, comment #1:

I checked megabytes of logfiles.
just printing to stdout like your example works, but using

pp=&(g_array_index(param,PLUGIN_PARAM,1));
char *xxx=strdup(pp->varvalue);

sometimes results in really strange strings
however I encountered this problem only in the sr_fnc of the plugin...

Dirk Rieger <hhgoth>
Tue 11 Nov 2003 04:43:49 PM UTC, original submission:

If got a plugin for the search-result messages from hub
($SR-messages)
sometimes this plugin receives strange messages with wierd Characters - even without the $SR itself.
the messages doesn't seem to be originated by the hub-$SR function - I implemented a logoutput there.

it's the same if the plugin is just printing the event to the log as like in your example

the hub is running without perlscripts

Dirk Rieger <hhgoth>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup1