#107268 - 25/07/2002 03:19
Preinit on Beta 13/HJ283 causes memory voilation
|
new poster
Registered: 12/03/2002
Posts: 14
Loc: Birmingham, England
|
Hi there...
I've just finished upgrading my player to 2.0 Beta 13, and
Hijack 283.. and all is fine ... except..
i've now reinstalled preinit v3 on my player in order to start empacman on startup,
and although it all seems work ok, a memory violation error
occours when starting empacman as follows..
hijack(9): memory violation at pc=0x02004480, lr=0x02004428 (bad address=0x464c4
587, code 2)
pc : [<02004480>] lr : [<02004428>]
sp : bffffe78 ip : bffffe98 fp : bffffe94
r10: 020005a4 r9 : 00000000 r8 : 0202eef0
r7 : 0203fdd0 r6 : 464c457f r5 : 0203fdc0 r4 : 00000010
r3 : 00001049 r2 : 00000010 r1 : 00001048 r0 : 464c457f
Flags: nZCv IRQs on FIQs on Mode USER_32 Segment user
Control: C0F3D17D Table: C0F3D17D DAC: 00000015
Function entered at [<02004458>] from [<02004428>]
r7 = 00000000 r6 = 020000C0 r5 = 0203FDC0 r4 = 464C457F
Function entered at [<02004380>] from [<020008ac>]
r5 = BFFFFF74 r4 = 00000001
Function entered at [<020005a4>] from [<02000a50>]
Function entered at [<02000974>] from [<02000104>]
r10 = 00000000 r8 = 00000000 r7 = 00000000 r6 = 00000000
r5 = 00000000 r4 = 00000000
empacman running as pid 15
Prolux 4 empeg car - 2.1434 Jul 24 2002
Vcb: 0x4086d000
! mp3_decoder.cpp :1049:Failed to find valid sync after seeking to offset 3450
288, error=0xc0044000
Any ideas? Is preint v3 not compatable with Hijack v283?
P.S.
Thanks for the empeg update guys.. always nice to have
support for an EOL product!
|
Top
|
|
|
|
#107269 - 25/07/2002 03:38
Re: Preinit on Beta 13/HJ283 causes memory voilation
[Re: RichC]
|
carpal tunnel
Registered: 24/12/2001
Posts: 5528
|
Hi,
Preinit works fine for me with v282 and v2.00b13. Have you tried downloading it again?
The preinit binary should be exactly 231380 bytes.
- Trevor
|
Top
|
|
|
|
#107270 - 25/07/2002 03:45
Re: Preinit on Beta 13/HJ283 causes memory voilation
[Re: tman]
|
new poster
Registered: 12/03/2002
Posts: 14
Loc: Birmingham, England
|
Just checked my copy of preinit on my player and it is
exactly 231380 bytes. Reinstaled it anyway in case it
was corrupt, but still get exactly the same error...
Think i must be an issue with Hijack 283.. not tried going
back to 282 yet.
|
Top
|
|
|
|
#107271 - 25/07/2002 03:58
Re: Preinit on Beta 13/HJ283 causes memory voilation
[Re: RichC]
|
carpal tunnel
Registered: 24/12/2001
Posts: 5528
|
Odd. There shouldn't be any significant difference between v282 and v283. I'll give it a go now...
Preinit does work with v283 as well...
- Trevor
|
Top
|
|
|
|
#107272 - 25/07/2002 04:20
Re: Preinit on Beta 13/HJ283 causes memory voilation
[Re: tman]
|
new poster
Registered: 12/03/2002
Posts: 14
Loc: Birmingham, England
|
Hmm.. most curious..
I've just downloaded Hijack v283 again (in case i have a
corrupt copy) and reapplied it to my player.. problem still
exists!
As i dont have a copy of v282 I then applied v281 of
Hijack.. and the problem went away!
Reapplied v283 and it comes back again!!..
Are you sure that your player is working correctly with
beta 13 and v283?
Are you watching the player startup (over serial)?
the error only occours when preinit runs the startup script
for empacman.. are you running this?
Just trying to figure this one out! - Anyone else having this problem?
|
Top
|
|
|
|
#107273 - 25/07/2002 06:20
Re: Preinit on Beta 13/HJ283 causes memory voilation
[Re: RichC]
|
carpal tunnel
Registered: 24/12/2001
Posts: 5528
|
Yep. v2.00b13 with Hijack v283. The only difference between v281 and v283 are that the v2.00b11 workarounds were removed and the bugfixes for the kernel that used to be in the Hijack patch are now in the main kernel tree. There is something definately odd going on here
<-snip->
Trying to unmount old root ... okay
Freeing unused kernel memory: 4k init
empeg-preinit starting...
empeg-preinit complete
empacman running as pid 17
empeg init 0.8
I see this is a developer image!
Mounting proc
<-snip->
empeg:/empeg/bin# cat /etc/preinit.d/N30empacman
#!/bin/sh
/bin/empacman
empeg:/empeg/bin# ls -al /bin/hijack
-rwxr-xr-x 1 1000 67 231380 Apr 1 02:17 /bin/hijack
empeg:/empeg/bin# ls -al /bin/empacman
-rwxr-xr-x 1 0 0 62143 Jul 20 08:40 /bin/empacman
empeg:/empeg/bin# cat /proc/sys/kernel/osrelease
2.2.14-rmk5-np17-empeg51-hijack-v283
- Trevor
|
Top
|
|
|
|
#107274 - 25/07/2002 07:10
Re: Preinit on Beta 13/HJ283 causes memory voilation
[Re: tman]
|
enthusiast
Registered: 04/03/2002
Posts: 217
Loc: Lowell, MA
|
i'm getting similar issues. I also got the same memory violation. I'm also this at startup. Not sure if this is the norm or not:
empeg-preinit starting...
empeg-preinit: empacman.sh: type 'e' not defined
empeg-preinit: empegVNC.sh: type 'e' not defined
empeg-preinit: telnetd.sh: type 't' not defined
empeg-preinit complete
empeg init 0.8
I have Beta 13 and hijack 283. As you can see I have empacman, VNC and telnetd all setup as startup scripts. None of which run now on thier own unless I go in through hyperterm and run them manually.
_________________________
Mk2a 30GB Blue. Serial 030102999
|
Top
|
|
|
|
#107275 - 25/07/2002 07:52
Re: Preinit on Beta 13/HJ283 causes memory ...
[Re: leftyfb]
|
old hand
Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
|
You might get more information by adding set -ev at the beginning of each init script, to see which commands are being executed.
_________________________
Toby Speight 030103016 (80GB Mk2a, blue) 030102806 (0GB Mk2a, blue)
|
Top
|
|
|
|
#107276 - 25/07/2002 08:02
Re: Preinit on Beta 13/HJ283 causes memory ...
[Re: tms13]
|
enthusiast
Registered: 04/03/2002
Posts: 217
Loc: Lowell, MA
|
This is what I put in each of the scripts:
#!/bin/sh
set -ev
/empeg/bin/telnetd
I still get the same messages at boot, the scripts still don't execute the bin's, and I still get:
! mp3_decoder.cpp :1049:Failed to find valid sync after seeking to offset 4319
751, error=0xc0044000
or something similar after rebooting and playing a song. It plays and will be fine until I reboot again, then i'll get the error. Not causing any problems other than my scripts not running.
_________________________
Mk2a 30GB Blue. Serial 030102999
|
Top
|
|
|
|
#107277 - 25/07/2002 08:40
Re: Preinit on Beta 13/HJ283 causes memory ...
[Re: leftyfb]
|
journeyman
Registered: 16/02/2000
Posts: 94
Loc: UK - NE Wales
|
Yeah - I get that mp3player.cpp error too, noticed it last night when upgrading. I was too busy trying to get the player to run with the -s- command to think about it though!
|
Top
|
|
|
|
#107278 - 25/07/2002 09:12
Re: Preinit on Beta 13/HJ283 causes memory ...
[Re: FlibblE]
|
addict
Registered: 25/06/2002
Posts: 456
|
Just another datapoint for reference:
I was occasionally getting that mp3player.cpp error under Beta11
with Hijack 276, and NO preinit installed (and no empacman, empgps, or
emptriv either obviously).
Tony said I should probably contact support, but I never did, since it
never impacted the operation of my player.
|
Top
|
|
|
|
#107279 - 25/07/2002 09:53
Re: Preinit on Beta 13/HJ283 causes memory ...
[Re: leftyfb]
|
old hand
Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
|
Rereading your original message, it looks like you haven't correctly named the startup scripts.
Pre-init requires that the script name begin with a capital letter indicating which phase of bootup executes it, followed by a two-digit sequence number, then whatever you like.
For example, /etc/preinit.d/M50telnetd
_________________________
Toby Speight 030103016 (80GB Mk2a, blue) 030102806 (0GB Mk2a, blue)
|
Top
|
|
|
|
#107280 - 25/07/2002 10:19
Re: Preinit on Beta 13/HJ283 causes memory ...
[Re: tms13]
|
member
Registered: 31/03/2002
Posts: 100
Loc: Alberta, Canada
|
I agree, the names for the scripts need to be changed to work with preinit.
As far as the mp3_decoder.cpp thing, there is another thread about it. Basically, I think it is just a message that appears when you start the player in the middle of a song. Not a real problem.
_________________________
F0X
3xMkIIa
|
Top
|
|
|
|
#107281 - 25/07/2002 10:36
Re: Preinit on Beta 13/HJ283 causes memory ...
[Re: F0X]
|
new poster
Registered: 12/03/2002
Posts: 14
Loc: Birmingham, England
|
Hmm.. don't think that's the problem..
my preinit startup script for empacman is named "M10empacman"
dont think it's a problem with the scripts because if i use
Hijack v281 (which i am at the moment) then everything is fine.. No errors at all!
The mp3_decoder.cpp error i have seen before and i don't think
is related to this problem (diddn't mean to include that in my origional message!)
RichC
Edited by RichC (25/07/2002 10:39)
|
Top
|
|
|
|
#107282 - 25/07/2002 10:49
Re: Preinit on Beta 13/HJ283 causes memory ...
[Re: RichC]
|
member
Registered: 31/03/2002
Posts: 100
Loc: Alberta, Canada
|
Sorry, the script naming problem is related to the post by leftyb not yours. My answers are not really related to the title of this thread. For that I have no ideas
_________________________
F0X
3xMkIIa
|
Top
|
|
|
|
#107283 - 25/07/2002 10:57
Re: Preinit on Beta 13/HJ283 causes memory ...
[Re: RichC]
|
carpal tunnel
Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
|
If you disable your empacman script, do you get that error with other programs being started? As it is now, does it always produce that error? If you run it on the command line after boot, does it give you that error? If not, try making it an `M' script. Maybe there's some requirement for the player to already be running.
Hmmm. Looking at your crash again, it looks like it's actually preinit that's causing the problem generating the crash. Odd. I can't think why. It's a very simple piece of code. Does the empeg continue booting properly after you see this error? Do any of the scripts get run?
Lemme know about the stuff above and then I'll see what I can figure out.
_________________________
Bitt Faulk
|
Top
|
|
|
|
#107284 - 25/07/2002 11:00
Re: Preinit on Beta 13/HJ283 causes memory ...
[Re: F0X]
|
enthusiast
Registered: 04/03/2002
Posts: 217
Loc: Lowell, MA
|
hm... I changed the names it and it seems to be loading everything fine now. Odd because as someone else said, it didn't do this before I upgraded hijack from 281 to 283. Or actually now that I think about it, I also upgraded from an older version of preinit to preinit3 at the same time so that might have been it also.
I also did a test and played a quick song all the way through till it go to the "End of playlist" so not to be in the middle of a song and put the player into standby. Then unplugged it and plugged it back in and didn't get the mp3_decoder error.
I think everything is good now
gawd(Boston accent) I love this forum
_________________________
Mk2a 30GB Blue. Serial 030102999
|
Top
|
|
|
|
#107285 - 25/07/2002 11:18
Re: Preinit on Beta 13/HJ283 causes memory ...
[Re: leftyfb]
|
enthusiast
Registered: 04/03/2002
Posts: 217
Loc: Lowell, MA
|
ok, now i'm seeing something that also doesn't look right:
#0 10 1 0 18:20 ttyS1 00:00:00 /empeg/bin/player
14 times (of course with different PID's)
I think only 1 of these was running before.
And to make things a HELL of a lot easier ... is there an editor (vi) I can use to edit these scripts on the player? I don't feel like messin around with win32 wannabee vi editors and my method of downloading from empeg -> upload to home linux box -> edit through ssh to box at home -> download from home linux box -> upload to empeg is really getting annoying.
_________________________
Mk2a 30GB Blue. Serial 030102999
|
Top
|
|
|
|
#107286 - 25/07/2002 11:48
Re: Preinit on Beta 13/HJ283 causes memory ...
[Re: leftyfb]
|
carpal tunnel
Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
|
Yeah. There's a vi here that was submitted by Paul Grzelak. I submitted it to the riocar.org d/l section just now.
_________________________
Bitt Faulk
|
Top
|
|
|
|
#107287 - 25/07/2002 12:52
Re: Preinit on Beta 13/HJ283 causes memory ...
[Re: wfaulk]
|
old hand
Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
|
ya im running beta 13, hijackv283, and empacman on the preinit, just fine, so i dont think its a hijack problem, and the mp3deco.cpp error thing i get more often then not
_________________________
----
Justin Larsen
|
Top
|
|
|
|
#107288 - 25/07/2002 16:36
Re: Preinit on Beta 13/HJ283 causes memory ...
[Re: leftyfb]
|
carpal tunnel
Registered: 24/12/2001
Posts: 5528
|
/empeg/bin/player should be listed more than once. It's normal.
- Trevor
|
Top
|
|
|
|
#107289 - 01/08/2002 08:43
Re: Preinit on Beta 13/HJ283 causes memory ...
[Re: RichC]
|
member
Registered: 30/06/1999
Posts: 179
Loc: Switzerland
|
Have you found a solution yet? I have a similar problem and I think the problem is the programs0-mount script.
Try to copy the files into another directory, for example /drive0/appl/empacman, adapt your empacman start script and remove the mountscript from /etc/preinit.d.
Hope this work. In my case it does.
Also have a look at http://empeg.comms.net/php/showthreaded.php?Cat=&Board=bigs&Number=107226&page=0&view=expanded&sb=5&o=0
|
Top
|
|
|
|
#107290 - 01/08/2002 13:25
Re: Preinit on Beta 13/HJ283 causes memory ...
[Re: alex25]
|
journeyman
Registered: 16/02/2000
Posts: 94
Loc: UK - NE Wales
|
After re-reading the post I've got some more to add! I also got the memory violation error when starting up empacman using a pre-init script starting with M.
It looked to me as if, for some reason, the player and empacman were starting simultaneously - perhaps trying to grab the same resources!? dunno enough about linux to be honest. Although both programs seemed to work I didn't like the look of it, so I now start empacman with an N script (empacman is located on the hda2 partition).
|
Top
|
|
|
|
#107291 - 02/08/2002 06:41
Re: Preinit on Beta 13/HJ283 causes memory ...
[Re: FlibblE]
|
pooh-bah
Registered: 09/08/2000
Posts: 2091
Loc: Edinburgh, Scotland
|
Does that remove that error? I too get it, but it didn't appear to affect anything so I ignored it I may use an N script if that is the answer.
_________________________
Rory MkIIa, blue lit buttons, memory upgrade, 1Tb in Subaru Forester STi MkII, 240Gb in Mark Lord dock MkII, 80Gb SSD in dock
|
Top
|
|
|
|
#107292 - 02/08/2002 07:51
Re: Preinit on Beta 13/HJ283 causes memory ...
[Re: frog51]
|
journeyman
Registered: 16/02/2000
Posts: 94
Loc: UK - NE Wales
|
Yeah, it seemed to get rid of it
|
Top
|
|
|
|
|
|