[ltp] Java Zombies

Martin Lorenz linux-thinkpad@linux-thinkpad.org
Thu, 5 Oct 2006 21:12:17 +0200


On Thu, Oct 05, 2006 at 09:52:50AM -0300, Henrique de Moraes Holschuh wrote:
> On Thu, 05 Oct 2006, Martin Lorenz wrote:
> > seems you were right (not that I had any doubt ;-) 
> > I run the very same java-app for about an hour now without any problems on
> > the 'naked' kernel
> 
> Very well, time to start debugging, then.  Please add just tp_smapi
> (*without* hdaps!) as a module.  For added safety, you can load it manually
> instead of automatically.  Please play with it a bit, use it to set ThinkPad
> parameters, read all parameters in the Battery, loop for a while doing
> back-to-back dumps.  Do this with a tail -f /var/log/kern.log (or whatever
> is needed in your distribution to see the kernel error messages), and stop
> as soon as any error messages show up.

ok....
I run the kernel with tp_smapi loaded and tried all my best to trigger a bug
in it.

all I see in the logs is 
Oct  5 20:52:07 gimli kernel: [ 2036.870000] smapi smapi: store_battery_inhibit_charge_minutes: inhibit_charge_minutes: must be a non-negative integer


Oct  5 20:56:28 gimli kernel: [ 2298.358000] smapi smapi: set_force_discharge: set to 0 for bat=1
Oct  5 20:56:29 gimli kernel: [ 2298.567000] smapi smapi: set_inhibit_charge_minutes: set to 0 for bat=1
Oct  5 20:56:29 gimli kernel: [ 2298.567000]
Oct  5 20:56:29 gimli kernel: [ 2298.880000] smapi smapi: set_real_thresh: set start to 95 for bat=1
Oct  5 20:56:29 gimli kernel: [ 2298.982000] smapi smapi: set_real_thresh: set stop to 0 for bat=1
Oct  5 20:56:29 gimli kernel: [ 2299.293000] smapi smapi: set_real_thresh: set start to 95 for bat=1
Oct  5 20:56:30 gimli kernel: [ 2299.628000] smapi smapi: set_force_discharge: set to 0 for bat=0
Oct  5 20:56:30 gimli kernel: [ 2299.836000] smapi smapi: set_inhibit_charge_minutes: set to 0 for bat=0
Oct  5 20:56:30 gimli kernel: [ 2299.836000]
Oct  5 20:56:30 gimli kernel: [ 2300.145000] smapi smapi: set_real_thresh: set stop to 75 for bat=0
Oct  5 20:56:30 gimli kernel: [ 2300.454000] smapi smapi: set_real_thresh: set start to 39 for bat=0

I did this
root@gimli:/sys/devices/platform/smapi#  for a in `find . -type f `; do cat
$a | cat > $a; done
cat: write error: Input/output error
cat: ./BAT1/first_use_date: No such device or address
cat: ./BAT1/manufacture_date: No such device or address
cat: ./BAT1/serial: No such device or address
cat: ./BAT1/temperature: No such device or address
cat: ./BAT1/cycle_count: No such device or address
cat: ./BAT1/design_capacity: No such device or address
cat: ./BAT1/design_voltage: No such device or address
cat: ./BAT1/last_full_capacity: No such device or address
cat: ./BAT1/remaining_capacity: No such device or address
cat: ./BAT1/remaining_running_time: No such device or address
cat: ./BAT1/remaining_charging_time: No such device or address
cat: ./BAT1/remaining_percent: No such device or address
cat: ./BAT1/power_avg: No such device or address
cat: ./BAT1/power_now: No such device or address
cat: ./BAT1/current_avg: No such device or address
cat: ./BAT1/current_now: No such device or address
cat: ./BAT1/voltage: No such device or address
cat: ./BAT1/chemistry: No such device or address
cat: ./BAT1/barcoding: No such device or address
cat: ./BAT1/model: No such device or address
cat: ./BAT1/manufacturer: No such device or address
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
cat: write error: Input/output error
-su: ./ac_connected: Permission denied
-su: ./modalias: Permission denied
cat: write error: Invalid argument
cat: ./uevent: Permission denied

from http://www.thinkwiki.org/wiki/Tp_smapi#Other_features I got this:

# echo -n "BX=2116 CX=100 DI=0 SI=0"> smapi_request && cat smapi_request
which results in 
-su: echo: write error: Invalid argument

and no errors at all

seems not to be in the tp_smapi module

gruss
  mlo
--
Dipl.-Ing. Martin Lorenz

            They that can give up essential liberty 
	    to obtain a little temporary safety 
	    deserve neither liberty nor safety.
                                   Benjamin Franklin

please encrypt your mail to me
GnuPG key-ID: F1AAD37D
get it here:
http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0xF1AAD37D

ICQ UIN: 33588107