List Info

Thread: Re: linuxolator problem on i386




Re: linuxolator problem on i386
country flaguser name
Russian Federation
2007-09-18 02:28:05
Boris Samorodov wrote:
> On Tue, 18 Sep 2007 09:31:49 +0400 sam wrote:
>
>   
>> Boris Samorodov wrote:
>>     
>>> On Mon, 17 Sep 2007 17:26:25 +0200 Roman
Divacky wrote:
>>>
>>> net.cpp (926) : Assertion Failed: 0 == iRet
>>> net.cpp (928) : Assertion Failed: 0 == iRet
>>>
>>> couldn't exec listip.cfg
>>> couldn't exec banned.cfg
>>> Master server communication disabled.
>>>    VAC secure mode disabled.
>>> -----
>>>
>>> Sam, does it really works? (I really don't know
how to use this
>>> program).
>>>
>>>   
>>>       
>
>   
>> hello
>> yes, hlds is loaded map without  problem
>>     
>
> Well, I asked if it really *works* not *loads*. 
>
>   
>> this patch is working
>>     
>
> No. :-(
>
>
> WBR
>   
ssory
iam have new problem

===after start hlds with both patches============

changelevel de_dust2
L 09/18/2007 - 12:19:11: Log file closed
Server logging data to file logs/L0918001.log
L 09/18/2007 - 12:19:11: Log file started (file
"logs/L0918001.log") 
(game "cstrike") (version
"47/1.1.2.5/Stdio/3651")
L 09/18/2007 - 12:19:11: Loading map "de_dust2"
L 09/18/2007 - 12:19:11: Server cvars start
L 09/18/2007 - 12:19:11: Server cvar 
"_tutor_bomb_viewable_check_interval" =
"0.5"
L 09/18/2007 - 12:19:11: Server cvar
"_tutor_debug_level" = "0"
L 09/18/2007 - 12:19:11: Server cvar
"_tutor_examine_time" = "0.5"
L 09/18/2007 - 12:19:11: Server cvar
"_tutor_hint_interval_time" = "10.0"
L 09/18/2007 - 12:19:11: Server cvar
"_tutor_look_angle" = "10"
L 09/18/2007 - 12:19:11: Server cvar
"_tutor_look_distance" = "200"
L 09/18/2007 - 12:19:11: Server cvar 
"_tutor_message_character_display_time_coefficient"
; = "0.07"
L 09/18/2007 - 12:19:11: Server cvar 
"_tutor_message_minimum_display_time" =
"1"
L 09/18/2007 - 12:19:11: Server cvar
"_tutor_message_repeats" = "5"
L 09/18/2007 - 12:19:11: Server cvar
"_tutor_view_distance" = "1000"
L 09/18/2007 - 12:19:11: Server cvar
"allow_spectators" = "1"
L 09/18/2007 - 12:19:11: Server cvar "coop" =
"0"
L 09/18/2007 - 12:19:11: Server cvar "deathmatch"
= "1"
L 09/18/2007 - 12:19:11: Server cvar
"decalfrequency" = "60"
L 09/18/2007 - 12:19:11: Server cvar
"edgefriction" = "2"
L 09/18/2007 - 12:19:11: Server cvar
"hostage_debug" = "0"
L 09/18/2007 - 12:19:11: Server cvar
"hostage_stop" = "0"
L 09/18/2007 - 12:19:11: Server cvar
"humans_join_team" = "any"
L 09/18/2007 - 12:19:11: Server cvar
"max_queries_sec" = "3.0"
L 09/18/2007 - 12:19:11: Server cvar
"max_queries_sec_global" = "30"
L 09/18/2007 - 12:19:11: Server cvar
"max_queries_window" = "60"
L 09/18/2007 - 12:19:11: Server cvar
"mp_allowmonsters" = "0"
L 09/18/2007 - 12:19:11: Server cvar "mp_autokick"
= "0"
L 09/18/2007 - 12:19:11: Server cvar
"mp_autoteambalance" = "1"
L 09/18/2007 - 12:19:11: Server cvar "mp_buytime"
= "0.25"
L 09/18/2007 - 12:19:11: Server cvar "mp_c4timer"
= "45"
L 09/18/2007 - 12:19:11: Server cvar "mp_chattime"
= "4"
L 09/18/2007 - 12:19:11: Server cvar
"mp_consistency" = "1"
L 09/18/2007 - 12:19:11: Server cvar
"mp_fadetoblack" = "0"
L 09/18/2007 - 12:19:11: Server cvar
"mp_flashlight" = "1"
L 09/18/2007 - 12:19:11: Server cvar
"mp_footsteps" = "1"
L 09/18/2007 - 12:19:11: Server cvar
"mp_forcecamera" = "0"
L 09/18/2007 - 12:19:11: Server cvar
"mp_forcechasecam" = "0"
L 09/18/2007 - 12:19:11: Server cvar
"mp_fragsleft" = "0"
L 09/18/2007 - 12:19:11: Server cvar
"mp_freezetime" = "4"
L 09/18/2007 - 12:19:11: Server cvar
"mp_friendlyfire" = "1"
L 09/18/2007 - 12:19:11: Server cvar
"mp_ghostfrequency" = "0.1"
L 09/18/2007 - 12:19:11: Server cvar
"mp_hostagepenalty" = "0"
L 09/18/2007 - 12:19:11: Server cvar
"mp_kickpercent" = "0.66"
L 09/18/2007 - 12:19:11: Server cvar
"mp_limitteams" = "2"
L 09/18/2007 - 12:19:11: Server cvar
"mp_logdetail" = "3"
L 09/18/2007 - 12:19:11: Server cvar "mp_logfile"
= "1"
L 09/18/2007 - 12:19:11: Server cvar
"mp_logmessages" = "1"
L 09/18/2007 - 12:19:11: Server cvar
"mp_mapvoteratio" = "0.66"
L 09/18/2007 - 12:19:11: Server cvar
"mp_maxrounds" = "0"
L 09/18/2007 - 12:19:11: Server cvar
"mp_mirrordamage" = "0"
L 09/18/2007 - 12:19:11: Server cvar "mp_playerid"
= "0"
L 09/18/2007 - 12:19:11: Server cvar
"mp_roundtime" = "2.25"
L 09/18/2007 - 12:19:11: Server cvar
"mp_startmoney" = "800"
L 09/18/2007 - 12:19:11: Server cvar "mp_timeleft"
= "0"
L 09/18/2007 - 12:19:11: Server cvar
"mp_timelimit" = "20"
L 09/18/2007 - 12:19:11: Server cvar "mp_tkpunish"
= "0"
L 09/18/2007 - 12:19:11: Server cvar
"mp_windifference" = "1"
L 09/18/2007 - 12:19:11: Server cvar "mp_winlimit"
= "0"
L 09/18/2007 - 12:19:11: Server cvar "pausable" =
"0"
L 09/18/2007 - 12:19:11: Server cvar
"sv_accelerate" = "5"
L 09/18/2007 - 12:19:11: Server cvar "sv_aim" =
"0"
L 09/18/2007 - 12:19:11: Server cvar
"sv_airaccelerate" = "10"
L 09/18/2007 - 12:19:11: Server cvar "sv_airmove"
= "1"
L 09/18/2007 - 12:19:11: Server cvar
"sv_allowupload" = "1"
L 09/18/2007 - 12:19:11: Server cvar "sv_alltalk"
= "0"
L 09/18/2007 - 12:19:11: Server cvar "sv_bounce" =
"1"
L 09/18/2007 - 12:19:11: Server cvar "sv_cheats" =
"0"
L 09/18/2007 - 12:19:11: Server cvar
"sv_clienttrace" = "1"
L 09/18/2007 - 12:19:11: Server cvar "sv_clipmode"
= "0"
L 09/18/2007 - 12:19:11: Server cvar "sv_contact"
= "samflankergmail.com"
L 09/18/2007 - 12:19:11: Server cvar "sv_friction"
= "4"
L 09/18/2007 - 12:19:11: Server cvar "sv_gravity"
= "800"
L 09/18/2007 - 12:19:11: Server cvar
"sv_logblocks" = "0"
L 09/18/2007 - 12:19:11: Server cvar "sv_maxrate"
= "13000"
L 09/18/2007 - 12:19:11: Server cvar "sv_maxspeed"
= "320"
L 09/18/2007 - 12:19:11: Server cvar "sv_minrate"
= "2000"
L 09/18/2007 - 12:19:11: Server cvar "sv_password"
= ""
L 09/18/2007 - 12:19:11: Server cvar "sv_proxies"
= "1"
L 09/18/2007 - 12:19:11: Server cvar "sv_region" =
"3"
L 09/18/2007 - 12:19:11: Server cvar "sv_restart"
= "0"
L 09/18/2007 - 12:19:11: Server cvar
"sv_restartround" = "0"
L 09/18/2007 - 12:19:11: Server cvar "sv_stepsize"
= "18"
L 09/18/2007 - 12:19:11: Server cvar
"sv_stopspeed" = "75"
L 09/18/2007 - 12:19:11: Server cvar
"sv_uploadmax" = "0.5"
L 09/18/2007 - 12:19:11: Server cvar
"sv_voiceenable" = "0"
L 09/18/2007 - 12:19:11: Server cvar
"sv_wateraccelerate" = "10"
L 09/18/2007 - 12:19:11: Server cvar
"sv_waterfriction" = "1"
L 09/18/2007 - 12:19:11: Server cvars end
L 09/18/2007 - 12:19:11: Server cvar "sv_maxspeed"
= "900"
L 09/18/2007 - 12:19:12: Started map "de_dust2"
(CRC "1159425449")
L 09/18/2007 - 12:19:17: World triggered
"Round_Start"
stats
CPU   In    Out   Uptime  Users   FPS    Players
15.00  0.00  0.00       0     0  490.68       0


status
hostname:  Izhevsk Public CS 1.6
version :  47/1.1.2.5/Stdio 3651 secure
tcp/ip  :  0.0.0.0:27015
map     :  de_dust2 at: 0 x, 0 y, 0 z
players :  0 active (6 max)

#      name userid uniqueid frag time ping loss adr
0 users


maps
Usage:  maps <substring>
maps * for full listing
maps *
-------------
scandir failed:/usr/home/hlds/1.6/./cstrike/maps
scandir failed:/usr/home/hlds/1.6/./valve/maps
scandir failed:/usr/home/hlds/1.6/./platform/maps
scandir failed:/usr/home/hlds/1.6/./cstrike/maps
scandir failed:/usr/home/hlds/1.6/./valve/maps
scandir failed:/usr/home/hlds/1.6/./platform/maps

============================================
# ls /usr/home/hlds/1.6/cstrike/maps
as_oilrig.bsp           cs_italy.bsp            de_cbble.bsp
           
de_cpl_strike.bsp.ztmp  de_forge.txt.ztmp      
de_survivor.bsp.ztmp
as_oilrig.bsp.ztmp      cs_italy.bsp.ztmp      
de_cbble.bsp.ztmp       
de_cpl_strike.txt       de_inferno.bsp          de_torn.bsp
cs_747.bsp              cs_militia.bsp         
de_cbble_detail.txt     
de_cpl_strike.txt.ztmp  de_inferno.bsp.ztmp    
de_torn.bsp.ztmp
cs_747.bsp.ztmp         cs_militia.bsp.ztmp    
de_chateau.bsp          
de_dust.bsp             de_nuke.bsp            
de_train.bsp
cs_assault.bsp          cs_office.bsp          
de_chateau.bsp.ztmp     
de_dust.bsp.ztmp        de_nuke.bsp.ztmp       
de_train.bsp.ztmp
cs_assault.bsp.ztmp     cs_office.bsp.ztmp     
de_clan1_mill.bsp       
de_dust2.bsp            de_piranesi.bsp        
de_vertigo.bsp
cs_backalley.bsp        cs_siege.bsp           
de_clan1_mill.bsp.ztmp  
de_dust2.bsp.ztmp       de_piranesi.bsp.ztmp   
de_vertigo.bsp.ztmp
cs_backalley.bsp.ztmp   cs_siege.bsp.ztmp      
de_clan2_fire.bsp       
de_forge.bsp            de_prodigy.bsp
cs_estate.bsp           de_airstrip.bsp        
de_clan2_fire.bsp.ztmp  
de_forge.bsp.ztmp       de_prodigy.bsp.ztmp
cs_estate.bsp.ztmp      de_airstrip.bsp.ztmp   
de_clan2_fire.txt       
de_forge.res            de_storm.bsp
cs_havana.bsp           de_aztec.bsp           
de_clan2_fire.txt.ztmp  
de_forge.res.ztmp       de_storm.bsp.ztmp
cs_havana.bsp.ztmp      de_aztec.bsp.ztmp      
de_cpl_strike.bsp       
de_forge.txt            de_survivor.bsp
=========================================================

have problem with:

maps *
-------------
scandir failed:/usr/home/hlds/1.6/./cstrike/maps
scandir failed:/usr/home/hlds/1.6/./valve/maps
scandir failed:/usr/home/hlds/1.6/./platform/maps
scandir failed:/usr/home/hlds/1.6/./cstrike/maps
scandir failed:/usr/home/hlds/1.6/./valve/maps
scandir failed:/usr/home/hlds/1.6/./platform/maps


no maps list

/Vladimir Ermakov

_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

Re: linuxolator problem on i386
country flaguser name
Czech Republic
2007-09-19 08:25:46
> >  -442,8 +443,7 
> 
> >         off = fp->f_offset;
> 
> > -       buflen = max(LINUX_DIRBLKSIZ, nbytes);
> > -       buflen = min(buflen, MAXBSIZE);
> > +       buflen = max(buflen, MAXBSIZE);
> >         buf = malloc(buflen, M_TEMP, M_WAITOK);
> >         vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td);
> 
> No. It limits buflen to which is smaller, buflen or
MAXBSIZE.
 
yes... brain does not work real good today :(

I wonder why the limitation is there.. can you try

        buflen = min(nbytes, MAXBSIZE);

and/or

changing

     while (len > 0) {

to

     while (len >= 0)4 {


_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

Re: linuxolator problem on i386
country flaguser name
United Kingdom
2007-09-19 08:50:59
On Wed, 19 Sep 2007 15:25:46 +0200 Roman Divacky wrote:

> > >  -442,8 +443,7 
> > 
> > >         off = fp->f_offset;
> > 
> > > -       buflen = max(LINUX_DIRBLKSIZ,
nbytes);
> > > -       buflen = min(buflen, MAXBSIZE);      
      [1]
> > > +       buflen = max(buflen, MAXBSIZE);
> > >         buf = malloc(buflen, M_TEMP,
M_WAITOK);
> > >         vn_lock(vp, LK_EXCLUSIVE | LK_RETRY,
td);
> > 
> > No. It limits buflen to which is smaller, buflen
or MAXBSIZE.

> I wonder why the limitation is there..

Seems that there is something that should keep this value
not less
than LINUX_DIRBLKSIZ (or 512 bytes for now).

> can you try
>         buflen = min(nbytes, MAXBSIZE);

Actually, I don't see a reason. The code is clean to mee...
nbytes is always 4096 here and so do buflen (I did some
printf's).

> and/or

> changing

>      while (len > 0) {

> to

>      while (len >= 0)4 {

?

WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone
& Internet SP
FreeBSD committer, http://www.FreeBSD.org The
Power To Serve
_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

Re: linuxolator problem on i386
country flaguser name
Russian Federation
2007-09-20 01:34:39
> Seems that there is something that should keep this
value not less
> than LINUX_DIRBLKSIZ (or 512 bytes for now).
>
>   
>> can you try
>>         buflen = min(nbytes, MAXBSIZE);
>>     
>
> Actually, I don't see a reason. The code is clean to
mee...
> nbytes is always 4096 here and so do buflen (I did some
printf's).
>
>   

#uname -a
Linux evil 2.6.22-gentoo-r6-sss-test-build #23 Mon Sep 17
14:38:03 EEST 
2007
i686 AMD Athlon(tm) XP 2500+ AuthenticAMD GNU/Linux

============ctrace.out(hlds_stable_work)====================
=========================

http:
//81.176.175.14/files/temp/strace.dump.log

/Vladimir Ermakov

_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

Re: linuxolator problem on i386
country flaguser name
Russian Federation
2007-09-20 02:49:49
> #uname -a
> Linux evil 2.6.22-gentoo-r6-sss-test-build #23 Mon Sep
17 14:38:03 
> EEST 2007
> i686 AMD Athlon(tm) XP 2500+ AuthenticAMD GNU/Linux
>
>
============ctrace.out(hlds_stable_work)====================
========================= 
>
>
> http:
//81.176.175.14/files/temp/strace.dump.log
>
> /Vladimir Ermakov
>
>
ht
tp://81.176.175.14/files/temp/strace_full.log.7z

format example:
641   fcntl64(6, F_SETFD, FD_CLOEXEC)   = 0
641   getdents(6, /* 167 entries */, 65536) = 4684

/Vladimir Ermakov


_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

Re: linuxolator problem on i386
country flaguser name
Luxembourg
2007-09-20 03:19:07
Quoting Roman Divacky <rdivackyfreebsd.org> (from Wed,
19 Sep 2007  
15:25:46 +0200):

>> >  -442,8 +443,7 
>>
>> >         off = fp->f_offset;
>>
>> > -       buflen = max(LINUX_DIRBLKSIZ,
nbytes);
>> > -       buflen = min(buflen, MAXBSIZE);
>> > +       buflen = max(buflen, MAXBSIZE);
>> >         buf = malloc(buflen, M_TEMP,
M_WAITOK);
>> >         vn_lock(vp, LK_EXCLUSIVE | LK_RETRY,
td);
>>
>> No. It limits buflen to which is smaller, buflen or
MAXBSIZE.
>
> yes... brain does not work real good today :(
>
> I wonder why the limitation is there.

Isn't this the code where we made sure that we don't use
more buffer  
than we have? In some part of the code we specially made
sure that we  
don't overflow either the FreeBSD size nor the linux size.

You could check if nbytes is with or without the .

Bye,
Alexander.

-- 
People never lie so much as after a hunt, during a war, or
before an
election.
		-- Otto von Bismarck

http://www.Leidinger.net
   Alexander  Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org 
     netchild  FreeBSD.org  : PGP ID = 72077137
_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

Re: linuxolator problem on i386
country flaguser name
Luxembourg
2007-09-20 03:37:44
Quoting Alexander Leidinger <AlexanderLeidinger.net> (from Thu, 20  
Sep 2007 10:19:07 +0200):

> Quoting Roman Divacky <rdivackyfreebsd.org> (from Wed, 19 Sep 2007
> 15:25:46 +0200):
>
>>>>  -442,8 +443,7 
>>>
>>>>         off = fp->f_offset;
>>>
>>>> -       buflen = max(LINUX_DIRBLKSIZ,
nbytes);
>>>> -       buflen = min(buflen, MAXBSIZE);
>>>> +       buflen = max(buflen, MAXBSIZE);
>>>>         buf = malloc(buflen, M_TEMP,
M_WAITOK);
>>>>         vn_lock(vp, LK_EXCLUSIVE |
LK_RETRY, td);
>>>
>>> No. It limits buflen to which is smaller,
buflen or MAXBSIZE.
>>
>> yes... brain does not work real good today :(
>>
>> I wonder why the limitation is there.
>
> Isn't this the code where we made sure that we don't
use more buffer
> than we have? In some part of the code we specially
made sure that we
> don't overflow either the FreeBSD size nor the linux
size.

To answer myself... this isn't this node. I had a look at
the  
annotated view in cvsweb and it was changed by marcel in
rev. 1.55:  
http://www.freeb
sd.org/cgi/cvsweb.cgi/src/sys/compat/linux/linux_file.c.diff
?r1=1.54;r2=1.55;f=h

He copied this from the previous revision and changed it
from  
DIRBLKSIZ to LINUX_DIRBLKSIZ.

I suggest to dig deeper into the history via the annotated
view of the  
corresponding revisions to see if a commit log contains the
rationale  
for this.

If not try to understand what the code is supposed to be and
change it  
accordingly.

Bye,
Alexander.

-- 
Monogamy is the Western custom of one wife and hardly any
mistresses.
		-- H. H. Munro

http://www.Leidinger.net
   Alexander  Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org 
     netchild  FreeBSD.org  : PGP ID = 72077137
_______________________________________________
freebsd-emulationfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emu
lation
To unsubscribe, send any mail to
"freebsd-emulation-unsubscribefreebsd.org"

[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )