Ticket #1014 (closed defect: fixed)

Opened 12 years ago

Last modified 2 years ago

gsmd doesn't work in x86 platform

Reported by: sean_chiang@… Owned by: sean_chiang@…
Priority: high Milestone:
Component: gsmd Version: unspecified
Severity: normal Keywords:
Cc: buglog@…, balrogg@…, tick@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description


Attachments

gsmd_x86.log (18.3 KB) - added by sean_chiang@… 12 years ago.
strace log
more-tolerant-for-llparse-byte.patch (398 bytes) - added by sean_chiang@… 12 years ago.
avoid error when got twice '\r'

Change History

comment:1 Changed 12 years ago by balrogg@…

  • Cc balrogg@… added

It works for me. Are you getting an error from glibc about double free() and:
"Aborted." ? What are the symptoms?

Changed 12 years ago by sean_chiang@…

strace log

comment:2 Changed 12 years ago by sean_chiang@…

There's a strange observation, after read respond "OK"from modem each time, got:
read(3, "\r\r\nOK\r\n", 1024) = 7
read(3, 0x515a80, 1024) = -1 EAGAIN (Resource temporarily
unavailable)
Have no idea about this, keep digging..

comment:3 Changed 12 years ago by sean_chiang@…

When gsmd start to run in my pc, it will receive '\r' twice, hence the
llp->state will change from LLPARSE_STATE_IDLE_CR to LLPARSE_STATE_ERROR. That's
why gsmd hang. Below is the log. The same situation happen in another PC too.

Tue Nov 20 16:33:39 2007 <1> atcmd.c:654:atcmd_submit() extra-submiting command
Tue Nov 20 16:33:39 2007 <1> machine_gta01.c:72:atcmd_wakeup_modem() try to wake up
Tue Nov 20 16:33:39 2007 <1> atcmd.c:657:atcmd_submit() submitting command `ATZ'
Tue Nov 20 16:33:39 2007 <1> machine_gta01.c:64:wakeup_timer() Create wake up timer
Tue Nov 20 16:33:39 2007 <1> atcmd.c:92:llparse_byte() == 0xd ==
Tue Nov 20 16:33:39 2007 <1> atcmd.c:164:llparse_byte() == llp-state (From 0 To
1) ==
Tue Nov 20 16:33:39 2007 <1> atcmd.c:92:llparse_byte() == 0xd ==
Tue Nov 20 16:33:39 2007 <1> atcmd.c:164:llparse_byte() == llp-state (From 1 To
8) ==
Tue Nov 20 16:33:39 2007 <1> atcmd.c:92:llparse_byte() == 0xa ==
Tue Nov 20 16:33:39 2007 <1> atcmd.c:164:llparse_byte() == llp-state (From 8 To
8) ==
Tue Nov 20 16:33:39 2007 <1> atcmd.c:92:llparse_byte() == 0x4f ==
Tue Nov 20 16:33:39 2007 <1> atcmd.c:164:llparse_byte() == llp-state (From 8 To
8) ==
Tue Nov 20 16:33:39 2007 <1> atcmd.c:92:llparse_byte() == 0x4b ==
Tue Nov 20 16:33:39 2007 <1> atcmd.c:164:llparse_byte() == llp-state (From 8 To
8) ==
Tue Nov 20 16:33:39 2007 <1> atcmd.c:92:llparse_byte() == 0xd ==
Tue Nov 20 16:33:39 2007 <1> atcmd.c:164:llparse_byte() == llp-state (From 8 To
8) ==
Tue Nov 20 16:33:39 2007 <1> atcmd.c:92:llparse_byte() == 0xa ==
Tue Nov 20 16:33:39 2007 <1> atcmd.c:164:llparse_byte() == llp-state (From 8 To
8) ==
Tue Nov 20 16:33:42 2007 <1> machine_gta01.c:29:wakeup_timeout() Wakeup time out!!
Tue Nov 20 16:33:42 2007 <1> atcmd.c:594:discard_timer() Create discard timer
Tue Nov 20 16:33:42 2007 <1> atcmd.c:92:llparse_byte() == 0x41 ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:164:llparse_byte() == llp-state (From 8 To
8) ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:92:llparse_byte() == 0x54 ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:164:llparse_byte() == llp-state (From 8 To
8) ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:92:llparse_byte() == 0x5a ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:164:llparse_byte() == llp-state (From 8 To
8) ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:92:llparse_byte() == 0xd ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:164:llparse_byte() == llp-state (From 8 To
8) ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:92:llparse_byte() == 0xd ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:164:llparse_byte() == llp-state (From 8 To
8) ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:92:llparse_byte() == 0xa ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:164:llparse_byte() == llp-state (From 8 To
8) ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:92:llparse_byte() == 0x4f ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:164:llparse_byte() == llp-state (From 8 To
8) ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:92:llparse_byte() == 0x4b ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:164:llparse_byte() == llp-state (From 8 To
8) ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:92:llparse_byte() == 0xd ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:164:llparse_byte() == llp-state (From 8 To
8) ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:92:llparse_byte() == 0xa ==
Tue Nov 20 16:33:42 2007 <1> atcmd.c:164:llparse_byte() == llp-state (From 8 To
8) ==

Changed 12 years ago by sean_chiang@…

avoid error when got twice '\r'

comment:4 Changed 12 years ago by balrogg@…

Are you using the u-boot passthrough? There is #1005 that duplicates the
\r, we had the same problem and we first modified gsmd but if another program
uses the u-boot passthrough it will hit the same problem (not only on x86), so
it's a passthrough bug.

http://lists.openmoko.org/pipermail/openmoko-uboot/2007-September/000125.html
has a fix for u-boot.

comment:5 Changed 12 years ago by sean_chiang@…

In fact, we have GSM modem EVB, which is the same as the one on NEO device.
Hence, I didn't use u-boot passthrough.

comment:6 Changed 12 years ago by balrogg@…

Ah ok, I used gsmd with a modem that connects directly to USB (not Neo) and it
didn't send the additional \r, I guess different modems have different
deviations from the protocol. Maybe gsmd ll parser should be more tolerant to
such deviations.

comment:7 Changed 12 years ago by sean_chiang@…

  • Status changed from new to closed
  • Resolution set to fixed

It's fixed now!

comment:8 Changed 2 years ago by Chassmetly

Corlistat In Australia <a href=http://cial5mg.xyz/order-generic-cialis.php>Order Generic Cialis</a> Antibiotic Online Mexico Stendra Ed Saturday Delivery <a href=http://propecia.ccrpdc.com/propecia-pill.php>Propecia Pill</a> Buy Antibiotics Nitrofurantoin Usa Comparativa Hora Para Tomar Propecia <a href=http://cial5mg.xyz/how-to-buy-cialis.php>How To Buy Cialis</a> Bentyl Medication Over Night Idrocele Propecia <a href=http://cial5mg.xyz/cialis-20mg-price.php>Cialis 20mg Price</a> Le Vrai Prix Du Kamagra Ou Acheter Du Cialis Sans Ordonnance <a href=http://cial1.xyz/get-cheap-cialis-online.php>Get Cheap Cialis Online</a> Hydrochlorothiazide Visa Arun Buy Cipro Online No Prescription <a href=http://kama1.xyz/cheap-kamagra.php>Cheap Kamagra</a> Prescription En Ligne Prix Kamagra 100 <a href=http://prozac.ccrpdc.com/fluoxetine-20mg.php>Fluoxetine 20mg</a> Acheter Vrai Tadalis Sx En Ligne Cialis Generico Desventajas <a href=http://viag1.xyz/how-to-get-viagra.php>How To Get Viagra</a> Cialis Non Prescription Needed Usa Buy Celebrex Celecoxib 200 Mg <a href=http://zol1.xyz/cheap-zoloft-20mg.php>Cheap Zoloft 20mg</a> Source Of Canadian Viagra Comprar Cialis 20 Mg <a href=http://cial1.xyz/tadalafil-generic.php>Tadalafil Generic</a> Cephalexin Mouth Zithromax Vs Azithromycin <a href=http://prozac.ccrpdc.com/prozac-price.php>Prozac Price</a> Levitra Billig Online Prix Du Cialis 20 En Pharmacie <a href=http://cial5mg.xyz/need-to-order-cialis.php>Need To Order Cialis</a> Achat Vardenafil Fedex Shipping Doryx Australia Online Delivered On Saturday <a href=http://cial1.xyz/shop-cialis-online.php>Shop Cialis Online</a> Phifer Viagra fedex shipping isotretinoin tablets low price <a href=http://kama1.xyz/ordering-kamagra-online.php>Ordering Kamagra Online</a> Cialis Generique Tadalafil 30 Pilules Cash On Delivery Isotretinoin 10mg <a href=http://zithromax.ccrpdc.com/shop-zithromax-online.php>Shop Zithromax Online</a> Uschemist On Line Kamagra Gi <a href=http://cial1.xyz/cialis-20mg-price.php>Cialis 20mg Price</a> Levitra Espanol El Cialis No Me Hace Efecto <a href=http://cial1.xyz/generic-for-cialis.php>Generic For Cialis</a> Viagra Schweiz Rezeptfrei Hydrochlorothiazide Microzide <a href=http://viag1.xyz/order-viagra.php>Order Viagra</a> Misoprostol 20mg Uk isotretinoin direct <a href=http://kama1.xyz/cost-of-kamagra.php>Cost Of Kamagra</a> 272 Can I Trust Canadian Viagra Online Is Cephalexin For Throat <a href=http://doxycycline.ccrpdc.com/fast-delivery-vibramycin.php>Fast Delivery Vibramycin</a> Vergleich Cialis Levitra Online Renova Buy <a href=http://zol1.xyz/implicane-online.php>Implicane Online</a> Generic Zentel Price Legally Overseas Acticin By Money Order <a href=http://kama1.xyz/order-kamagra-in-usa.php>Order Kamagra In Usa</a> Zithromax Affect Birth Control Zithromax Works For 10 Days <a href=http://zol1.xyz/getting-zoloft-overseas.php>Getting Zoloft Overseas</a> Cialis Black 800mg Reviews Allegra <a href=http://cial5mg.xyz/buy-cialis.php>Buy Cialis</a> Cialis 4 Comprimes Buy 125 Mcg Synthroid <a href=http://viag1.xyz/generic-viagra.php>Generic Viagra</a> Wirkung Von Viagra 100 Mg Prix Cialis 5mg Cpr 28 <a href=http://cial1.xyz/prices-cialis.php>Prices Cialis</a> Achat Kamagra Metz Cialis J En Ai Pris <a href=http://cial1.xyz/brand-cialis.php>Brand Cialis</a> High On Amoxicillin Il Cialis Commenti <a href=http://inderal.ccrpdc.com/inderal-cheap.php>Inderal Cheap</a> Cialis Originale O Generico At <a href=http://kama1.xyz/purchase-cheap-kamagra.php>Purchase Cheap Kamagra</a> Effet Du Cialis Sur Les Femmes Buy Lasix Without Rx <a href=http://cial1.xyz/generic-cialis-100mg.php>Generic Cialis 100mg</a> Baclofen Achat 10mg Farmacia Viagra Cialis <a href=http://kama1.xyz/cheap-kamagra-generic.php>Cheap Kamagra Generic</a> My Secure Tabs Pharmacy Amoxicillin Dosage For Dog <a href=http://cial1.xyz/cialis-buy-online.php>Cialis Buy Online</a> Evitra En Ligne Amoxicillin Gluten <a href=http://zol1.xyz/generic-zoloft-pricing.php>Generic Zoloft Pricing</a> Need To Order Cialis Get Tab Worldwide Dutasteride In Internet Fedex Shop <a href=http://viag1.xyz/cheap-viagra-usa.php>Cheap Viagra Usa</a> Buy Accutane Generic Buy Now Doxycycline <a href=http://cial1.xyz/buy-generic-cialis.php>Buy Generic Cialis</a> Commander Kamagra Generique Test Cialis Levitra <a href=http://viagra.ccrpdc.com/viagra-for-sale.php>Viagra For Sale</a> Sildenafil 100 Cephalexin And Diabetes <a href=http://cial5mg.xyz/generic-cialis.php>Generic Cialis</a> Dapoxetine No Prescripton Cialis Boite De 8 <a href=http://cial5mg.xyz/cialis-20mg-price.php>Cialis 20mg Price</a> Doxycycline Malaria Buy Online Pharmacycustomercare <a href=http://cial1.xyz/buy-generic-cialis-online.php>Buy Generic Cialis Online</a> Priligy In New York Fastestshiponcialis <a href=http://cial1.xyz/cheapest-cialis.php>Cheapest Cialis</a> Cialis Como Se Usa Safer Macrobid Or Keflex <a href=http://cial5mg.xyz/cialis-tadalafil.php>Cialis Tadalafil</a> Cialis Achat En Ligne Belgique Ou Acheter Du Cialis Moins Cher <a href=http://kama1.xyz/kamagra-online.php>Kamagra Online</a> Propecia Heart Beat 25 Lb Toddler Dosage Of Amoxicillin <a href=http://viag1.xyz/viagra-for-sale.php>Viagra For Sale</a> Comprar Cialis Las Palmas Staph Infection Treating With Keflex <a href=http://zol1.xyz/zoloft-50mg.php>Zoloft 50mg</a> Canadian Propecia

Note: See TracTickets for help on using tickets.